/* ==========================================================================
   adVinced stylesheet
   World: a process model. Sheet, ink hairlines, rounded tasks, diamonds,
   events. One signal colour marks AI work and the primary action.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sheet: #f4f5f2;
  --sheet-2: #e9ebe6;
  --paper: #fbfbf9;
  --ink: #121413;
  --ink-2: #353b38;
  --muted: #59605c;
  --rule: #c7ccc6;
  --signal: #0a7a4f;
  --signal-deep: #075c3b;
  --signal-tint: #d9ece2;
  --on-signal: #ffffff;
  --danger: #a3261b;
  --danger-tint: #f6dfdb;

  --stroke: 1.5px;
  --radius: 10px;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --line-x: 18px;       /* position of the page's sequence flow inside the gutter */
  --indent: 64px;       /* section content indent from the flow line */
  --header-h: 68px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sheet: #0f1211;
    --sheet-2: #171b19;
    --paper: #1a1f1c;
    --ink: #edf0eb;
    --ink-2: #c4cac5;
    --muted: #949c97;
    --rule: #2e3531;
    --signal: #3cc98a;
    --signal-deep: #66d9a5;
    --signal-tint: #163327;
    --on-signal: #0b100d;
    --danger: #ff8f80;
    --danger-tint: #3a1a16;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--sheet);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--sheet);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--signal); color: var(--on-signal); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

html { scrollbar-color: var(--rule) var(--sheet); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Buttons: tasks you can click ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.35rem; border-radius: var(--radius);
  border: var(--stroke) solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn-primary:hover svg use[href="#i-arrow"] { transform: translateX(3px); }
.btn:hover svg { transform: translateX(2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--sheet); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: var(--sheet);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.site-header.scrolled { border-color: var(--rule); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; color: var(--ink); text-decoration: none; }
.logo { height: 26px; width: auto; }
.logo-v { stroke: var(--sheet); }
.logo-dot { fill: var(--signal); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: var(--radius); text-decoration: none;
  font-weight: 500; font-size: .975rem; color: var(--ink-2); transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--sheet-2); }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav-cta { margin-left: 12px; }
.nav-links .nav-cta a.btn { color: var(--on-signal); background: var(--signal); min-height: 42px; padding: .6rem 1.05rem; font-size: .95rem; box-shadow: none; border-radius: var(--radius); }
.nav-links .nav-cta a.btn:hover { background: var(--signal-deep); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius); border: var(--stroke) solid var(--ink);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease-out), background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--sheet); border-top: 1px solid var(--rule);
    padding: 16px var(--gutter) 24px; display: none; overflow-y: auto;
  }
  .nav-open .nav-menu { display: block; }
  .nav-open { overflow: hidden; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li.nav-cta { border: 0; }
  .nav-links a { padding: 1rem .25rem; font-size: 1.35rem; font-weight: 650; color: var(--ink); border-radius: 0; }
  .nav-links a.active { box-shadow: none; color: var(--signal); }
  .nav-cta { margin: 20px 0 0; }
  .nav-links .nav-cta a.btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
}

/* ---------- Diagram grammar (shared by every model) ---------- */
.model { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.model .pool-frame { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke); }
.model .lanes line { stroke: var(--ink); stroke-width: var(--stroke); }
.model .lane-ai { fill: var(--signal-tint); opacity: .55; stroke: none; }
.model .pool-name { font-size: 13px; font-weight: 600; fill: var(--muted); text-anchor: middle; letter-spacing: .01em; }
.model .lane-name { font-size: 14px; font-weight: 650; fill: var(--ink); text-anchor: middle; }
.model .flows path { fill: none; stroke: var(--ink); stroke-width: var(--stroke); marker-end: url(#arrowhead); }
.model .flows .flow-alt { stroke-dasharray: none; stroke: var(--muted); }
.model .cond { font-size: 13px; font-weight: 600; fill: var(--muted); }
.model .token-path { fill: none; stroke: none; }
.model .event { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke); }
.model .event.end { stroke-width: 4px; }
.model .envelope { fill: none; stroke: var(--ink); stroke-width: 1.25px; stroke-linejoin: round; }
.model .task rect { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke); transition: fill .35s var(--ease-out), stroke .35s var(--ease-out); }
.model .task text { font-size: 15px; font-weight: 600; fill: var(--ink); text-anchor: middle; transition: fill .35s var(--ease-out); }
.model .task.ai rect { fill: var(--signal); stroke: var(--signal); }
.model .task.ai text { fill: var(--on-signal); }
.model .gateway path:first-child { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke); transition: fill .35s var(--ease-out); }
.model .gw-mark { fill: none; stroke: var(--ink); stroke-width: 2.25px; stroke-linecap: round; }
.model .node-label { font-size: 14px; font-weight: 500; fill: var(--ink-2); }
.model .node-label.sm { font-size: 13px; }
.model .annotation path { fill: none; stroke: var(--ink); stroke-width: var(--stroke); }
.model .annotation .assoc { stroke-dasharray: 2 4; stroke-linecap: round; }
.model .annotation text { font-size: 14px; font-weight: 500; fill: var(--ink-2); }
.model .token { fill: var(--signal); opacity: 0; }
.model .node.is-on rect,
.model .gateway.is-on path:first-child { fill: var(--ink); stroke: var(--ink); }
.model .node.is-on text { fill: var(--sheet); }
.model .node.is-on .gw-mark { stroke: var(--sheet); }
.model .node.is-on .event { stroke: var(--signal); }
.model .node.is-on .envelope { stroke: var(--signal); }
.js .model .token.is-live { opacity: 1; }

/* Sequence flows draw in once when a model first scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js [data-flow] .flows path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.1s var(--ease-out); }
  .js [data-flow] .flows path:nth-child(n+3) { transition-delay: .12s; }
  .js [data-flow] .flows path:nth-child(n+5) { transition-delay: .24s; }
  .js [data-flow] .flows path:nth-child(n+7) { transition-delay: .36s; }
  .js [data-flow].drawn .flows path { stroke-dashoffset: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vh, 64px) 0 clamp(48px, 7vh, 80px); }
.hero-copy { max-width: 980px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
.hero-lead { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.pool { margin-top: clamp(32px, 5vh, 52px); }
.model-v { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) {
  .model-h { display: none; }
  .model-v { display: block; }
}
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- The page as one process: a flow line in the gutter ---------- */
.process-line { position: relative; }
.process-line > .section > .container { padding-left: calc(var(--gutter) + var(--indent)); }
.process-line::before,
.process-line::after {
  content: ""; position: absolute; top: calc(clamp(64px, 10vw, 128px) + 20px); bottom: 0;
  left: max(calc(var(--gutter) + var(--line-x)), calc((100% - var(--container)) / 2 + var(--gutter) + var(--line-x)));
  width: var(--stroke); background: var(--ink); pointer-events: none;
}
.process-line::after { background: var(--signal); width: 3px; margin-left: -.75px; transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .process-line::after {
      animation: flow-fill linear both;
      animation-timeline: view();
      animation-range: cover 50vh cover calc(100% - 50vh);
    }
  }
}
@keyframes flow-fill { to { transform: scaleY(1); } }
#contact { padding-bottom: clamp(64px, 10vw, 128px); overflow: clip; }

/* events on the flow line mark each section head */
.section-head { position: relative; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.process-line .section-head::before {
  content: ""; position: absolute; z-index: 1;
  left: calc(-1 * var(--indent) + var(--line-x) - 14px); top: .3em;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sheet); border: var(--stroke) solid var(--ink);
}
.process-line .section-head[data-event="mid"]::before { box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4.5px var(--ink); }
.process-line .section-head[data-event="end"]::before { border-width: 4px; }
.process-line .section-head[data-event="end"]::after {
  content: ""; position: absolute; left: calc(-1 * var(--indent) + var(--line-x) - 14px); top: calc(.3em + 28px); width: 28px; bottom: -6000px; background: var(--sheet); z-index: 1;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head a { color: var(--ink); }

.section { padding: clamp(64px, 10vw, 128px) 0 0; }

@media (max-width: 700px) {
  :root { --line-x: 14px; --indent: 44px; }
  .process-line > .section > .container { padding-left: calc(var(--gutter) + var(--indent) - 4px); }
  .process-line .section-head::before { width: 24px; height: 24px; left: calc(-1 * var(--indent) + var(--line-x) - 8px); }
  .process-line .section-head[data-event="end"]::after { left: calc(-1 * var(--indent) + var(--line-x) - 8px); top: calc(.3em + 24px); width: 24px; }
}

/* ---------- Services: collapsed subprocesses ---------- */
.subprocesses { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.subprocess { grid-column: span 5; position: relative; background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius); }
.subprocess.sp-wide { grid-column: span 7; }
.subprocess.sp-ai { background: var(--signal-tint); border-color: var(--signal); }
.subprocess summary { list-style: none; cursor: pointer; display: block; padding: 32px 28px 56px; }
.subprocess summary::-webkit-details-marker { display: none; }
.sp-type { display: inline-grid; place-items: center; width: 36px; height: 36px; color: var(--ink); margin-bottom: 18px; }
.sp-type svg { width: 24px; height: 24px; }
.subprocess.sp-ai .sp-type { color: var(--signal); }
.subprocess h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .6rem; }
.subprocess summary p { color: var(--ink-2); max-width: 54ch; }
.sp-marker {
  position: absolute; left: 50%; bottom: 14px; width: 22px; height: 22px; margin-left: -11px;
  border: var(--stroke) solid var(--ink); border-radius: 3px; background: var(--paper);
  transition: background-color .2s var(--ease-out);
}
.sp-marker::before, .sp-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease-out); }
.sp-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.subprocess[open] .sp-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.subprocess summary:hover .sp-marker { background: var(--sheet-2); }
.subprocess.sp-ai .sp-marker { border-color: var(--signal); }
.subprocess ul { list-style: none; margin: -32px 28px 52px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: .5rem; }
.subprocess.sp-ai ul { border-color: color-mix(in srgb, var(--signal) 35%, transparent); }
.subprocess li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; }
.subprocess li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 9px; border: var(--stroke) solid currentColor; border-radius: 3px; color: var(--muted); }
@media (max-width: 860px) {
  .subprocess, .subprocess.sp-wide { grid-column: 1 / -1; }
  .subprocess summary { padding: 22px 20px 50px; }
  .subprocess ul { margin: -30px 20px 50px; }
}

/* ---------- Use cases: mini flows ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.case { padding: 28px 0 32px; border-top: var(--stroke) solid var(--ink); }
.case h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.case p { color: var(--muted); max-width: 52ch; }
.mini { list-style: none; display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.mini li { position: relative; display: inline-flex; align-items: center; }
.mini li + li { padding-left: 34px; }
.mini li + li::before { content: ""; position: absolute; left: 6px; top: 50%; width: 20px; height: var(--stroke); background: var(--ink); }
.mini li + li::after { content: ""; position: absolute; left: 22px; top: 50%; margin-top: -4px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--ink); }
.mini span { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; }
.mini .m-start span::before, .mini .m-end span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: var(--stroke) solid var(--ink); flex: none; }
.mini .m-end span::before { border-width: 3.5px; }
.mini .m-ai span { padding: 0 12px; border-radius: var(--radius); background: var(--signal); color: var(--on-signal); }
@media (max-width: 760px) {
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mini { flex-direction: column; align-items: flex-start; row-gap: 0; }
  .mini li + li { padding: 26px 0 0 0; }
  .mini li + li::before { left: 7.25px; top: 3px; width: var(--stroke); height: 18px; }
  .mini li + li::after { left: 4px; top: 21px; margin-top: 0; border-width: 6px 4px 0 4px; border-color: var(--ink) transparent transparent transparent; }
}

/* ---------- Showcase: parallel gateway demo ---------- */
.demo-model { margin-bottom: 40px; }
.demo-model figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.model-demo .task text { font-size: 16px; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stages h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.stages p { font-size: .95rem; color: var(--muted); }
.demo-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.demo-foot p { max-width: 60ch; color: var(--ink-2); }
@media (max-width: 1100px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.model-demo-v { display: none; max-width: 420px; }
.model-demo-v .task text { font-size: 15px; }
@media (max-width: 900px) {
  .model-demo { display: none; }
  .model-demo-v { display: block; }
  .stages { grid-template-columns: 1fr; gap: 0; position: relative; }
  .stages li { position: relative; padding: 0 0 22px 40px; }
  .stages li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 18px; border-radius: 5px; border: var(--stroke) solid var(--signal); background: var(--signal-tint); }
  .stages li:not(:last-child)::after { content: ""; position: absolute; left: 12.25px; top: 22px; bottom: 2px; width: var(--stroke); background: var(--ink); }
}

/* ---------- Process: milestones on a timeline ---------- */
.milestones { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; padding-top: 4px; }
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: var(--stroke); background: var(--ink); }
.milestones li { position: relative; }
.ms { position: relative; z-index: 1; display: block; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 50%; background: var(--sheet); border: var(--stroke) solid var(--ink); box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4.5px var(--ink); transition: background-color .25s var(--ease-out); }
.milestones li:hover .ms { background: var(--signal); }
.milestones h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.milestones p { font-size: .975rem; color: var(--muted); }
.milestones li.loop h3::after {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 8px; vertical-align: -1px;
  border: 1.75px solid var(--ink); border-radius: 50%; border-right-color: transparent; transform: rotate(-30deg);
}
@media (max-width: 900px) {
  .milestones { grid-template-columns: 1fr; gap: 0; }
  .milestones::before { left: 15.25px; right: auto; top: 16px; bottom: 40px; width: var(--stroke); height: auto; }
  .milestones li { display: grid; grid-template-columns: 32px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .ms { grid-row: span 2; margin: 0; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-text > p { margin-bottom: 1.1rem; font-size: 1.075rem; max-width: 62ch; }
.about-text .section-head { margin-bottom: 1.75rem; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: 1.75rem 0 2rem; }
.checks.annotations { margin-top: 1.75rem; }
.checks.annotations li { font-weight: 600; color: var(--ink); }
.about-visual { position: relative; padding: var(--stroke); background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.about-visual img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% center;
  clip-path: polygon(0 0, calc(100% - 43.4px) 0, 100% 43.4px, 100% 100%, 0 100%);
  filter: grayscale(1) contrast(1.05); }
.about-visual::after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 44px;
  background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), var(--paper) calc(50% + .5px));
  box-shadow: inset 1.5px -1.5px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .about-visual img { filter: grayscale(1) brightness(.72) contrast(1.05); } }
.annotations { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.annotations li { position: relative; padding: 4px 0 4px 22px; color: var(--ink-2); }
.annotations li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border: var(--stroke) solid var(--ink); border-right: 0; }
.annotations b { color: var(--ink); font-weight: 750; }
.tech { margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; border-top: var(--stroke) solid var(--ink); display: grid; grid-template-columns: .9fr 2fr; gap: 16px 48px; }
.tech h3 { font-size: 1.3rem; }
.tech p { color: var(--muted); grid-column: 1; }
.tech ul { grid-column: 2; grid-row: 1 / span 2; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.tech li { padding: .45rem .9rem; border-radius: var(--radius); border: var(--stroke) solid var(--ink); background: var(--paper); font-weight: 600; font-size: .95rem; color: var(--ink); }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about-side { max-width: 560px; }
  .tech { grid-template-columns: 1fr; }
  .tech ul { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }

/* ---------- FAQ: gateways ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { border-top: var(--stroke) solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 650; font-size: 1.125rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal-deep); }
@media (prefers-color-scheme: dark) { .faq-item summary:hover { color: var(--signal); } }
.gw { position: relative; flex: none; width: 24px; height: 24px; margin-right: 6px; border: var(--stroke) solid var(--ink); transform: rotate(45deg); background: var(--paper); transition: background-color .25s var(--ease-out); }
.gw::before, .gw::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--ink); transform: translate(-50%, -50%) rotate(-45deg); transition: transform .3s var(--ease-out), background-color .25s; }
.gw::after { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item[open] .gw { background: var(--signal); border-color: var(--signal); }
.faq-item[open] .gw::before { transform: translate(-50%, -50%) rotate(0deg); background: var(--on-signal); }
.faq-item[open] .gw::after { transform: translate(-50%, -50%) rotate(90deg); background: var(--on-signal); }
.faq-item .answer { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: relative; top: auto; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info .section-head { margin-bottom: 2rem; }
.contact-list { list-style: none; border-top: var(--stroke) solid var(--ink); }
.contact-list li { border-bottom: 1px solid var(--rule); }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.contact-list a:hover { color: var(--signal-deep); }
.contact-list a:hover svg { color: var(--signal); }
.contact-list small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }

.form-task { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.5rem; }
.form-head .sp-type { margin: 0; width: 28px; height: 28px; }
.form-head h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.form-head p { color: var(--muted); font-size: .975rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: .45rem; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius);
  border: var(--stroke) solid var(--muted); background: var(--sheet); color: var(--ink);
  font-size: 1rem; caret-color: var(--signal); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 28%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); margin: 4px 0 22px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-task .btn { width: 100%; min-height: 54px; }
.form-message { display: none; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .975rem; border: var(--stroke) solid; }
.form-message.success { display: block; background: var(--signal-tint); color: var(--ink); border-color: var(--signal); }
.form-message.error { display: block; background: var(--danger-tint); color: var(--ink); border-color: var(--danger); }
.form-message .btn { margin-top: 14px; background: var(--paper); }
.form-message .btn:hover { background: var(--ink); color: var(--sheet); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--sheet-2); color: var(--ink-2); padding: clamp(56px, 7vw, 80px) 0 32px; font-size: .975rem; border-top: var(--stroke) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { height: 24px; margin-bottom: 18px; }
.site-footer .logo-v { stroke: var(--sheet-2); }
.footer-brand p { max-width: 300px; color: var(--muted); }
.site-footer h2 { color: var(--ink); font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(40px, 7vw, 80px) 0 40px; border-bottom: var(--stroke) solid var(--ink); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.035em; margin-bottom: .6rem; }
.legal-hero p { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 600; margin-bottom: 1.5rem; font-size: .975rem; }
.back-link:hover { color: var(--signal-deep); }
.back-link svg { width: 16px; height: 16px; }
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 104px; }
.legal .company { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 2.25rem; }
.legal .company p { margin: 0; }
.legal h2 { font-size: 1.35rem; margin: 2.75rem 0 1rem; }
.legal p { margin-bottom: .9rem; max-width: 70ch; }
.legal ol, .legal ul { margin: 0 0 1rem 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal .art { display: inline-block; min-width: 2.4rem; font-weight: 700; color: var(--ink); }
.legal a { color: var(--ink); }
.legal strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
