/* Services page: one stage (the wiring diagram) and quiet text around it. */
:root {
  --bg: #0b1115;
  --surface: #10181d;
  --surface-2: #15212a;
  --line: #1f2d32;
  --line-strong: #34494b;
  --ink: #edf1ed;
  --text: #c3d0cb;
  --muted: #8fa09b;
  --mint: #b7d9ca;
  --sand: #d9b992;
  --go: #5dff9e;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 18px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { direction: ltr; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0d1819; color: #d4e7d9; font-weight: 800; }
.brand-mark i { color: var(--sand); font-style: normal; }
/* Bar L logo (2026-11-26): the mark shows the official logo file; the old B. letters stay in the markup, hidden */
.brand-mark { background-image: url(/assets/bar-l.svg); background-repeat: no-repeat; background-position: center; background-size: 70%; font-size: 0; color: transparent; }
.brand-mark i { display: none; }
.top a.lang { color: var(--muted); font-size: 15px; text-underline-offset: 4px; }

.hero { padding-block: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.hero h1 { color: var(--ink); font-size: clamp(34px, 5.2vw, 68px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { display: block; margin-bottom: .35em; color: var(--text); font-size: .5em; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.hero .lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 52ch; font-size: clamp(18px, 1.7vw, 21px); }

/* The stage */
.stage { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 7vw, 88px); }
.stage h2 { color: var(--ink); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; }
.cases { margin-top: 20px; display: grid; gap: 22px; }
.cases h3 { color: var(--ink); font-size: 19px; font-weight: 700; }
.cases p { max-width: 62ch; }
.cases button { all: unset; cursor: pointer; }

.js .cases { display: flex; flex-wrap: wrap; gap: 10px; }
.js .cases li { display: contents; }
.js .cases p { display: none; }
.js .cases h3 { font-size: 16px; font-weight: 500; }
.js .cases button {
  box-sizing: border-box; display: block; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); background: transparent; line-height: 1.35; transition: background .25s, color .25s, border-color .25s;
}
.js .cases button:hover { border-color: var(--mint); color: var(--ink); }
.js .cases button[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #0b1115; font-weight: 700; }
.js .cases button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.board { display: none; }
.js .board {
  display: block; margin-top: 26px; border: 1px solid var(--line); border-radius: 26px; padding: clamp(10px, 2vw, 26px);
  background:
    radial-gradient(60% 70% at 50% 50%, #14242a 0%, #0b111500 72%),
    var(--surface);
}
.board svg { display: block; width: 100%; height: auto; overflow: visible; }
.board text { font-family: var(--font); fill: var(--text); font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.wire { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-wired .wire { stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.6, 0, .2, 1); }
.wire.is-lit { stroke: var(--mint); }
.node rect { fill: #0f191e; stroke: var(--line-strong); stroke-width: 1.5; transition: stroke .4s, fill .4s; }
.node.in rect { stroke: var(--sand); animation: waiting 1.5s ease-in-out infinite; }
.is-wired .node.in rect { animation: none; stroke: var(--line-strong); }
.node.is-lit rect { stroke: var(--mint); fill: #13242a; filter: drop-shadow(0 0 9px #b7d9ca55); }
.node.is-lit text { fill: #f4fff9; }
.node.hub rect { stroke-width: 2; }
.node.hub text { font-weight: 700; fill: var(--ink); }
.node.is-done rect { stroke: var(--go); filter: drop-shadow(0 0 8px #5dff9eaa); animation: done .7s ease-in-out 2; }
.dot { fill: #e9fff6; filter: drop-shadow(0 0 5px #d6fff0) drop-shadow(0 0 13px #b7d9ca); opacity: 0; }
.dot.is-on { opacity: 1; }
@keyframes waiting { 50% { stroke: #d9b99240; } }
@keyframes done { 50% { filter: drop-shadow(0 0 2px #5dff9e55); stroke: #5dff9e80; } }

.answer { display: none; }
.js .answer { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; margin-top: 26px; }
.answer p { max-width: 58ch; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); min-height: 3.4em; }

.btn {
  display: inline-block; padding: 15px 28px; border-radius: 999px; background: var(--mint); color: #0b1115;
  font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.btn:hover { background: #cfeadd; }

/* Quiet sections */
.band { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.band h2 { color: var(--ink); font-size: clamp(28px, 4vw, 46px); line-height: 1.15; font-weight: 800; max-width: 20ch; }
.band .intro { margin-top: 14px; max-width: 56ch; }
.keeps { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.keeps h3 { color: var(--mint); font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.steps { margin-top: clamp(28px, 4vw, 48px); counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: s; border-top: 2px solid var(--line-strong); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; color: var(--sand); font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.steps h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.steps p, .keeps p { font-size: 16.5px; }
.tools { margin-top: 22px; max-width: 60ch; color: var(--ink); font-size: clamp(19px, 2vw, 24px); line-height: 1.6; }

.close { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vw, 120px); }
.close h2 { color: var(--ink); font-size: clamp(34px, 6vw, 72px); line-height: 1.08; font-weight: 800; max-width: 15ch; }
.close p { margin-top: 18px; max-width: 50ch; }
.close .row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.close .mail { color: var(--text); text-underline-offset: 5px; }
footer { padding-block: 26px 40px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 860px) {
  .keeps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .js .answer { grid-template-columns: 1fr; }
  .answer p { min-height: 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .js .cases { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .js .cases button { border-radius: 16px; width: 100%; }
  .js .board { border-radius: 20px; margin-inline: calc(var(--gutter) * -.5); }
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node.in rect, .node.is-done rect { animation: none; }
  .is-wired .wire { transition: none; }
}

.faq { margin: clamp(24px, 3vw, 40px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px) clamp(28px, 5vw, 72px); }
.faq dt { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.faq dd { margin: 0; font-size: 16.5px; max-width: 52ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* The small aside above the tools list */
.wink { margin-top: 18px; }
.wink span {
  display: inline-block; position: relative; color: var(--sand); font-size: 19px; font-weight: 700;
  transform: rotate(-2.5deg); transform-origin: 50% 100%; animation: wink 5s ease-in-out infinite;
}
.wink span::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -3px; height: 2px; border-radius: 2px; background: var(--sand);
  transform: scaleX(0); transform-origin: 100% 50%; animation: wink-line 5s ease-in-out infinite;
}
[dir="ltr"] .wink span::after { transform-origin: 0 50%; }
.wink + .tools { margin-top: 14px; }
@keyframes wink { 0%, 62%, 100% { transform: rotate(-2.5deg); } 70% { transform: rotate(2deg) translateY(-3px); } 78% { transform: rotate(-4deg); } 86% { transform: rotate(-1deg); } }
@keyframes wink-line { 0%, 8% { transform: scaleX(0); } 26%, 100% { transform: scaleX(1); } }

/* Contact form */
html { scroll-padding-top: 24px; }
.form { margin-top: 30px; max-width: 620px; display: grid; gap: 18px; }
.form[hidden] { display: none; }
.form label { display: grid; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 500; }
.form input[type="text"], .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 400; resize: vertical;
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.form .hint { margin: 0; color: var(--muted); font-size: 15px; }
.form .row { margin-top: 4px; }
.form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form button.btn:disabled { opacity: .6; cursor: default; }
.form .status { margin: 0; color: var(--mint); font-size: 16px; }
.close .or { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wink span, .wink span::after { animation: none; } .wink span::after { transform: scaleX(1); } }

/* The headline chases its own tail: two turns when the page loads, and again when the pointer rests on it. */
.loop {
  display: inline-block; position: relative; width: .86em; height: .86em; margin-inline-start: .42em; vertical-align: -.1em;
  animation: chase 2.6s linear infinite;
}
.loop::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #b7d9ca00 0 12%, #b7d9ca66 60%, #d6fff0 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, #0000 calc(100% - 3.5px), #000 calc(100% - 2.5px));
}
.loop::after {
  content: ""; position: absolute; top: -2px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #e9fff6; box-shadow: 0 0 6px #d6fff0, 0 0 14px var(--mint);
}
@keyframes chase { from { transform: rotate(0); } to { transform: rotate(720deg); } }
@keyframes chase-again { from { transform: rotate(0); } to { transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .loop, .hero h1:hover .loop { animation: none; } }

/* Key words: two or three per paragraph, a little larger and bolder, like a newspaper subhead (2026-11-26) */
strong.key { color: var(--ink); font-size: 1.12em; font-weight: 700; line-height: 1; }
.swipe { display: none; }
