/* ==========================================================================
   Topout Digital, V6
   A dark studio site after riangle.com, in Topout's own colours: near-black
   steel, soft white, and the Split Ring's cobalt and logo blue as the accent.
   Wide Archivo for display, regular Archivo for reading, JetBrains Mono for
   small labels, numbers and the studio clock.
   ========================================================================== */
:root {
  --bg: #08090C;
  --bg-2: #0D0F13;
  --panel: #121419;
  --panel-2: #181B21;
  --line: rgba(237, 239, 244, .09);
  --line-2: rgba(237, 239, 244, .16);
  --text: #EDEFF4;
  --muted: #A6ABB5;
  --dim: #8A909A;
  --blue: #1D4ED8;          /* buttons */
  --blue-hover: #2A5BE6;
  --logo-blue: #2F6BFF;     /* the Split Ring arc */
  --blue-lite: #7FA2FF;     /* accent text on dark */

  --f-sans: 'Archivo', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wide: 112%;

  --t-hero: clamp(2.6rem, 6.2vw, 5.9rem);
  --t-xl: clamp(2.2rem, 4.6vw, 4.4rem);
  --t-h2: clamp(1.9rem, 3.4vw, 3.1rem);
  --t-h3: clamp(1.35rem, 2vw, 1.8rem);
  --t-lead: clamp(1.125rem, 1.4vw, 1.3rem);
  --t-mono: .75rem;

  --wrap: 1360px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --section: clamp(96px, 11vw, 168px);
  --r: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* names the pricing and work pages share with V5 */
  --white: var(--panel);
  --stone: var(--bg);
  --stone-2: var(--panel-2);
  --steel: var(--text);
  --slate: var(--muted);
  --muted-d: var(--muted);
  --night: var(--bg);
  --steel-2: var(--panel);
  --steel-3: var(--panel-2);
  --f-display: var(--f-sans);
  --f-body: var(--f-sans);
  --f-code: var(--f-mono);
  --t-display: var(--t-hero);
  --t-body: 1rem;
  --t-small: .875rem;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--f-sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--logo-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-lite); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; }
.ico { width: 16px; height: 16px; flex: none; }

h1, h2, h3 { font-family: var(--f-sans); font-stretch: var(--wide); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r);
  font: 500 .8125rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .75rem; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); background: rgba(237,239,244,.04); }
.btn-dark, .btn-ink { background: var(--text); color: var(--bg); }
.btn-dark:hover, .btn-ink:hover { background: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.text-link, .link-mono { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; min-height: 40px; }
.text-link .ico, .link-mono .ico { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.text-link:hover .ico, .link-mono:hover .ico { transform: translateX(4px); }
.text-link:hover, .link-mono:hover { color: var(--blue-lite); }

/* ---------- Top bar and navigation ---------- */
.topbar { border-bottom: 1px solid var(--line); font: 400 .75rem/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 36px; flex-wrap: wrap; padding-block: 6px; }
.tb-contact { display: flex; gap: 20px; }
.tb-contact a, .tb-offer a { text-decoration: none; color: var(--text); }
.tb-contact a:hover, .tb-offer a:hover { color: var(--blue-lite); }
.tb-offer a { text-decoration: underline; text-underline-offset: 3px; }
.tb-short, .tb-email-short { display: none; }
@media (max-width: 760px) { .topbar-inner { justify-content: center; text-align: center; } .tb-long, .tb-email { display: none; } .tb-short, .tb-email-short { display: inline; } }

.nav { position: sticky; top: 0; z-index: 60; background: rgba(8, 9, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font: 600 1.05rem/1 var(--f-sans); font-stretch: 118%; letter-spacing: .06em; }
.brand-word span { margin-left: .4em; font-weight: 400; color: var(--muted); }
.nav-links { display: none; gap: 30px; }
.nav-links a, .mnav-inner > a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; align-items: center; color: var(--muted); text-decoration: none; font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.n { color: var(--dim); font-weight: 400; }
.nav-links a[aria-current="page"] .n { color: var(--blue-lite); }
.nav-cta { display: none; }
.nav-menu { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; cursor: pointer; font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.nav-menu[aria-expanded="true"] { border-color: var(--text); }
.burger { display: grid; gap: 5px; width: 16px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav-menu[aria-expanded="true"] .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: calc(100svh - 68px); overflow-y: auto; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mnav-inner { display: grid; padding-block: 12px 24px; }
.mnav-inner > a { min-height: 56px; font-size: .875rem; color: var(--text); border-bottom: 1px solid var(--line); }
.mnav-foot { display: grid; gap: 10px; margin-top: 20px; }
.mnav-call { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; color: var(--text); text-decoration: none; font: 500 .8125rem var(--f-mono); letter-spacing: .08em; }
@media (min-width: 960px) { .nav-links, .nav-cta { display: flex; } .nav-menu, .mnav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 104px); display: flex; flex-direction: column; justify-content: center; padding-block: 56px 28px; }
.hero-grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); opacity: .7; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 62vw; height: 62vw; right: -14vw; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(47,107,255,.20), rgba(47,107,255,.06) 55%, transparent 72%); pointer-events: none; }
.hero-inner { position: relative; width: 100%; display: grid; align-items: center; gap: 24px; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero-h1 { font-size: var(--t-hero); line-height: .98; max-width: 12.5ch; }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: var(--t-lead); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { margin-top: 22px; font: 400 .8125rem/1.6 var(--f-mono); letter-spacing: .02em; color: var(--dim); }
.hero-trust .dot { margin: 0 10px; color: var(--logo-blue); }
.hero-mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.hero-mark canvas { position: absolute; inset: -8%; width: 116%; height: 116%; pointer-events: none; }
.mark-fallback { position: absolute; inset: 14%; width: 72%; height: 72%; color: var(--text); opacity: 0; transition: opacity .6s; }
.no-webgl .mark-fallback { opacity: .95; }
.hero-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 40px; font: 400 .75rem/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); }
@media (max-width: 999px) {
  .hero { min-height: 0; padding-top: 40px; }
  .hero-mark { order: -1; max-width: 320px; margin: 0 auto 8px; }
  .hero-mark canvas { inset: 0; width: 100%; height: 100%; }
}
@media (max-width: 520px) {
  .hero-actions .btn-lg { flex: 1 1 100%; }
  .hero-trust span:not(.dot) { display: block; }
  .hero-trust .dot { display: none; }
  .hero-meta span:nth-child(n+4) { display: none; }
}

/* split headings: each word rises out of its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-in .w > span { transform: none; }

/* ---------- Shared section heads ---------- */
.sec-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 28px; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.sec-h { font-size: var(--t-h2); }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section); border-top: 1px solid var(--line); }
.intro-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .intro-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 80px; align-items: end; } }
.intro-h { font-size: var(--t-xl); line-height: 1.02; }
.intro-body { display: grid; gap: 20px; justify-items: start; color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.intro-body b { color: var(--text); font-weight: 600; }
.intro-body .btn { margin-top: 8px; }

/* ---------- Work: filter chips over a grid of project cards ---------- */
.work { padding-block: var(--section); border-top: 1px solid var(--line); }
.sw-head { display: grid; gap: 16px; max-width: 640px; }
.sw-head p { color: var(--muted); font-size: 1.0625rem; }
.sw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.sw-filter { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.sw-filter:hover { color: var(--text); border-color: rgba(237,239,244,.32); }
.sw-filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.sw-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 700px) { .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.sw-card:hover { border-color: rgba(127,162,255,.4); transform: translateY(-4px); }
.sw-card[hidden] { display: none !important; }
.sw-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.sw-media .wk-preview { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transition: transform .8s var(--ease); }
.sw-card:hover .sw-media .wk-preview { transform: scale(1.03); }
/* concept screenshots sit in a small browser window */
.sw-browser { position: absolute; inset: 7% 7% 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .8s var(--ease); }
.sw-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; flex: none; background: #F1F2F4; }
.sw-bar i { width: 7px; height: 7px; border-radius: 50%; background: #CFD2D8; }
.sw-bar span { margin-left: 8px; font: 500 .625rem/1 var(--f-sans); color: #5E636B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-browser img { width: 100%; height: auto; flex: 1; min-height: 0; object-fit: cover; object-position: top left; }
.sw-card:hover .sw-browser { transform: translateY(-6px); }
.sw-media:has(.sw-browser) { background: radial-gradient(80% 90% at 50% 110%, rgba(47,107,255,.22), transparent 70%), var(--panel-2); }

/* Pro Insulation: the phone stands whole, tilted, over a warm glow, with its live address */
.sw-live { border-color: rgba(47,107,255,.35); }
.pro-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; overflow: hidden;
  background: radial-gradient(45% 70% at 50% 55%, rgba(214,48,39,.38), transparent 70%), linear-gradient(180deg, #1a1012 0%, #120c0e 100%); }
.pro-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 80%); }
.pro-phone { position: relative; width: 25%; padding: 5px; border-radius: 22px; background: linear-gradient(145deg, #2a2d33, #060708 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 28px 50px rgba(0,0,0,.6), 0 0 60px rgba(214,48,39,.25);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg) translateY(-3%); transition: transform .9s var(--ease); }
.pro-phone::after { content: ""; position: absolute; top: 9px; left: 50%; width: 26%; height: 5px; border-radius: 4px; background: #060708; transform: translateX(-50%); }
.pro-phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 17px; }
.sw-card:hover .pro-phone { transform: rotateY(-4deg) rotateX(2deg) rotateZ(0) translateY(-5%); }
.pro-pill { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(8,9,12,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 500 .75rem/1 var(--f-mono); color: var(--text); }
.pro-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3FC56B; box-shadow: 0 0 0 3px rgba(63,197,107,.22); }

/* the call to action takes the sixth tile of the grid */
.sw-cta.sw-cta-tile { margin: 0; max-width: none; align-content: center; min-height: 100%; }
.sw-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-tags li { padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.sw-tags li:first-child { color: var(--text); }
.sw-live .sw-tags li:first-child { background: rgba(47,107,255,.16); border-color: rgba(47,107,255,.4); color: #C9D6FF; }
.sw-body h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; }
.sw-body p { color: var(--muted); font-size: .9375rem; }
.sw-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; min-height: 40px; color: var(--text); text-decoration: none; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.sw-link .ico { width: 14px; height: 14px; color: var(--blue-lite); transition: transform .3s var(--ease); }
.sw-card:hover .sw-link .ico { transform: translateX(4px); }
.sw-cta { display: grid; justify-items: center; gap: 14px; margin: clamp(48px, 6vw, 80px) auto 0; max-width: 720px; padding: clamp(28px, 4vw, 48px); text-align: center; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(60% 100% at 50% 0%, rgba(47,107,255,.18), transparent 75%), var(--panel); }
.sw-cta h3 { font-size: var(--t-h3); }
.sw-cta p { color: var(--muted); max-width: 48ch; }
.sw-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: var(--bg-2); border-block: 1px solid var(--line); }
.cap-list { margin-top: calc(-1 * clamp(40px, 5vw, 72px)); }
.cap { display: grid; gap: 10px 32px; align-items: baseline; padding-block: 30px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
@media (min-width: 900px) { .cap { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.2fr) 230px; padding-inline: 4px; } .cap .cap-link { justify-self: end; } .cap:hover { background: rgba(237,239,244,.025); } }
.cap h3 { font-size: var(--t-h3); }
.cap p { color: var(--muted); max-width: 52ch; }
.cap-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: var(--text); text-decoration: none; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; min-height: 40px; }
.cap-link .ico { width: 14px; height: 14px; color: var(--blue-lite); transition: transform .3s var(--ease); }
.cap:hover .cap-link .ico { transform: translateX(4px); }

/* ---------- Process ---------- */
.process { padding-block: var(--section); }
.steps { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.steps-line i { position: absolute; inset: 0; background: var(--logo-blue); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps ol { display: grid; gap: 36px; padding-top: 34px; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps ol { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { display: grid; gap: 12px; align-content: start; }
.steps h3 { font-size: var(--t-h3); }
.steps p { color: var(--muted); max-width: 34ch; }
@media (max-width: 759px) { .steps-line { display: none; } .steps li { padding-top: 20px; border-top: 1px solid var(--line-2); } }

/* ---------- Studio panel ---------- */
.panel-sec { padding-bottom: var(--section); }
.panel { display: grid; gap: 40px; padding: clamp(28px, 5vw, 72px); border-radius: var(--r); background: radial-gradient(60% 80% at 100% 0%, rgba(47,107,255,.16), transparent 70%), var(--panel); border: 1px solid var(--line); }
@media (min-width: 1000px) { .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.panel-copy { display: grid; gap: 22px; }
.panel-h { font-size: var(--t-h2); }
.panel-copy p { color: var(--muted); max-width: 50ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-2); }
@media (min-width: 1000px) { .stats { align-self: end; } }
.stats div { display: grid; gap: 10px; }
.stats dt { order: 2; font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stats dd { font: 400 clamp(1.8rem, 3.6vw, 3.4rem)/1 var(--f-mono); letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-btn { justify-self: start; }
@media (min-width: 1000px) { .panel-btn { grid-column: 2; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.connect { padding-block: var(--section); border-top: 1px solid var(--line); background: radial-gradient(50% 40% at 50% 0%, rgba(47,107,255,.12), transparent 70%); }
.cta { display: grid; justify-items: center; gap: 22px; text-align: center; margin-bottom: clamp(64px, 8vw, 120px); }
.cta-big { font-family: var(--f-sans); font-stretch: var(--wide); font-weight: 500; font-size: var(--t-hero); line-height: .98; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.cta-sub { color: var(--muted); }
.cta-sub a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--logo-blue); }
.connect-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .connect-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.connect-info { display: grid; gap: 18px; align-content: start; }
.connect-h { font-size: var(--t-h2); }
.connect-info > p { color: var(--muted); max-width: 40ch; font-size: 1.0625rem; }
.connect-links { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.connect-links li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.connect-links span { font: 400 .75rem/1.9 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.connect-links a { color: var(--text); text-decoration: none; }
.connect-links a:hover { color: var(--blue-lite); }
.connect-form { min-width: 0; }
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 8px; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.opt { color: var(--dim); text-transform: none; letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--f-sans); transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A909A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(237,239,244,.3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--logo-blue); background: #0B0D12; }
.err { display: none; margin-top: 6px; font-size: .875rem; color: #FCA5A5; }
.field.invalid input, .field.invalid textarea { border-color: #F87171; }
.field.invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-note { flex: 1 1 220px; color: var(--muted); }
.form-status { flex-basis: 100%; }
.form-status:empty { display: none; }
.form-status.ok { color: #6EE7A0; }
.form-status.bad { color: #FCA5A5; }
.form-status a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.form-done { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 4vw, 48px); border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.form-done:focus { outline: none; }
.form-done h3 { font-size: var(--t-h3); }
.form-done p { color: var(--muted); max-width: 44ch; }

/* ---------- Footer ---------- */
.footer { padding-block: 0 32px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); color: var(--dim); }
.foot-strip b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.foot-geo { display: flex; gap: 24px; }
.foot-cols { display: grid; gap: 36px; padding-block: 48px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .brand { margin: 0; }
.foot-brand p { max-width: 30ch; }
.foot-cols nav, .foot-cols > div:not(.foot-brand) { display: grid; gap: 10px; align-content: start; }
.foot-h { margin-bottom: 4px; font: 400 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-cols a { color: var(--text); text-decoration: none; width: fit-content; }
.foot-cols a:hover { color: var(--blue-lite); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 .75rem/1 var(--f-mono); letter-spacing: .06em; color: var(--dim); }
.foot-base a { color: var(--dim); text-decoration: none; }
.foot-base a:hover { color: var(--text); }

/* ---------- Pricing and work pages (layout carried over from V5, recoloured below) ---------- */
.pricing-page, .work-page { background: var(--stone); }
.p-head-grid { display: grid; gap: 32px; align-items: start; }
.p-head-text { display: grid; gap: 22px; }
@media (min-width: 900px) { .p-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.p-head-pic { overflow: hidden; border-radius: var(--r); background: var(--steel-2); }
.p-head-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 899px) { .p-head-pic { display: none; } }
.plan-pic { display: grid; align-content: start; gap: 14px; }
.plan-pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); filter: grayscale(1) contrast(1.05); }
.plan-pic figcaption { font-size: 1.25rem; line-height: 1.4; font-family: var(--f-display); font-weight: 500; max-width: 28ch; }
@media (min-width: 720px) and (max-width: 899px) { .plan-pic { grid-column: 1 / -1; } .plan-pic img { aspect-ratio: 16 / 9; } }
.p-head { padding-block: clamp(64px, 8vw, 120px) clamp(150px, 16vw, 210px); background: var(--steel); color: var(--white); }
.p-head .wrap { display: grid; gap: 22px; }
.p-head h1 { font-size: var(--t-display); line-height: .98; letter-spacing: -0.04em; }
.p-head .lede { font-size: 1.25rem; max-width: 52ch; }
.p-group { padding-bottom: var(--section); }
#builds { margin-top: clamp(-150px, -13vw, -110px); position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: var(--t-h2); max-width: 20ch; }
.sec-head .lede { color: var(--steel); }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; } }
@media (min-width: 900px) { .plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 899px) { .plans-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group-h { font-size: var(--t-lead); margin: 0 0 20px; }
.plans + .group-h { margin-top: 64px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); }
.plan-top { display: grid; gap: 8px; padding: 28px 24px 24px; background: var(--white); border-radius: var(--r) var(--r) 0 0; }
.plan-top h3 { font-size: var(--t-lead); }
.plan-pitch { color: var(--slate); min-height: 3.1em; margin-top: 4px; }
.plan-price { display: flex; align-items: flex-start; gap: 2px; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h2); line-height: 1; margin: 16px 0 4px; letter-spacing: -0.03em; }
.plan-price .cur { font-size: .45em; margin-top: .25em; }
.plan-price small { align-self: flex-end; font: 500 var(--t-body) var(--f-display); color: var(--slate); margin: 0 0 .3em 6px; letter-spacing: 0; }
.plan-note { color: var(--blue); font-weight: 600; min-height: 1.5em; }
.plan-top .btn { margin-top: 14px; }
.plan-body { padding: 24px; background: var(--stone-2); border-radius: 0 0 var(--r) var(--r); flex: 1; }
.plan-k { font-weight: 700; margin-bottom: 14px; }
.plan-body ul { display: grid; gap: 10px; }
.plan-body li { position: relative; padding-left: 26px; line-height: 1.4; }
.plan-body li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 11px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.plan-body li.off { color: #5E636B; }
.plan-body li.off::before { border: 0; top: .7em; width: 12px; height: 2.5px; background: #9AA0A8; transform: none; }
.ck { width: 18px; height: 18px; flex: none; color: var(--steel); --check-ink: var(--white); }
.plan-featured .plan-top { background: var(--steel); color: var(--white); }
.plan-featured .plan-pitch, .plan-featured .plan-price small { color: var(--muted-d); }
.plan-featured .plan-note { color: var(--blue-lite); }
.plan-featured .plan-body { background: var(--steel-2); color: var(--white); }
.plan-featured .plan-body li::before { border-color: var(--blue-lite); }
.plan-featured .plan-body li.off { color: var(--muted-d); }
.plan-flag { position: absolute; top: 18px; right: 18px; z-index: 1; font-size: var(--t-small); font-weight: 700; background: var(--blue); color: var(--white); padding: 5px 10px; border-radius: var(--r); }
.plan:not(.plan-featured) .plan-flag { background: var(--steel); }

.compare { padding-block: var(--section); background: var(--white); }
.cmp-h { font-size: var(--t-lead); margin: 8px 0 16px; }
.cmp-wrap { overflow-x: auto; margin-bottom: 48px; border-radius: var(--r); background: var(--stone); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; }
.cmp-3 { min-width: 680px; }
.cmp thead th { padding: 18px 14px; text-align: center; font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; background: var(--stone-2); }
.cmp thead th span { display: block; font: 500 var(--t-small) var(--f-body); color: var(--slate); margin-top: 4px; }
.cmp thead th:first-child { text-align: left; }
.cmp tbody th { text-align: left; font-weight: 400; padding: 16px 14px; width: 42%; }
.cmp tbody th b { display: block; font-weight: 700; }
.cmp tbody th span { display: block; color: var(--slate); font-size: var(--t-body); margin-top: 2px; }
@media (max-width: 640px) {
  .cmp, .cmp-3 { min-width: 0; table-layout: fixed; }
  .cmp thead th:first-child { width: 40%; }
  .cmp th, .cmp td { overflow-wrap: anywhere; hyphens: auto; }
  .cmp tbody th { width: 40%; }
  .cmp tbody th span { display: none; }
  .cmp th, .cmp td { padding: 12px 6px; }
  .cmp thead th { font-size: 1rem; }
  .cmp td { font-size: var(--t-small); }
}
.cmp td { text-align: center; padding: 16px 14px; font-variant-numeric: tabular-nums; }
.cmp td .ck { margin: 0 auto; color: var(--blue); }
.cmp .dash { color: #9AA0A8; }
.cmp tbody tr:nth-child(even) { background: #F4F5F6; }
.cmp-note { color: var(--slate); margin-top: -32px; margin-bottom: 48px; }

.cta-band { padding: 0; background: var(--steel); }
.cta-band .skyline { margin: 0; }
.cta-band .wrap { max-width: none; padding: 0; }
.cta-inner { display: grid; gap: 32px; align-items: end; padding: clamp(64px, 9vw, 140px) var(--edge); background: var(--steel); color: var(--white); }
.cta-inner p { font-size: 1.25rem; max-width: 44ch; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-inner > div:first-child { display: grid; gap: 16px; }
.cta-inner h2 { font-size: var(--t-h2); max-width: 18ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Work page ---------- */
.work-page .p-head { padding-bottom: clamp(64px, 8vw, 110px); }
.wk { padding-block: clamp(56px, 7vw, 96px) var(--section); }
.wk-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-filter { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--stone-2); color: var(--steel); font: 600 var(--t-body) var(--f-body); cursor: pointer; transition: background-color .15s, color .15s; }
.wk-filter:hover { background: #D3D6DB; }
.wk-filter[aria-pressed="true"] { background: var(--steel); color: var(--white); }
.wk-count { margin: 18px 0 24px; color: var(--slate); }
.wk-list-h { font-size: var(--t-h2); margin-bottom: 24px; }
.wk-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wk-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--r); overflow: hidden; }
.wk-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-small); color: var(--slate); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 700; border-radius: var(--r); padding: 4px 9px; }
.chip-sample { color: var(--slate); background: var(--stone); }
.chip-live { color: #14532D; background: #DCFCE7; }
.chip-live i { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.wk-card h3 { font-size: var(--t-lead); }
.wk-desc { color: var(--slate); }
.wk-quote { margin: 6px 0 0; padding: 14px 16px; background: var(--stone); border-radius: var(--r); }
.wk-quote p { font-weight: 600; line-height: 1.45; }
.wk-quote footer { margin-top: 6px; font-size: var(--t-small); color: var(--slate); }
.wk-quote-empty p { font-weight: 400; color: var(--slate); }
.wk-points { display: grid; gap: 6px; margin: 4px 0; }
.wk-points li { position: relative; padding-left: 20px; }
.wk-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.wk-card .text-link { margin-top: auto; align-self: flex-start; }
.wk-featured .text-link { margin-top: 4px; }
.wk-cta { align-items: flex-start; justify-content: center; gap: 12px; padding: 32px; min-height: 280px; background: var(--blue); color: var(--white); text-decoration: none; transition: background-color .2s; }

.wk-cta-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--white); color: var(--blue); font: 700 1.75rem/1 var(--f-display); }
.wk-cta-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lead); }
.wk-cta-text { max-width: 30ch; }
.wk-cta .text-link { margin-top: 4px; color: var(--white); }
.wk-empty { padding: 40px 0; color: var(--slate); text-align: center; }
.wk-note { margin-top: 28px; color: var(--slate); font-size: var(--t-small); }

/* sample previews: a browser window and phone drawn in CSS */
.wk-preview { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--stone-2); padding: 7% 9% 0 6%; overflow: hidden; }
.wk-win { height: 100%; display: flex; flex-direction: column; border-radius: 6px 6px 0 0; overflow: hidden; background: var(--c3); }
.wk-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #FFFFFF; flex: none; }
.wk-bar b { width: 7px; height: 7px; border-radius: 50%; background: #D5D7DC; }
.wk-bar span { margin-left: 6px; font: 400 .625rem var(--f-body); color: #5E636B; white-space: nowrap; overflow: hidden; }
.wk-page { flex: 1; display: flex; flex-direction: column; gap: 10%; padding: 5% 6%; color: var(--c1); }
.wk-nav { display: flex; align-items: center; gap: 8px; font-size: .75rem; }
.wk-nav b { margin-right: auto; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-nav span { width: 20px; height: 4px; border-radius: 2px; background: var(--c1); opacity: .22; }
.wk-preview em { font-style: normal; font-weight: 700; font-size: .5625rem; background: var(--c1); color: var(--c3); padding: .5em .9em; border-radius: 999px; white-space: nowrap; }
.wk-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 8%; min-height: 0; }
.wk-hero > div:first-child { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.wk-hero strong { font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.wk-hero i { display: block; width: 80%; height: 5px; border-radius: 3px; background: var(--c1); opacity: .18; }
.wk-hero em { background: var(--c2); color: var(--c1); }
.wk-img { border-radius: 4px; background: var(--c1); min-height: 30px; }
.w-stripes { background-color: var(--c1); border-radius: 40% 40% 4px 4px; }
.w-roof { background-color: var(--c1); clip-path: polygon(0 40%, 50% 8%, 100% 40%, 100% 100%, 0 100%); }
.w-arcs { background-color: var(--c1); border-radius: 4px 4px 60% 4px; }
.w-dots { background-color: var(--c1); border-radius: 50%; }
.w-cup { background-color: var(--c1); box-shadow: inset 0 0 0 18px var(--c1), inset 0 0 0 26px var(--c2); /* taste-skill-ignore: a drawn ring in a sample site */ }
.wk-ph { position: absolute; right: 4%; bottom: -6%; width: 22%; aspect-ratio: 9 / 18; padding: 4px; border-radius: 16px; background: #0B0C0E; }
.wk-ph > div { height: 100%; display: flex; flex-direction: column; gap: 7%; padding: 14% 9%; border-radius: 12px; background: var(--c3); color: var(--c1); overflow: hidden; }
.wk-ph b { font-size: .5rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ph strong { font-size: .5625rem; line-height: 1.1; font-weight: 800; }
.wk-ph .wk-img { flex: 1; }
.wk-ph em { align-self: flex-start; background: var(--c2); color: var(--c1); font-size: .5rem; }

/* featured real projects */
.wk-featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .wk-featured { flex-direction: row; }
  .wk-flip { flex-direction: row-reverse !important; }
  .wk-featured .wk-feat-media { flex: 1 1 46%; }
  .wk-featured .wk-body { flex: 1 1 54%; padding: clamp(24px, 4vw, 56px); justify-content: center; }
  .wk-featured h3 { font-size: var(--t-h2); }
}
.wk-feat-media { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) 20px; background: var(--steel); }
.wk-device { width: min(260px, 70%); aspect-ratio: 9 / 17; padding: 8px; border-radius: 30px; background: #050607; }
.wk-device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }

/* ---------- Work flipbook ---------- */
.flip-sec { padding-block: clamp(64px, 8vw, 112px) 0; }
.flip-head { justify-items: center; text-align: center; }
.flip-head h2 { margin: 0 auto; }
.flip { display: grid; justify-items: center; gap: 24px; }
.book, .stack { position: relative; perspective: 2800px; }
.book { display: none; width: min(100%, 1100px); aspect-ratio: 1100 / 660; }
.stack { width: min(100%, 420px); aspect-ratio: 4 / 5.4; perspective: 1800px; }
@media (min-width: 760px) { .book { display: block; } .stack { display: none; } }
.bk-base, .leaf { position: absolute; top: 0; height: 100%; width: 50%; }
.bk-base.left { left: 0; }
.bk-base.right { left: 50%; }
.leaf { left: 50%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.05s cubic-bezier(.645,.045,.355,1); }
.leaf.flipped { transform: rotateY(-180deg); }
.fast > .leaf { transition-duration: .5s; }
.fast > .leaf.turning .bk-face::after { animation-duration: .5s; }
.stack .leaf { left: 0; width: 100%; transition: transform .9s cubic-bezier(.645,.045,.355,1); }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-face.back { transform: rotateY(180deg); }
.bk-page { position: relative; height: 100%; display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.4vw, 28px); background: var(--white); overflow: hidden; }
.right > .bk-page, .bk-base.right > .bk-page { border-radius: 0 var(--r) var(--r) 0; }
.left > .bk-page, .bk-base.left > .bk-page { border-radius: var(--r) 0 0 var(--r); background: #F7F7F8; }
.stack .bk-page { border-radius: var(--r); }
.leaf .bk-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: rgba(20,22,26,.22); }
.leaf.turning .bk-face::after { animation: turnShade 1.05s ease; }
@keyframes turnShade { 50% { opacity: 1; } }
.bk-media { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; border-radius: var(--r); background: var(--stone-2); overflow: hidden; }
.bk-media .wk-preview { width: 100%; height: 100%; aspect-ratio: auto; }
.bk-media-real { background: var(--steel); padding: 14px 0; }
.bk-media-real .wk-device { width: auto; height: 100%; max-width: 70%; aspect-ratio: 9 / 17; padding: 6px; border-radius: 22px; }
.bk-media-real .wk-device img { border-radius: 16px; }
.bk-info { display: grid; gap: 6px; flex: none; }
.bk-info h3 { font-size: var(--t-lead); }
.bk-desc { color: var(--slate); line-height: 1.5; }
.bk-info .text-link { min-height: 32px; }
.bk-num { display: none; }
.bk-cover { justify-content: center; align-items: flex-start; background: var(--steel) !important; color: var(--white); gap: 14px; }
.bk-cover h3 { font-size: var(--t-h2); max-width: 14ch; }
.bk-cover .bk-desc { color: var(--muted-d); max-width: 34ch; }
.bk-cover .tag { display: none; }
.bk-logo { width: 56px; height: 56px; color: var(--white); --logo-blue: #4F7BFF; }
.bk-back { align-items: center; text-align: center; background: var(--blue) !important; }
.bk-back .bk-desc { color: var(--white); }
.bk-cta { justify-content: center; align-items: flex-start; gap: 14px; background: var(--stone-2) !important; }
.bk-cta h3 { font-size: var(--t-h2); }
.bk-controls { display: flex; align-items: center; gap: 16px; }
.bk-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--stone-2); color: var(--steel); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s, transform .15s; }
.bk-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-btn-dark { background: var(--steel); color: var(--white); }
.bk-btn:hover:not(:disabled) { background: var(--blue); color: var(--white); }
.bk-btn:active:not(:disabled) { transform: scale(.95); }
.bk-btn:disabled { opacity: .35; cursor: default; }
.bk-status { min-width: 170px; text-align: center; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }


/* ---------- Pricing and work pages: V6 colours ---------- */
.lede { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; color: var(--muted); }
.p-head { position: relative; isolation: isolate; background: transparent; color: var(--text); border-bottom: 1px solid var(--line); }
.p-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(60% 90% at 80% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 90% at 80% 20%, #000, transparent 75%); }
.p-head h1 { font-weight: 500; }
.p-head .lede { color: var(--muted); }
.sec-head h2, .group-h, .cmp-h, .wk-list-h, .flip-head h2 { font-weight: 500; }
.plan { border: 1px solid var(--line); }
.plan-top { background: var(--panel); }
.plan-body { background: var(--bg-2); }
.plan-body li.off { color: var(--dim); }
.plan-featured { border-color: rgba(47,107,255,.5); }
.plan-featured .plan-top { background: var(--blue); color: #fff; }
.plan-featured .plan-pitch, .plan-featured .plan-price small { color: rgba(255,255,255,.82); }
.plan-featured .plan-note { color: #fff; }
.plan-featured .btn-blue { background: #fff; color: var(--blue); }
.plan-featured .btn-blue:hover { background: #E6ECFF; }
.plan-featured .plan-body { background: var(--panel-2); color: var(--text); }
.plan-note { color: var(--blue-lite); }
.plan-price { font-weight: 500; font-stretch: var(--wide); }
.compare { background: var(--bg-2); border-block: 1px solid var(--line); }
.cmp-wrap { background: var(--panel); border: 1px solid var(--line); }
.cmp thead th { background: var(--panel-2); font-weight: 500; }
.cmp tbody tr:nth-child(even) { background: rgba(237,239,244,.025); }
.cmp td .ck { color: var(--logo-blue); --check-ink: #fff; }
.cta-band { background: transparent; border-top: 1px solid var(--line); }
.cta-inner { background: radial-gradient(50% 80% at 100% 100%, rgba(47,107,255,.14), transparent 70%); color: var(--text); }
.cta-inner .btn-line { color: var(--text); }
.wk-filter { background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.wk-filter:hover { background: var(--panel-2); color: var(--text); }
.wk-filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wk-card { border: 1px solid var(--line); }
.wk-feat-media { background: radial-gradient(70% 80% at 50% 100%, rgba(47,107,255,.22), transparent 75%), var(--panel-2); }
.wk-cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.wk-cta-plus { background: #fff; color: var(--blue); }
.wk-cta:hover { background: var(--blue-hover); }
.wk-cta .text-link { color: #fff; }
.bk-page { background: var(--panel); }
.left > .bk-page, .bk-base.left > .bk-page { background: var(--panel-2); }
.bk-cover { background: var(--bg-2) !important; color: var(--text); }
.bk-back { background: var(--blue) !important; color: #fff; }
.bk-back .bk-desc, .bk-back h3 { color: #fff; }
.bk-cta { background: var(--panel-2) !important; }
.bk-media { background: var(--bg-2); }
.bk-media-real { background: radial-gradient(70% 80% at 50% 100%, rgba(47,107,255,.25), transparent 75%), var(--bg-2); }
.bk-logo { color: var(--text); }
.bk-btn { border: 1px solid var(--line-2); }
.bk-btn-dark { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Work page: concept screenshots in browser frames ---------- */
.wk-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(80% 90% at 50% 110%, rgba(47,107,255,.22), transparent 70%), var(--panel-2); }
.wk-card:hover .wk-shot .sw-browser { transform: translateY(-6px); }
.bk-media-shot { position: relative; display: block; background: radial-gradient(80% 90% at 50% 110%, rgba(47,107,255,.22), transparent 70%), var(--bg-2); }
.bk-media-shot .sw-browser { inset: 6% 6% 0; }
.wk-card .text-link { margin-top: auto; }

/* ---------- Touch targets and small screens ---------- */
.sw-filter, .nav-menu, .link-mono, .text-link, .cap-link, .sw-link { min-height: 44px; }
.bk-info .text-link { min-height: 44px; }
@media (max-width: 760px) {
  .foot-cols nav, .foot-cols > div:not(.foot-brand) { gap: 0; }
  .foot-cols a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-base a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -16px; }
  .tb-contact a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand-word { font-size: .95rem; }
  .brand-word span { display: none; }
  .nav-menu { padding: 0 12px; }
}
.hero-copy { position: relative; z-index: 1; }

/* the flipbook keeps horizontal swipes for itself so page turns work on touch */
#flip .book, #flip .stack { touch-action: pan-y; }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js .reveal, .w > span { opacity: 1; transform: none; }
}
.nf-page { min-height: 60svh; display: flex; align-items: center; padding-bottom: clamp(64px, 8vw, 120px); }
