/* TaurusLink showcase. Visual language taken from the live tauruslink.com theme:
   Syne for display, Heebo for text, the logo's blue-to-violet gradient, a thin
   gradient rail on the left, a ring-and-dot cursor and spaced eyebrow labels. */

:root {
  --bg: #ffffff;
  --bg-soft: #fff4f1;
  --surface: #ffffff;
  --surface-2: #fdeeea;
  --surface-3: #f8e1dc;
  --ink: #0d0a0a;
  --ink-2: #3a2e2e;
  --muted: #6f5c5c;
  --line: #f0dcd8;
  --line-2: #e6c9c3;
  --blue: #d61f3a;
  --violet: #ff5a3c;
  --cyan: #19b7d3;
  --green: #18a86b;
  --amber: #e2a13b;
  --red: #d61f3a;
  --grad: linear-gradient(90deg, #c1121f 0%, #ff4d2e 100%);
  --grad-soft: linear-gradient(135deg, rgba(214, 31, 58, .09), rgba(255, 90, 60, .12));
  --shadow-1: 0 1px 2px rgba(20, 22, 40, .05), 0 8px 24px rgba(20, 22, 40, .06);
  --shadow-2: 0 2px 6px rgba(20, 22, 40, .06), 0 24px 60px rgba(20, 22, 40, .12);
  --footer: #0d0a0a;
  --radius: 18px;
  --radius-s: 12px;
  --display: "Syne", "Archivo", system-ui, sans-serif;
  --text: "Heebo", "Roboto", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0909;
    --bg-soft: #120d0d;
    --surface: #171111;
    --surface-2: #1d1515;
    --surface-3: #261b1b;
    --ink: #f8f3f2;
    --ink-2: #d9cbc8;
    --muted: #a69391;
    --line: #2e2222;
    --line-2: #3d2c2c;
    --grad-soft: linear-gradient(135deg, rgba(214, 31, 58, .18), rgba(255, 90, 60, .16));
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55);
    --footer: #070505;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0909;
  --bg-soft: #120d0d;
  --surface: #171111;
  --surface-2: #1d1515;
  --surface-3: #261b1b;
  --ink: #f8f3f2;
  --ink-2: #d9cbc8;
  --muted: #a69391;
  --line: #2e2222;
  --line-2: #3d2c2c;
  --grad-soft: linear-gradient(135deg, rgba(214, 31, 58, .18), rgba(255, 90, 60, .16));
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55);
  --footer: #070505;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(214, 31, 58, .22); }

h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-wrap: balance;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- preloader (the live site's equaliser bars) ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s ease; }
.preloader.done { opacity: 0; visibility: hidden; }
.bars { display: flex; gap: 4px; align-items: center; height: 46px; }
.bars span { width: 6px; background: var(--blue); border-radius: 1px; animation: bar 1s ease-in-out infinite; }
.bars span:nth-child(1) { height: 18px; animation-delay: -.4s; }
.bars span:nth-child(2) { height: 18px; animation-delay: -.3s; }
.bars span:nth-child(3) { height: 18px; animation-delay: -.2s; }
.bars span:nth-child(4) { height: 30px; animation-delay: -.1s; background: #7d7fe6; }
.bars span:nth-child(5) { height: 44px; background: var(--violet); }
@keyframes bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* ---------- custom cursor ---------- */
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 300; border-radius: 50%; opacity: 0; transition: opacity .3s ease; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255, 90, 60, .55); margin: -19px 0 0 -19px; transition: width .25s ease, height .25s ease, margin .25s ease, background-color .25s ease, opacity .3s ease; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--violet); }
.cursor-on .cursor-ring, .cursor-on .cursor-dot { opacity: 1; }
.cursor-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(214, 31, 58, .08); }
@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ---------- left rail with scroll progress ---------- */
.rail { position: fixed; left: 30px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(255, 90, 60, .35), rgba(214, 31, 58, .25)); z-index: 40; pointer-events: none; }
.rail i { position: absolute; left: -1px; top: 0; width: 3px; height: 0; background: var(--grad); border-radius: 3px; }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .35s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: 18px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--grad); transition: width .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.icon-btn:hover { border-color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .02em; padding: 13px 22px; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(214, 31, 58, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(214, 31, 58, .36); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); }
.nav-cta { padding: 10px 18px; }
.menu-btn { display: none; }
@media (max-width: 1240px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav-cta { display: none; } .brand img { height: 36px; } .nav { gap: 10px; } .seg button { padding: 5px 8px; } }

.drawer { position: fixed; inset: 76px 0 auto 0; z-index: 59; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; display: none; }
.drawer.open { display: block; }
.drawer a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 80px); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.floaters i { position: absolute; height: 56px; border-radius: 10px; background: var(--surface-2); animation: float 9s ease-in-out infinite; }
.floaters i:nth-child(1) { width: 34%; right: -4%; top: 58%; }
.floaters i:nth-child(2) { width: 42%; right: -8%; top: 70%; animation-delay: -3s; }
.floaters i:nth-child(3) { width: 22%; right: 0; top: 82%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-26px); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* console card */
.console { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.console::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.console-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.console-top b { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console-top b:nth-child(1) { background: #ff6b81; } .console-top b:nth-child(2) { background: #ffc35c; } .console-top b:nth-child(3) { background: #4fd18b; }
.console-top span { margin-left: 8px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.feed { list-style: none; margin: 0; padding: 8px 0; height: 336px; overflow: hidden; position: relative; }
.feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--surface)); }
.feed li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 18px; font-size: 13.5px; border-bottom: 1px dashed var(--line); animation: feedIn .5s ease both; }
.feed time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
.feed .tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-right: 8px; color: #fff; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.console-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.console-foot div { padding: 14px 18px; border-right: 1px solid var(--line); }
.console-foot div:last-child { border-right: 0; }
.console-foot b { display: block; font-family: var(--display); font-size: 22px; }
.console-foot small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.console-note { font-size: 11px; color: var(--muted); padding: 8px 18px 12px; }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 60px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* services: the commercial surface */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); transition: width .45s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.service:hover::after { width: 100%; }
.service .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; color: var(--blue); }
.service .ic svg { width: 22px; height: 22px; }
.service .n { position: absolute; right: 22px; top: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.service h3 { font-size: 24px; }
.service > p { color: var(--ink-2); font-size: 15.5px; }
.service ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.service li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.service li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.service .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.service .foot .see { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.service .foot .see::before { content: ""; width: 36px; height: 1px; background: var(--blue); transition: width .3s ease; }
.service .foot .see:hover::before { width: 56px; }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* headline results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.result { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.result:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.result .m { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.result h3 { font-size: 17px; line-height: 1.3; }
.result p { font-size: 14px; color: var(--muted); }
.result .who { margin-top: auto; padding-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
@media (max-width: 960px) { .results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .results { grid-template-columns: 1fr; } }

/* why us */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-item .k { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.why-item h3 { font-size: 21px; margin: 10px 0 8px; }
.why-item p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 22px 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.number { background: var(--surface); padding: 28px 26px; }
.number b { display: block; font-family: var(--display); font-size: clamp(34px, 4vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.number span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.number small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .numbers { grid-template-columns: 1fr; } }

/* capabilities */
.cap-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cap { text-align: left; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 20px 18px 18px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; min-height: 150px; display: flex; flex-direction: column; }
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.cap[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(214, 31, 58, .15); }
.cap .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; color: var(--blue); margin-bottom: 14px; }
.cap .ic svg { width: 20px; height: 20px; }
.cap h3 { font-size: 17px; line-height: 1.2; }
.cap p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cap .count { position: absolute; right: 14px; top: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-detail { margin-top: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 26px; display: none; }
.cap-detail.open { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; animation: feedIn .35s ease; }
.cap-detail h3 { font-size: 26px; }
.cap-detail .what { color: var(--ink-2); margin-top: 10px; }
.cap-detail ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.cap-detail ul li { margin: 4px 0; }
@media (max-width: 780px) { .cap-detail.open { grid-template-columns: 1fr; } }
.proof-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s ease, background-color .2s ease, color .2s ease; text-align: left; }
.chip:hover { border-color: var(--blue); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line-2); }

/* matrix */
.matrix-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 640px; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 980px; width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: center; }
.matrix thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; vertical-align: bottom; height: 150px; }
.matrix thead th div { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 500; color: var(--ink-2); margin: 0 auto; }
.matrix tbody th { position: sticky; left: 0; background: var(--surface); text-align: left; font-weight: 600; white-space: nowrap; padding-left: 16px; z-index: 1; }
.matrix tbody th button { text-align: left; }
.matrix tbody th button:hover { color: var(--blue); }
.matrix td i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(214, 31, 58, .12); }
.matrix tr:hover td, .matrix tr:hover th { background: var(--surface-2); }
.matrix thead th:first-child { left: 0; z-index: 3; text-align: left; vertical-align: bottom; padding-left: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters-2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; background: var(--surface); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; }
.select { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; background: var(--surface); font-size: 14px; max-width: 100%; }
.active-filter { font-size: 13px; color: var(--muted); }
.active-filter button { color: var(--blue); font-weight: 600; margin-left: 6px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-grid .card.feature { grid-column: span 2; }
@media (max-width: 1080px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .work-grid { grid-template-columns: 1fr; } .work-grid .card.feature { grid-column: auto; } }
.card { text-align: left; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card .media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.card.feature .media { aspect-ratio: 21 / 10; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.03); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-wrap: balance; }
.card h3 { font-size: 22px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag-s { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.status { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status.s-launching::before, .status.s-testing::before { background: var(--amber); }
.status.s-delivered::before { background: var(--blue); }
.status.s-prototype::before, .status.s-lab::before, .status.s-demo::before { background: var(--violet); }
.card .open-hint { position: absolute; right: 14px; top: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; }
.card:hover .open-hint { opacity: 1; transform: none; }
.open-hint svg { width: 16px; height: 16px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- mock UIs for systems shown without client screens ---------- */
.mock { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; background:
  radial-gradient(120% 90% at 100% 0%, rgba(255, 90, 60, .18), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, rgba(214, 31, 58, .16), transparent 60%), var(--surface-2); font-size: 11px; color: var(--ink-2); overflow: hidden; }
.mock .bar { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.mock .bar b { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mock .bar span { margin-left: auto; }
.m-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; align-items: center; }
.m-row.h { background: transparent; border-color: transparent; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 9.5px; }
.m-row .pos { color: #117a4e; font-weight: 600; } .m-row .neg { color: #b5132d; font-weight: 600; }
:root[data-theme="dark"] .m-row .pos { color: #3fcf8e; } :root[data-theme="dark"] .m-row .neg { color: #ff6a5a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-row .pos { color: #3fcf8e; } :root:not([data-theme="light"]) .m-row .neg { color: #ff6a5a; } }
.m-pill { display: inline-block; font-size: 9.5px; padding: 1px 6px; border-radius: 6px; background: rgba(24, 168, 107, .14); color: var(--green); font-weight: 600; }
.m-pill.w { background: rgba(226, 161, 59, .16); color: var(--amber); }
.m-bubbles { display: flex; flex-direction: column; gap: 8px; }
.m-b { max-width: 78%; padding: 8px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); line-height: 1.35; font-size: 11.5px; }
.m-b.me { align-self: flex-end; background: var(--grad); color: #fff; border: 0; }
.m-b small { display: block; font-family: var(--mono); font-size: 9.5px; opacity: .7; margin-top: 3px; }
.m-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.m-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
.m-typing i:nth-child(2) { animation-delay: .2s; } .m-typing i:nth-child(3) { animation-delay: .4s; }
.m-wave { display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 6px; }
.m-wave i { flex: 1; border-radius: 3px; background: var(--grad); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; }
.m-tile { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-family: var(--mono); font-size: 10px; }
.m-tile::before { content: ""; flex: 1; border-radius: 7px; background: var(--grad-soft); min-height: 30px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-kpi { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; }
.m-kpi b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); }
.m-kpi small { color: var(--muted); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.m-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-height: 60px; }
.m-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); opacity: .85; }
.m-stage { flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.m-screen { border-radius: 10px; background: #0d0f18; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 15px; }
.m-screen::after { content: ""; position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: #e0526b; content: "LIVE"; color: #fff; }
.m-side { display: flex; flex-direction: column; gap: 6px; }
.m-side div { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 8px; font-size: 10.5px; }
.m-cad { flex: 1; border-radius: 10px; background: #0d1020; position: relative; overflow: hidden; }
.m-cad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-phone { margin: 0 auto; width: 42%; min-width: 120px; flex: 1; border-radius: 22px; border: 6px solid #171111; background: var(--surface); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); }
.m-phone .row { height: 22px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 7px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.m-phone .row.hl { background: var(--grad); color: #fff; border: 0; }
.m-pipe { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-col { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.m-col b { font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.m-col i { height: 18px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.m-col i.g { background: var(--grad-soft); border-color: rgba(214, 31, 58, .3); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 16, .55); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(980px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; animation: slideIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-head { padding: 22px clamp(18px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.modal-head .row1 { display: flex; align-items: center; gap: 10px; }
.modal-head .row1 .status { position: static; }
.modal-head .nav-arrows { margin-left: auto; display: flex; gap: 8px; }
.modal-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 6px; }
.modal-head .client { color: var(--muted); font-size: 14px; }
.modal-head .tagline { font-size: 17px; color: var(--ink-2); margin-top: 10px; max-width: 760px; }
.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.modal-body { overflow-y: auto; padding: 26px clamp(18px, 3vw, 36px) 40px; flex: 1; }
.pane { display: none; }
.pane.on { display: block; animation: feedIn .3s ease; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ov-box { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; background: var(--surface); }
.ov-box h4 { font-family: var(--text); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.ov-box p { color: var(--ink-2); font-size: 15px; }
.ov-box.wide { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.fact { border-radius: var(--radius-s); padding: 16px; background: var(--grad-soft); border: 1px solid rgba(214, 31, 58, .2); font-size: 14.5px; font-weight: 500; }
.fact::before { content: ""; display: block; width: 18px; height: 2px; background: var(--grad); margin-bottom: 10px; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--violet); padding-left: 12px; }
@media (max-width: 700px) { .ov-grid { grid-template-columns: 1fr; } }
/* modules: one card per module, its label as the heading and one bullet per feature;
   CSS columns so short and long cards pack without gaps */
.mod-sum { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.mod-sum b { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.mod-list { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 12px; }
.mod-list > li.mod { break-inside: avoid; display: block; margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink-2); }
.mod-list h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.mod-list h5::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.mod-list li.mod ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mod-list li.mod ul li { position: relative; padding-left: 17px; font-size: 14.5px; line-height: 1.5; }
.mod-list li.mod ul li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: .8; }
.mod-list li.mod p { font-size: 14.5px; line-height: 1.55; }
.mod-list > li.mod.plain { position: relative; padding-left: 42px; }
.mod-list > li.mod.plain::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.ai-list h5::before, .ai-list > li.mod.plain::before { border-radius: 50%; }
.stack-groups { display: grid; gap: 18px; }
.stack-groups h4 { font-family: var(--text); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gallery { columns: 2; column-gap: 14px; }
.gallery > * { break-inside: avoid; margin-bottom: 14px; }
.gallery button { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface-2); display: block; width: 100%; }
.gallery img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.02); }
.gallery button.tall img { max-height: 640px; object-fit: contain; }
.gallery video { width: 100%; border-radius: var(--radius-s); border: 1px solid var(--line); background: #000; }
.gallery .cap-txt { font-size: 12.5px; color: var(--muted); padding: 6px 2px 0; }
@media (max-width: 600px) { .gallery { columns: 1; } }
.mock-hero { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(6, 7, 12, .9); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1300px, 100%); max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-2); }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; background: #171111; border-color: #3d2c2c; color: #fff; }

/* ---------- problem finder ---------- */
.finder { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.finder-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 720px; overflow: auto; }
.finder-group { padding: 14px 18px 4px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.finder-item { width: 100%; text-align: left; padding: 11px 18px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; border-top: 1px solid var(--line); font-size: 14.5px; transition: background-color .2s ease; }
.finder-item:hover { background: var(--surface-2); }
.finder-item[aria-selected="true"] { background: var(--grad-soft); }
.finder-item .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.finder-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(20px, 3vw, 36px); position: sticky; top: 96px; }
.finder-panel h3 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0 18px; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fp-box h4 { font-family: var(--text); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.fp-box p { color: var(--ink-2); font-size: 15px; }
.fp-box.build { grid-column: 1 / -1; padding: 18px; border-radius: var(--radius-s); background: var(--grad-soft); border: 1px solid rgba(214, 31, 58, .2); }
.fp-box.build p { color: var(--ink); }
.fp-proof { margin-top: 18px; }
@media (max-width: 960px) { .finder { grid-template-columns: 1fr; } .finder-list { max-height: 360px; } .finder-panel { position: static; } }
@media (max-width: 600px) { .fp-grid { grid-template-columns: 1fr; } }

/* ---------- industries ---------- */
.ind-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ind-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.ind-main { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); background: var(--surface); }
.ind-main h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.ind-main p { color: var(--ink-2); }
.ind-main .build-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ind-main .build-list li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15px; }
.ind-main .build-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--grad); }
.ind-side { display: grid; gap: 16px; align-content: start; }
.ind-side .ov-box { padding: 20px; }
@media (max-width: 860px) { .ind-panel { grid-template-columns: 1fr; } }

/* ---------- video studio ---------- */
.videos { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 18px; align-items: start; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video-card video { width: 100%; background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card.v video { aspect-ratio: 9 / 16; }
.video-card .body { padding: 14px 16px 16px; }
.video-card h3 { font-size: 17px; }
.video-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .videos { grid-template-columns: 1fr 1fr; } .video-card.v { grid-column: span 2; max-width: 380px; } }
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; } .video-card.v { grid-column: auto; } }

/* ---------- client sites ---------- */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.site:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.site .shot { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.site .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site .shot img.logo { width: 60%; height: auto; object-fit: contain; }
.site .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.site h3 { font-size: 17px; }
.site p { font-size: 13px; color: var(--muted); }
.site .url { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
@media (max-width: 1080px) { .sites { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sites { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--grad); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { font-size: 24px; margin: 10px 0 10px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .more { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.step .more::before { content: ""; width: 60px; height: 1px; background: var(--blue); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.model h3 { font-size: 22px; margin-bottom: 8px; }
.model p { color: var(--ink-2); font-size: 15px; }
.model ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }
.standards { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.std { border-radius: var(--radius-s); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.std h4 { font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.std p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 1000px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .standards { grid-template-columns: 1fr; } }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.stack-col h3 { font-size: 18px; margin-bottom: 12px; }
@media (max-width: 1000px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-card { border-radius: 24px; padding: 34px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
/* founder photo, the Killquota way: a large rounded square in a white frame, centred, text under it */
.about-card { text-align: center; }
.about-card .portrait { width: min(100%, 400px); margin: 0 auto 26px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(10, 12, 40, .28); position: relative; z-index: 1; }
.about-card .portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 12px; }
.about-card .eyebrow { justify-content: center; }
.about-card .eyebrow::before { display: none; }
.about-card p { text-wrap: balance; }
.about-card .facts-row { text-align: left; }
.about-card h3 { font-size: 34px; }
.about-card p { margin-top: 12px; opacity: .92; }
.about-card .facts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.about-card .facts-row b { display: block; font-family: var(--display); font-size: 30px; }
.about-card .facts-row span { font-size: 13px; opacity: .9; }
.about-text h2 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 18px; }
.about-text p { color: var(--ink-2); font-size: 17px; margin-top: 12px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { text-align: center; padding: clamp(70px, 10vw, 140px) 0; }
.contact h2 { font-size: clamp(38px, 6vw, 84px); max-width: 1000px; margin: 16px auto 18px; }
.contact p { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 0 auto; }
.contact .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--footer); color: #a7a8b6; padding: 54px 0 40px; font-size: 13.5px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.foot img { height: 40px; width: auto; margin-bottom: 14px; }
.foot h4 { font-family: var(--text); color: #fff; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 12px; }
.foot a { display: block; padding: 3px 0; color: #c6c7d4; }
.foot a:hover { color: #fff; }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid #2b2b33; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #7c7d8c; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 65; width: 46px; height: 46px; color: var(--ink); display: grid; place-items: center; background: transparent; border: 0; box-shadow: none; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.to-top .skin { position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transition: border-color .2s ease; }
.to-top > svg { position: relative; z-index: 1; }
.to-top:hover .skin { border-color: var(--red); } .to-top:hover { color: var(--red); }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .to-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; } .modal-open .to-top { opacity: 0; pointer-events: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   v3: section identities (dark and gradient bands, per-service accents)
   and a mobile layout built on swipe rows instead of stacked cards.
   ===================================================================== */

/* dark band: the same tokens with darker values, so every component inside re-themes itself */
.band-dark {
  --bg: #0b0c15; --bg-soft: #0b0c15; --surface: #121423; --surface-2: #181b2c; --surface-3: #1f2338;
  --ink: #f4f4fa; --ink-2: #c3c5d8; --muted: #8b8ea8; --line: #242842; --line-2: #30354f;
  --grad-soft: linear-gradient(135deg, rgba(214, 31, 58, .20), rgba(255, 90, 60, .20));
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55);
  color: var(--ink);
  background:
    radial-gradient(55% 60% at 88% 0%, rgba(214, 31, 58, .22), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(255, 90, 60, .20), transparent 70%),
    #0b0c15;
}
:root[data-theme="dark"] .band-dark {
  --surface: #0f1120; --surface-2: #151829;
  background:
    radial-gradient(55% 60% at 88% 0%, rgba(214, 31, 58, .26), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(255, 90, 60, .24), transparent 70%),
    #05060b;
  border-top: 1px solid #1c2033; border-bottom: 1px solid #1c2033;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-dark {
    --surface: #0f1120; --surface-2: #151829;
    background:
      radial-gradient(55% 60% at 88% 0%, rgba(214, 31, 58, .26), transparent 70%),
      radial-gradient(45% 55% at 0% 100%, rgba(255, 90, 60, .24), transparent 70%),
      #05060b;
    border-top: 1px solid #1c2033; border-bottom: 1px solid #1c2033;
  }
}

/* the header turns dark while it sits over a dark band */
.site-header.on-dark {
  --bg: #0b0c15; --surface: #121423; --surface-2: #181b2c;
  --ink: #f4f4fa; --ink-2: #c3c5d8; --muted: #8b8ea8; --line: #242842; --line-2: #30354f;
  color: var(--ink); border-bottom-color: var(--line);
}

/* gradient band for the call to action */
.band-grad {
  position: relative; overflow: hidden; color: #fff; background-color: #c1121f;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .20), transparent 60%),
    linear-gradient(120deg, #c1121f 0%, #e8362a 55%, #ff4d2e 100%) #c1121f;
}
.band-grad .eyebrow { color: rgba(255, 255, 255, .88); }
.band-grad .eyebrow::before { background: rgba(255, 255, 255, .8); }
.band-grad p { color: rgba(255, 255, 255, .92); }
.band-grad .grad-text { background: none; -webkit-text-fill-color: currentColor; color: rgba(255, 255, 255, .72); }
.band-grad .btn-primary { background: #0d0a0a; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.band-grad .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.band-grad .btn-ghost:hover { border-color: #fff; }

/* one accent per service */
.service { --acc: var(--blue); background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 62%), var(--surface); }
.service::after { width: 100%; height: 4px; background: var(--acc); }
.service:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.service .ic { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.service .n { color: var(--acc); font-weight: 600; }
.service li::before { border-color: var(--acc); }
.service .foot .see::before { background: var(--acc); }

/* work: "see all" row */
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.more-row:empty { display: none; }

/* under the hood: tabs */
.deep-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.deep-tabs .chip { font-size: 14px; padding: 9px 16px; }
.pane-lead { color: var(--ink-2); max-width: 760px; margin-bottom: 18px; }
.deep-pane .standards { margin-top: 0; }

/* problem finder: previous / next */
.finder-list { position: relative; }
.fp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.fp-nav .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fp-nav .btn { padding: 9px 16px; font-size: 13px; }

/* mobile booking bar */
.mobile-cta { display: none; }

@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .section-head { gap: 12px; margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .section-head p { font-size: 15.5px; }
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .hero .lead { font-size: 16px; }
  .floaters, .console-note { display: none; }
  .feed { height: 196px; }

  /* sideways swipe rows: the next card peeks in so the row reads as swipeable */
  .swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-left: var(--gutter); }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .results.swipe > *, .why.swipe > * { flex-basis: 80%; }
  .sites.swipe > * { flex-basis: 72%; }
  .videos.swipe { align-items: center; }
  .videos.swipe > .video-card.v { flex-basis: 46%; max-width: none; }
  .steps.swipe { border-top: 0; }
  .steps.swipe .step { padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .steps.swipe .step::before { left: 18px; }
  .models.swipe { margin-top: 14px; }

  .numbers { grid-template-columns: 1fr 1fr; }
  .number { padding: 18px 16px; }
  .number b { font-size: 30px; }
  .number small { display: none; }
  .results { margin-top: 16px; }

  /* chip rows scroll sideways instead of wrapping into many lines */
  .filters, .ind-tabs, .deep-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar, .ind-tabs::-webkit-scrollbar, .deep-tabs::-webkit-scrollbar { display: none; }
  .filters .chip, .ind-tabs .chip, .deep-tabs .chip { flex: 0 0 auto; white-space: nowrap; }
  .filters-2 { gap: 8px; margin-bottom: 18px; }
  .filters-2 .search { flex-basis: 100%; }
  .filters-2 .select { flex: 1 1 40%; min-width: 0; }

  /* work: compact rows, picture left and text right */
  .work-grid { grid-template-columns: 1fr; gap: 10px; }
  .work-grid .card, .work-grid .card.feature { flex-direction: row; grid-column: auto; }
  .work-grid .card .media, .work-grid .card.feature .media { flex: 0 0 38%; aspect-ratio: auto; min-height: 116px; border-bottom: 0; border-right: 1px solid var(--line); }
  .work-grid .card .body { padding: 12px 14px; gap: 4px; }
  .work-grid .card h3 { font-size: 17px; }
  .work-grid .card p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .work-grid .card .kicker, .work-grid .card .tags, .work-grid .card .open-hint { display: none; }
  .work-grid .status { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }
  .work-grid .mock { padding: 8px; gap: 5px; font-size: 9px; }
  .work-grid .mock .bar span, .work-grid .mock .m-kpis { display: none; }
  .more-row .btn { width: 100%; justify-content: center; }

  .service { padding: 22px 18px 18px; gap: 10px; }
  .service h3 { font-size: 21px; padding-right: 26px; }
  .service > p { font-size: 14.5px; }
  .service li { font-size: 14px; }
  .result { padding: 20px 18px; }
  .why-item { padding: 20px 18px; }

  /* problems: the list becomes a sideways strip above the panel */
  .finder-list { display: flex; overflow-x: auto; max-height: none; scroll-snap-type: x proximity; scrollbar-width: none; }
  .finder-list::-webkit-scrollbar { display: none; }
  .finder-group { display: none; }
  .finder-item { flex: 0 0 auto; width: 230px; border-top: 0; border-right: 1px solid var(--line); scroll-snap-align: start; padding: 12px 14px; grid-template-columns: 24px 1fr; font-size: 13.5px; align-items: start; }
  .finder-panel { padding: 20px 18px; }
  .finder-panel h3 { font-size: 24px; margin-bottom: 14px; }

  .ind-main { padding: 20px 18px; }
  .ind-main h3 { font-size: 24px; }

  /* capabilities: compact two-column tiles; tap one for the detail */
  .cap-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cap { min-height: 0; padding: 14px 12px 12px; }
  .cap p { display: none; }
  .cap h3 { font-size: 14px; padding-right: 14px; }
  .cap .ic { width: 32px; height: 32px; margin-bottom: 10px; }
  .cap-toolbar .active-filter { display: none; }
  .cap-detail.open { padding: 18px; }
  .standards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .std { padding: 14px; }
  .std p { font-size: 13px; }

  .about-card { padding: 24px; }
  .about-card .portrait { width: min(100%, 320px); margin-bottom: 20px; padding: 8px; }
  .about-card h3 { font-size: 28px; }
  .about-text p { font-size: 15.5px; }
  .faq summary { font-size: 17px; padding: 16px 36px 16px 0; }
  .contact { padding: 60px 0; }
  .contact h2 { font-size: clamp(32px, 9vw, 42px); }

  .mobile-cta { position: fixed; left: 8%; right: 8%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 84%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; color: #fff; font-weight: 600; font-size: 15px; border-radius: 999px; background-color: #d61f3a; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
  .mobile-cta .skin { position: absolute; inset: 0; z-index: -1; border-radius: 999px; background-color: #d61f3a; background-image: var(--grad); box-shadow: 0 14px 34px rgba(214, 31, 58, .35); }
  .mobile-cta > svg, .mobile-cta > span { position: relative; z-index: 1; }
  .mobile-cta svg { width: 18px; height: 18px; }
  .mobile-cta.show { transform: none; opacity: 1; visibility: visible; transition: transform .3s ease, opacity .3s ease, visibility 0s; }
  .modal-open .mobile-cta { transform: translateY(-8px); opacity: 0; visibility: hidden; }
  /* iOS: Safari 26's minimised tab bar floats right under the page area; 24px keeps the pill clear of it on every phone size (measured 4px on an iPhone at 390x844 with 12px) */
  @supports (-webkit-touch-callout: none) { .mobile-cta { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }
  footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =====================================================================
   v4: reading aids. Long copy gets a bold lead sentence and highlighted
   figures (rich() in app.js), every labelled box an icon and an accent
   colour for its kind, and lists real tick bullets.
   ===================================================================== */

/* lead sentence and figures */
.lead-s { color: var(--ink); font-weight: 600; }
b.num {
  color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 2px; border-radius: 3px;
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--blue) 24%, transparent) 58%);
}
.band-grad .lead-s, .band-grad b.num { color: #fff; }

/* rhythm and line length of running text */
.ov-box p, .fp-box p, .ind-main > p, .cap-detail .what, .faq details p, .why-item p, .step p, .about-text p { line-height: 1.72; }
.ov-box p, .fp-box p { font-size: 15.5px; }
.ind-main > p, .cap-detail .what, .faq details p, .about-text p { max-width: 68ch; }

/* labels: icon tile plus the label in the accent of its kind */
h4.lbl {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
  color: var(--k, var(--blue));
}
h4.lbl .li { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--k, var(--blue)) 14%, transparent); }
h4.lbl svg { width: 16px; height: 16px; }
.k-problem, .k-cost { --k: #e0526b; }
.k-solution { --k: #18a86b; }
.k-sym { --k: #1a9fbd; }
.k-why { --k: #d4891c; }
.k-ask { --k: #9a6fd0; }
.fp-box.build { --k: #d61f3a; }

/* overview: problem and what we built, each with its own accent bar */
.ov-box.k-problem, .ov-box.k-solution {
  padding: 20px 22px;
  box-shadow: inset 0 3px 0 var(--k);
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 7%, var(--surface)), var(--surface) 55%);
}

/* finder: four tinted cards, the question as a pull quote, the build box full width */
.fp-grid { gap: 14px; }
.fp-box { padding: 18px 20px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--k, var(--blue)) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--k, var(--blue)) 18%, var(--line)); }
.fp-box.k-ask p { font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1.42; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.fp-box.k-ask p::before { content: "\201C"; display: block; height: 22px; margin-bottom: 2px; font-size: 44px; line-height: 1; color: var(--k); }
.fp-box.build { padding: 20px 22px; }

/* tick lists */
ul.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.service ul.ticks li, .ind-main ul.ticks li, .cap-detail ul.ticks li, .model ul.ticks li, ul.ticks li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0; margin: 0; line-height: 1.5; color: var(--ink-2); }
.service ul.ticks li::before, .ind-main ul.ticks li::before, .cap-detail ul.ticks li::before, .model ul.ticks li::before { content: none; display: none; }
ul.ticks .tick { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 4px; border-radius: 50%; color: var(--tick, #18a86b); background: color-mix(in srgb, var(--tick, #18a86b) 15%, transparent); }
.service ul.ticks { --tick: var(--acc); margin-top: 4px; gap: 8px; }
.cap-detail ul.ticks { --tick: var(--blue); }
.model ul.ticks { --tick: var(--violet); font-size: 14.5px; }
.ind-main ul.ticks { margin-top: 20px; gap: 10px; }
.ind-main ul.ticks li { font-size: 15.5px; color: var(--ink); }

/* facts: a figure in a fact card reads as the headline of that card */
.fact b.num { background: none; padding: 0; font-family: var(--display); font-size: 1.12em; }

@media (max-width: 700px) {
  .ov-box p, .fp-box p { font-size: 15px; }
  .ov-box.k-problem, .ov-box.k-solution, .fp-box, .fp-box.build { padding: 16px 16px; }
  .fp-box.k-ask p { font-size: 16.5px; }
  h4.lbl { font-size: 11.5px; letter-spacing: .12em; }
  .mod-list > li.mod { padding: 14px 15px; }
  .mod-list li.mod ul li, .mod-list li.mod p { font-size: 14px; }
}

/* Safe-area insets: 0 in Safari (no viewport-fit=cover on purpose: with cover iOS 26 puts the page behind the floating tab bar and the bar covers the WhatsApp pill); they only matter in a standalone/PWA shell */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.drawer { top: calc(76px + env(safe-area-inset-top, 0px)); }
footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }
