/* Layout: executive landing page in one committed dark look — deep navy, one soft blue accent (used sparingly), quiet neutral line Venn at the top */
:root {
  color-scheme: dark;
  --bg: #0d1830;
  --surface: #13213d;
  --sunk: #1a2b4d;
  --ink: #eef2f9;
  --muted: #a3b1cb;
  --rule: #26375a;
  --accent: #8fb6ff;
  --accent-ink: #0b1630;
  --glow: rgba(143, 182, 255, .09);
  --bubble-in: #1a2b4d;
  --bubble-out: #26457a;
  --chat-bg: #13213d;
  --v1: #b3c2dd;
  --v2: #b3c2dd;
  --v3: #b3c2dd;
  --font-display: "Rubik", "Segoe UI", Arial, sans-serif;
  --font-body: "Assistant", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 106.25%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: radial-gradient(60rem 36rem at 30% -6rem, var(--glow), transparent 70%) no-repeat, var(--bg);
  color: var(--ink);
  font-family: var(--font-body); font-size: 1.06rem; font-weight: 300; line-height: 1.75;
  padding: 0 20px;
}
.site { max-width: 70rem; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header: floats at the top of the screen; once the page scrolls (.compact) it shrinks and gains a backdrop */
html { scroll-padding-top: 84px; }
body { overflow-x: clip; }
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; flex-wrap: wrap;
  transition: padding .35s ease;
}
/* the backdrop spans the full window width, behind the centred content */
.top::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .35s ease, transform .35s ease;
}
.top.compact { padding-block: 10px; }
.top.compact::before { opacity: 1; transform: none; }
.brand { display: grid; gap: 0; text-decoration: none; }
.brand b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; transition: font-size .35s ease; }
.brand small { font-size: .82rem; color: var(--muted); display: block; max-height: 1.6em; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
.top.compact .brand b { font-size: 1.08rem; }
.top.compact .brand small { max-height: 0; opacity: 0; }
.nav .btn { transition: padding .35s ease, opacity .25s ease, transform .25s ease; }
.top.compact .nav .btn { padding: 6px 14px; }
@media (prefers-reduced-motion: reduce) {
  .top, .top::before, .brand b, .brand small, .nav .btn { transition: none; }
}
.brand small span { direction: ltr; unicode-bidi: isolate; }
.brand small em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
/* the current page or section: brighter, with an accent line under it */
.nav a[aria-current] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 8px; }
.nav .btn { padding: 8px 16px; color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.kicker { font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.triad { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; line-height: 1.05; }
.triad span { display: block; }
.triad span:nth-child(2) { color: var(--muted); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* chat */
.chat { background: var(--chat-bg); border-radius: 18px; padding: 18px 14px 20px; display: grid; gap: 10px; min-width: 0; box-shadow: 0 18px 40px -24px rgba(10, 20, 30, .45); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.chat-head div { display: grid; line-height: 1.3; }
.chat-head b { font-size: .95rem; }
.chat-head small { font-size: .78rem; color: var(--muted); }
.bubble { max-width: 86%; padding: 8px 12px 6px; border-radius: 10px; font-size: .98rem; line-height: 1.5; display: grid; gap: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.bubble time { font-size: .7rem; color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.bubble.in { background: var(--bubble-in); justify-self: start; border-start-start-radius: 2px; }
.bubble.out { background: var(--bubble-out); justify-self: end; border-start-end-radius: 2px; }
.nav .btn.away { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* handwritten "write to us" note under the chat, arrow pointing up at the input */
.chat-wrap { position: relative; min-width: 0; padding-bottom: 64px; }
.chat-hint { position: absolute; bottom: 0; inset-inline-end: 24px; display: flex; align-items: flex-end; gap: 4px; color: var(--accent); pointer-events: none; }
.chat-hint span { font-family: "Amatic SC", "Segoe Print", cursive; font-weight: 700; font-size: 2rem; line-height: 1; transform: rotate(-4deg); }
.chat-hint svg { transform: scaleX(-1) translateY(-6px); }
/* desktop: the note sits beside the chat (to its left), arrow pointing right at the input, so it takes no extra height */
@media (min-width: 901px) {
  .problem .chat-wrap { order: -1; }
  .chat-wrap { padding-bottom: 0; display: flex; align-items: flex-end; gap: 4px; }
  .chat-wrap .chat { flex: 1; min-width: 0; }
  .chat-hint { position: static; flex: 0 0 96px; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 14px; }
  .chat-hint svg { transform: rotate(48deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-hint { animation: hint-nudge 2.6s ease-in-out infinite; }
  @keyframes hint-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
}

/* chat: visitor can send a message and gets a reply with a link to the contact form */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-input { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: .98rem; color: var(--ink); background: var(--bubble-in); border: 1px solid var(--rule); border-radius: 999px; padding: 9px 16px; }
.chat-input input::placeholder { color: var(--muted); }
.chat-input button { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.chat-input button svg { transform: scaleX(-1); }
.chat-input button:disabled { opacity: .5; cursor: default; }
textarea.flash { animation: field-flash 1.6s ease-out; }
@keyframes field-flash { 0%, 40% { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.bubble.live { animation: bubble-in .3s ease-out both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble-cta { justify-self: start; margin-top: 6px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bubble.live, .typing i { animation: none; } }

/* scroll reveal: only active once the script adds .js-anim (never with reduced motion), so content is visible without it */
.js-anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .chat .bubble,
.js-anim .agenda-list li { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.js-anim .chat.in .bubble,
.js-anim .agenda.in .agenda-list li { opacity: 1; transform: none; }
.js-anim .chat.in .bubble:nth-of-type(2) { transition-delay: .3s; }
.js-anim .chat.in .bubble:nth-of-type(3) { transition-delay: .9s; }
.js-anim .chat.in .bubble:nth-of-type(4) { transition-delay: 1.5s; }
.js-anim .chat.in .bubble:nth-of-type(5) { transition-delay: 2.1s; }
.js-anim .agenda.in .agenda-list li:nth-child(1) { transition-delay: .2s; }
.js-anim .agenda.in .agenda-list li:nth-child(2) { transition-delay: .3s; }
.js-anim .agenda.in .agenda-list li:nth-child(3) { transition-delay: .4s; }
.js-anim .agenda.in .agenda-list li:nth-child(4) { transition-delay: .5s; }
.js-anim .agenda.in .agenda-list li:nth-child(5) { transition-delay: .6s; }
.js-anim .agenda.in .agenda-list li:nth-child(6) { transition-delay: .7s; }
.js-anim .chat .bubble.live { opacity: 1; transform: none; transition: none; }

/* sections */
section.block { padding-block: 72px; border-top: 1px solid var(--rule); display: grid; gap: 32px; }
.sec-head { display: grid; gap: 10px; max-width: 42rem; }
.sec-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }

/* problem */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.problem p { color: var(--muted); }
.problem .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.4; }

/* value */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 26px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.value .verb { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--accent); line-height: 1; }
.value h3 { font-size: 1.2rem; }
.value ul { display: grid; gap: 6px; color: var(--muted); font-size: 1rem; }
.value li { padding-inline-start: 16px; position: relative; }
.value li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.value .ceo { border-top: 1px solid var(--rule); padding-top: 14px; font-weight: 700; }

/* top of page: name + lead, then the orbit */
.hero-top { display: grid; gap: 40px; padding-block: 40px 72px; }
.hero-intro { display: grid; gap: 20px; max-width: 46rem; }
.hero-intro h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; }
.aka { font-size: .95rem; color: var(--muted); letter-spacing: .01em; margin-top: -8px; }
.problem-h { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 700; }
.problem { align-items: center; }

/* venn: the CTO is the intersection of the three domains. Intro + key on one side, diagram on the other; stacks when narrow */
.hero-top { grid-template-columns: 1fr 1fr; grid-template-areas: "intro venn" "key venn"; column-gap: 56px; row-gap: 36px; align-items: start; }
.hero-intro { grid-area: intro; }
.venn-wrap { grid-area: venn; align-self: center; min-width: 0; }
.venn circle[data-k] { cursor: pointer; transition: fill-opacity .25s, stroke-opacity .25s; }
.venn circle[data-k]:hover { fill-opacity: .08; stroke-opacity: .8; }
.venn circle[data-k]:focus { outline: none; }
.venn circle[data-k]:focus-visible { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2; }
.venn .v-label, .venn .v-core { pointer-events: none; }
/* one card per circle, so leaving one and entering another animate at the same time; visibility flips only after the exit finishes */
.vcard { cursor: pointer; visibility: hidden; pointer-events: none; transition: visibility 0s linear .45s; }
.vcard.show { visibility: visible; pointer-events: auto; transition-delay: 0s; }
/* the card starts exactly over the original circle (190 × .895 ≈ 170) and as see-through, then grows and turns opaque */
.vcard-in { transform: scale(.895); transition: transform .4s ease; }
.vcard.show .vcard-in { transform: none; }
.venn .vcard-c { fill: var(--surface); fill-opacity: .04; stroke: var(--accent); stroke-opacity: .45; stroke-width: 1.5; transition: fill-opacity .4s ease, stroke-opacity .4s ease; }
.venn .vcard.show .vcard-c { fill-opacity: 1; stroke-opacity: 1; }
/* text: each line rises and fades in one after another, after the circle has started to grow */
.vcard-body > * { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.vcard.show .vcard-body > * { opacity: 1; transform: none; transition-duration: .35s; }
.vcard.show .vc-label { transition-delay: .18s; }
.vcard.show .vc-title { transition-delay: .26s; }
.vcard.show .vc-text { transition-delay: .34s; }
.venn circle[data-k], .venn .v-label { transition: opacity .3s ease, fill-opacity .25s, stroke-opacity .25s; }
.venn[data-active="1"] .v1, .venn[data-active="1"] .l1,
.venn[data-active="2"] .v2, .venn[data-active="2"] .l2,
.venn[data-active="3"] .v3, .venn[data-active="3"] .l3 { opacity: 0; }
.vcard-body { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; font-family: var(--font-body); color: var(--ink); }
.vc-label { font-size: 13px; font-weight: 600; color: var(--accent); }
.vc-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.25; }
.vc-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.venn-key li { transition: border-color .25s; }
.venn-key li.hl { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .vcard-in, .venn .vcard-c, .vcard-body > * { transition: none !important; transform: none; } }
.venn { width: 100%; max-width: 34rem; height: auto; display: block; margin-inline: auto; }
.venn circle { fill-opacity: .035; stroke-width: 1; stroke-opacity: .45; }
.venn .v1 { fill: var(--v1); stroke: var(--v1); }
.venn .v2 { fill: var(--v2); stroke: var(--v2); }
.venn .v3 { fill: var(--v3); stroke: var(--v3); }
.venn text { text-anchor: middle; font-family: var(--font-body); }
.v-word { font-family: var(--font-display); font-weight: 500; font-size: 25px; fill: var(--ink); }
.v-sub { font-size: 14px; font-weight: 300; fill: var(--muted); }
.v-core text { font-family: var(--font-display); font-weight: 700; font-size: 21px; fill: var(--accent); }
.venn-key { grid-area: key; display: grid; gap: 18px; }
.venn-key li { display: grid; gap: 4px; padding-inline-start: 16px; border-inline-start: 3px solid var(--rule); }
.venn-key h3 { font-size: 1.2rem; }
.venn-key p { color: var(--muted); font-size: 1rem; }
.node-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.k1 .node-label { color: var(--v1); }
.k2 .node-label { color: var(--v2); }
.k3 .node-label { color: var(--v3); }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; grid-template-areas: "intro" "venn" "key"; }
}

/* when */
.when { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.when li { display: flex; gap: 14px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.when li::before { content: "←"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* how */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); min-width: 0; }
.how .freq { font-size: .85rem; font-weight: 700; color: var(--accent); }
.how h3 { font-size: 1.2rem; }
.how p { color: var(--muted); font-size: 1rem; }

/* execution */
.exec { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; padding: 48px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.exec h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.exec p { opacity: .82; font-size: 1.1rem; }
.flow { display: grid; gap: 10px; }
.flow div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 10%, transparent); }
.flow b { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); min-width: 1.4em; }

.tag-opt { justify-self: start; font-size: .85rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 12px; }
.exec { grid-template-columns: 1fr; gap: 28px; }
.exec-head { display: grid; gap: 12px; max-width: 42rem; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg); min-width: 0; }
.path.strong { border-color: var(--accent); }
.path-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); border: 1px solid currentColor; }
.path h3 { font-size: 1.3rem; }
.exec .path p { opacity: 1; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }

/* agenda example */
.agenda { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 26px 22px; display: grid; gap: 14px; max-width: 52rem; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); }
.win-bar { display: flex; gap: 6px; direction: ltr; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.agenda-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.cal { width: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); text-align: center; flex-shrink: 0; }
.cal b { display: block; background: var(--accent); color: var(--accent-ink); font-size: .8rem; padding: 2px 0; }
.cal span { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: 4px 0; font-variant-numeric: tabular-nums; }
.agenda-meta { display: grid; gap: 2px; flex: 1; min-width: 12rem; }
.agenda-meta p { font-size: .9rem; color: var(--muted); }
.agenda-head h3 { font-size: 1.15rem; }
.agenda-ex { font-size: .8rem; color: var(--muted); border: 1px dashed var(--rule); border-radius: 4px; padding: 0 8px; }
.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.agenda-list li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 14px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.agenda-list li:last-child { border-bottom: 0; }
.atag { font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); justify-self: start; }
.atag.risk { color: #f2a27a; border-color: currentColor; }
.atag.budget { color: var(--accent); border-color: currentColor; }
.atag.opp { color: #7fd6a9; border-color: currentColor; }
.atext { min-width: 0; }
.astate { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.astate.done { color: #7fd6a9; }
@media (max-width: 560px) {
  .agenda { padding: 20px 16px; }
  .agenda-list li { grid-template-columns: 1fr auto; }
  .agenda-list .atext { grid-column: 1 / -1; grid-row: 2; }
}

/* translate box */
.translate { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 44px 40px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.translate h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); max-width: 40rem; }
.translate p { color: var(--muted); font-size: 1.12rem; max-width: 36rem; }
.chain { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; }
.chain li { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); }
.chain li:not(:last-child)::after { content: "←"; color: var(--accent); margin-inline-start: 16px; margin-inline-end: -8px; }
.chain li:last-child { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .translate { padding: 32px 20px; } }

/* team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; min-width: 0; }
.photo { width: 76px; height: 76px; border-radius: 50%; background: var(--sunk); overflow: hidden; display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person div { display: grid; gap: 6px; min-width: 0; }
.person h3 { font-size: 1.25rem; }
.person .role { font-size: .92rem; color: var(--accent); font-weight: 700; }
.person p { color: var(--muted); font-size: 1rem; }

/* fit */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fit .spec { color: var(--accent); font-weight: 600; }
.fit > div { background: var(--sunk); border-radius: 10px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.fit h3 { font-size: 1.25rem; }
.fit p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 12px; font-size: .9rem; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .sec-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; min-width: 0; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.form-msg { font-weight: 700; color: var(--accent); }

footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
/* about lab51 + clients */
.lab51 { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; padding-top: 32px; margin-top: 8px; border-top: 1px solid var(--rule); }
.lab51-intro { display: grid; gap: 12px; }
.lab51-name { font-size: 1.6rem; direction: ltr; text-align: right; }
.lab51-intro p { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.lab51-link { color: var(--accent); font-weight: 600; justify-self: start; }
.clients { display: grid; gap: 14px; }
.clients h3 { font-size: 1rem; font-weight: 600; color: var(--muted); }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.logos { display: flex; list-style: none; margin: 0; padding: 0; }
.logos li { flex: 0 0 auto; width: 170px; height: 76px; margin-right: 12px; background: #f4f6fa; border-radius: 10px; display: grid; place-items: center; padding: 12px 18px; }
.logos img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .marquee { overflow-x: auto; }
}

.en-block { border-top: 1px solid var(--rule); padding-block: 36px; display: grid; gap: 8px; text-align: left; }
.en-block h2 { font-size: 1.15rem; font-weight: 600; }
.en-block p { color: var(--muted); font-size: .95rem; max-width: 46rem; line-height: 1.65; }
.foot-terms { flex-basis: 100%; font-size: .82rem; opacity: .75; }
footer span.ltr { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 900px) {
  .hero, .problem, .exec, .contact { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .team, .fit, .when { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-block: 24px 56px; }
}
@media (max-width: 520px) {
  .how, .row { grid-template-columns: 1fr; }
  .exec { padding: 32px 22px; }
  .person { grid-template-columns: 1fr; }
  section.block { padding-block: 56px; }
}

/* pricing page */
.price-hero { display: grid; gap: 18px; padding-block: 40px 40px; max-width: 46rem; }
.price-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; }
.price-common { display: grid; gap: 6px; color: var(--ink); }
.price-common li { padding-inline-start: 22px; position: relative; }
.price-common li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 64px; }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 28px 26px; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; gap: 16px; min-width: 0; }
.tier.featured { border-color: var(--accent); }
.tier h2 { font-size: 1.3rem; font-weight: 500; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.price b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .95rem; }
.tier ul { display: grid; gap: 10px; }
.tier li { padding-inline-start: 22px; position: relative; }
.tier li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.price-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.price-cols h2 { font-size: 1.5rem; margin-bottom: 14px; }
.project-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; }
.project-box p { color: var(--muted); }
.price-cta { justify-items: center; text-align: center; gap: 14px; }
.price-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.price-cta p { color: var(--muted); max-width: 36rem; }
.price-cta .btn { justify-self: center; }
.vat-note { font-size: .88rem; }
@media (max-width: 900px) {
  .tiers, .price-cols { grid-template-columns: 1fr; }
}
.tier-fit { color: var(--muted); font-size: .98rem; line-height: 1.6; margin-top: -6px; }
.tier-fit b { color: var(--ink); font-weight: 600; }
.tiers-note { color: var(--muted); padding-bottom: 64px; margin-top: -40px; display: grid; gap: 4px; }
.price sup { font-size: .5em; color: var(--muted); margin-inline-start: 2px; }
.price-link { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; text-decoration: none; }
.price-link:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* pricing page v2: two parts (ongoing / projects) and a month-by-month example plan */
.parts .path { background: var(--surface); }
.parts .path p { color: var(--muted); }
.parts .path ul { display: grid; gap: 8px; }
.parts .path li { padding-inline-start: 22px; position: relative; }
.parts .path li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quarter { display: grid; gap: 14px; }
.quarter-n { font-size: 1.3rem; font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.month { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.month-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.month-ex { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--muted); border-radius: 999px; padding: 0 10px; line-height: 1.7; }
.month-n { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.month ul { display: grid; gap: 8px; margin-top: 4px; }
.month li { padding-inline-start: 22px; position: relative; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.month li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.plan-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.plan-foot p { color: var(--muted); }
.plan-foot p b { color: var(--ink); }
.plan-price b { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
@media (max-width: 900px) { .plan { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan { grid-template-columns: 1fr; } }

/* lab51 client logos, right under the hero: credited to Lab51, not to this service */
.clients-band { border-top: 1px solid var(--rule); padding-block: 32px 40px; }
.clients-band h3 a { color: var(--accent); text-decoration: none; }
.clients-band h3 a:hover { text-decoration: underline; }
.clients-band .ltr { direction: ltr; unicode-bidi: isolate; }

/* process tree: the example project on top, branching into three phases, each a column of numbered steps joined by a line; on phones the phases stack */
.tree { --link: 28px; --gap: 24px; display: grid; justify-items: center; }
.tree-phases, .tree-steps { list-style: none; margin: 0; }
.tree-root { position: relative; display: grid; gap: 2px; text-align: center; padding: 14px 28px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--surface); max-width: 30rem; }
.tree-root small { color: var(--accent); font-weight: 600; font-size: .85rem; }
.tree-root b { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.4; }
.tree-root::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; width: 2px; height: var(--link); background: var(--rule); }
.tree-phases { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: calc(var(--link) * 2) 0 0; }
/* the bar joining the three branches runs from the middle of the first column to the middle of the last */
.tree-phases::before { content: ""; position: absolute; top: var(--link); inset-inline: calc((100% - 2 * var(--gap)) / 6); height: 2px; background: var(--rule); }
.phase { position: relative; display: grid; justify-items: center; align-content: start; min-width: 0; }
.phase::before { content: ""; position: absolute; top: calc(var(--link) * -1); inset-inline-start: 50%; width: 2px; height: var(--link); background: var(--rule); }
.phase h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent); padding: 8px 22px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); }
.tree-steps { width: 100%; display: grid; gap: 18px; padding: 18px 0 0; }
.tree-steps li { position: relative; display: grid; gap: 4px; text-align: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.tree-steps li::before { content: ""; position: absolute; top: -18px; inset-inline-start: 50%; width: 2px; height: 18px; background: var(--rule); }
.tree-steps b { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.35; }
.tree-steps p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) {
  .tree-phases { grid-template-columns: 1fr; padding-top: var(--link); gap: calc(var(--link) + 8px); }
  .tree-phases::before { display: none; }
  .phase::before { top: calc((var(--link) + 8px) * -1); height: calc(var(--link) + 8px); }
  .phase:first-child::before { top: calc(var(--link) * -1); height: var(--link); }
  .tree-steps { max-width: 30rem; }
}

/* success stories: a short card on the home page; on the stories page each case leads with its number, then the moment of decision */
.story-card { display: grid; gap: 12px; padding: 26px 26px 28px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); max-width: 46rem; }
.story-card h3 { font-size: 1.35rem; }
.story-card p { color: var(--muted); }
section.cases { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { display: grid; gap: 14px; align-content: start; padding: 28px 28px 30px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); min-width: 0; scroll-margin-top: 24px; }
.case-stat { display: grid; gap: 2px; }
.case-stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--accent); }
.case-stat span { color: var(--muted); font-size: .95rem; }
.case h2 { font-size: 1.4rem; font-weight: 700; }
.case-hook { color: var(--ink); font-size: 1.08rem; }
.case p:not(.case-stat):not(.case-hook) { color: var(--muted); }
@media (max-width: 900px) { section.cases { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .case { padding: 22px 18px 24px; } }

/* home page: a swipeable row of story teasers, each linking to its full story; arrows below step one card at a time */
.carousel { display: grid; gap: 18px; min-width: 0; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 3); column-gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track li { scroll-snap-align: start; min-width: 0; display: grid; }
.teaser { display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto 1fr auto; padding: 24px 24px 22px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s; }
.teaser:hover { border-color: var(--accent); }
.teaser h3 { font-size: 1.2rem; }
.teaser .case-stat b { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.teaser .more { color: var(--accent); font-weight: 600; font-size: .95rem; }
.car-nav { display: flex; align-items: center; gap: 10px; }
.car-nav .price-link { margin-inline-start: auto; }
.car-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.car-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.car-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .car-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .car-track { grid-auto-columns: 85%; } }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

/* Lab51 umbrella: a thin strip above each product's own header, naming the brand and its products; it scrolls away, the product header stays */
.lab51-bar { display: flex; align-items: center; gap: 20px; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.lb-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; direction: ltr; unicode-bidi: isolate; flex-shrink: 0; }
.lb-brand em, .brand b em { font-style: normal; color: var(--accent); }
.lab51-bar nav { display: flex; gap: 18px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.lab51-bar nav::-webkit-scrollbar { display: none; }
.lab51-bar nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.lab51-bar nav a:hover { color: var(--ink); }
.lab51-bar nav a[aria-current] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.lb-lang { margin-inline-start: auto; flex-shrink: 0; color: var(--muted); text-decoration: none; font-weight: 600; border: 1px solid var(--rule); border-radius: 999px; padding: 0 10px; }
.lb-lang:hover { color: var(--ink); border-color: var(--muted); }
.brand b em { direction: ltr; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Lab51 home: one door per product */
.home-hero h1 { direction: ltr; text-align: right; font-size: clamp(3rem, 8vw, 4.8rem); }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero .hero-lead + p { color: var(--muted); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door { display: grid; gap: 12px; grid-template-rows: auto auto 1fr auto; padding: 28px 26px 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; min-width: 0; transition: border-color .2s; }
.door:hover { border-color: var(--accent); }
.door h3 { font-size: 1.4rem; }
.door p { color: var(--muted); }
.door .more { color: var(--accent); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

/* development: five working steps in one row */
.how.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .how.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how.five { grid-template-columns: 1fr; } }

/* English pages (dir="ltr"): the layout mirrors on its own through logical properties; these are the few spots that point a fixed way */
[dir="ltr"] .when li::before { content: "→"; }
[dir="ltr"] .chain li:not(:last-child)::after { content: "→"; }
[dir="ltr"] .home-hero h1, [dir="ltr"] .lab51-name { text-align: left; }
[dir="ltr"] .chat-input button svg { transform: none; }
[dir="ltr"] .chat-hint svg { transform: translateY(-6px); }
@media (min-width: 901px) {
  [dir="ltr"] .chat-hint svg { transform: scaleX(-1) rotate(48deg); }
}
