/* Taxline public website, version 2: "The Line".

   Every value comes from tokens.css. No colours, fonts or magic numbers here
   beyond layout fractions; change the brand in tokens.css.

   The idea: Taxline is a line. Each invoice travels it, and at Taxline it forks
   in two: --line-main to the buyer over Peppol, --line-branch to the Oman Tax
   Authority. Every heading is paired with its twin in the other script, as on
   Oman's bilingual signs. Layout uses logical properties, so Arabic runs right
   to left and the line runs with it. */

[dir="ltr"] { --start: left; }
[dir="rtl"] { --start: right; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 var(--fs-md)/var(--lh) var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: var(--lh-head); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--weight-head); letter-spacing: var(--track-head); }
h2 { font-size: var(--fs-h2); font-weight: var(--weight-head); letter-spacing: var(--track-head); }
h3 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-thickness var(--dur-1) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-1); }
time, .num, code { font-family: var(--font-mono); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--space-3); top: -60px; z-index: 10; background: var(--ink); color: var(--surface); padding: var(--space-3) var(--space-4); }
.skip:focus { top: var(--space-3); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: var(--icon); height: var(--icon); stroke-width: var(--icon-stroke); flex: none; vertical-align: middle; }

/* Placeholders the owner must fill: impossible to miss. */
.ph { background: var(--placeholder-bg); color: var(--placeholder-ink); border-bottom: 2px dashed var(--line-branch); padding: 0 .2em; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-3) var(--space-6); min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font: 600 1.3rem/1 var(--font-body); }
.brand .mark { width: 32px; height: 32px; display: block; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.site-nav a { display: block; position: relative; padding: var(--space-3); color: var(--ink-mute); text-decoration: none; font-weight: 500; white-space: nowrap; transition: color var(--dur-1) var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: var(--space-3); bottom: -1px; height: var(--line); background: var(--line-main);
}
.tools { display: flex; align-items: center; gap: var(--space-2); }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: none; color: var(--ink); border: 1.5px solid var(--rule-strong); border-radius: var(--radius-pill);
  transition: border-color var(--dur-1) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.lang { font: 500 1rem/1 var(--font-arabic); color: var(--ink); text-decoration: none; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-pill); padding: 12px var(--space-4); transition: border-color var(--dur-1) var(--ease-out); }
.lang[lang="en"] { font-family: var(--font-latin); }
.lang:hover { border-color: var(--ink); }

@media (max-width: 900px) {
  .site-header .wrap { padding-block: var(--space-3) 0; min-height: 0; }
  .tools { margin-inline-start: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding-inline: calc(var(--gutter) - var(--space-3)); }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); padding: var(--space-3) var(--space-5);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; border-radius: var(--radius-1);
  color: var(--ink); background: transparent; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.textlink { font-weight: 600; color: var(--ink); text-decoration-color: var(--line-main); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.textlink:hover { text-decoration-thickness: 3px; }

/* ---------- Twins: every heading carries the other script ---------- */
.twin, .echo {
  display: block; width: fit-content; max-width: 100%; margin: var(--space-3) 0 0;
  font: 500 var(--fs-twin)/var(--lh-twin) var(--font-twin); color: var(--ink-faint);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) 0; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 19ch; }
[dir="rtl"] .hero h1 { max-width: 20ch; }
.hero .echo { font-size: clamp(1.2rem, .95rem + 1vw, 1.75rem); margin-top: var(--space-4); color: var(--accent-text); }
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; }
.hero-text h1, .hero-text .echo { grid-column: 1 / -1; }
.lede { margin: var(--space-6) 0 0; max-width: 40rem; font-size: var(--fs-lg); color: var(--ink-mute); }
.hero .actions { margin: 0; justify-content: flex-end; }

/* ---------- The route map ----------
   One grid carries the lines, the stops and the labels, so they cannot drift.
   Columns: the four stops. Every stop is centred on x = column start + --stop-r,
   and each label starts at its column start (the stop's start edge).
   Rows: labels above / track 1 / drop / track 2 / labels below. */
.routemap {
  margin: clamp(48px, 6vw, 80px) 0 0; padding-bottom: var(--space-7);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto var(--track-h) var(--branch-drop) var(--track-h) auto;
}
.rm, .rm-labels { display: contents; }
.rm-labels { list-style: none; margin: 0; padding: 0; }

.rm-main {
  grid-row: 2; grid-column: 1 / span 3; align-self: center; height: var(--line); background: var(--line-main);
  margin-inline-start: var(--stop-r); margin-inline-end: calc(var(--stop-r) * -1);
}
.rm-branch {
  grid-row: 2 / 5; grid-column: 2 / span 2;
  margin-top: calc(var(--track-h) / 2);
  margin-bottom: calc(var(--track-h) / 2 - var(--line) / 2);
  margin-inline-start: calc(var(--stop-r) - var(--line) / 2);
  margin-inline-end: calc(var(--stop-r) * -1);
  border-inline-start: var(--line) solid var(--line-branch);
  border-bottom: var(--line) solid var(--line-branch);
  border-end-start-radius: var(--branch-radius);
}
.dot {
  grid-row: 2; align-self: center; justify-self: start; z-index: 1;
  width: var(--stop); height: var(--stop); border-radius: 50%;
  background: var(--stop-fill); border: var(--stop-border) solid var(--line-main);
}
.dot.tax { border-color: var(--line-branch); }
.dot.hub {
  width: var(--hub); height: var(--hub); border-color: var(--hub-ring); border-width: calc(var(--stop-border) + 1px);
  margin-inline-start: calc(var(--stop-r) - var(--hub) / 2);
}
.d1 { grid-column: 1; } .d2 { grid-column: 2; } .d3 { grid-column: 3; } .d4 { grid-column: 4; }
.d5 { grid-row: 4; grid-column: 3; } .d6 { grid-row: 4; grid-column: 4; }

.lab { padding-inline-end: var(--col-pad); }
.l1, .l2, .l3, .l4 { grid-row: 1; align-self: start; padding-bottom: var(--label-gap); }
.l1 { grid-column: 1; } .l2 { grid-column: 2; } .l3 { grid-column: 3; } .l4 { grid-column: 4; }
.l5, .l6 { grid-row: 5; align-self: start; padding-top: var(--label-gap); }
.l5 { grid-column: 3; } .l6 { grid-column: 4; }
.lab time { display: block; font-size: var(--fs-xs); color: var(--ink-faint); }
.lab b { display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.3; margin-top: var(--space-1); }
.lab small { display: block; font-size: var(--fs-sm); color: var(--ink-mute); margin-top: var(--space-2); line-height: 1.5; }
.lab.tax b { color: var(--branch-text); }
.routemap figcaption {
  grid-row: 5; grid-column: 1 / span 2; align-self: start; padding-top: var(--label-gap); padding-inline-end: var(--space-8);
  font-size: var(--fs-sm); color: var(--ink-faint); max-width: 30rem;
}

/* One orchestrated moment: the line draws itself once, then the stops arrive. */
@media (prefers-reduced-motion: no-preference) {
  .rm-main { transform-origin: var(--start); animation: draw-x var(--dur-3) var(--ease) both; }
  .rm-branch { animation: wipe-down var(--dur-3) var(--ease) calc(var(--stagger) * 3) both; }
  .dot, .lab { animation: arrive var(--dur-2) var(--ease-out) both; }
  .d1, .l1 { animation-delay: 0ms; }
  .d2, .l2 { animation-delay: calc(var(--stagger) * 1); }
  .d3, .l3 { animation-delay: calc(var(--stagger) * 2); }
  .d4, .l4 { animation-delay: calc(var(--stagger) * 3); }
  .d5, .l5 { animation-delay: calc(var(--stagger) * 5); }
  .d6, .l6 { animation-delay: calc(var(--stagger) * 6); }
}
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

/* Vertical map on narrow screens: two rails and a label column.
   Rail 1 carries the main line, rail 2 the Tax Authority branch. */
@media (max-width: 900px) {
  .routemap {
    --dot-top: 2px;
    grid-template-columns: var(--rail) var(--rail) minmax(0, 1fr);
    grid-template-rows: repeat(6, auto);
  }
  .rm-main {
    grid-row: 1 / 6; grid-column: 1; justify-self: center; align-self: stretch; width: var(--line); height: auto;
    margin: calc(var(--dot-top) + var(--stop-r)) 0 calc((var(--dot-top) + var(--stop-r)) * -1);
    transform-origin: top; animation-name: draw-y;
  }
  .rm-branch {
    grid-row: 2 / 4; grid-column: 1 / span 2; align-self: stretch;
    margin: calc(var(--dot-top) + var(--stop-r) - var(--line) / 2) 0 calc((var(--dot-top) + var(--stop-r)) * -1);
    margin-inline: calc(var(--rail) / 2) calc(var(--rail) / 2 - var(--line) / 2);
    border: 0; border-top: var(--line) solid var(--line-branch); border-inline-end: var(--line) solid var(--line-branch);
    border-radius: 0; border-start-end-radius: calc(var(--rail) / 2);
  }
  .dot, .dot.hub { align-self: start; justify-self: center; margin: var(--dot-top) 0 0; }
  .dot.hub { margin-top: calc(var(--dot-top) + var(--stop-r) - var(--hub) / 2); }
  .d1 { grid-area: 1 / 1; } .d2 { grid-area: 2 / 1; } .d5 { grid-area: 3 / 2; }
  .d6 { grid-area: 4 / 2; } .d3 { grid-area: 5 / 1; } .d4 { grid-area: 6 / 1; }
  .lab, .l5, .l6 { grid-column: 3; align-self: start; padding: 0 0 var(--space-5); padding-inline-start: var(--space-3); }
  .l1 { grid-row: 1; } .l2 { grid-row: 2; } .l5 { grid-row: 3; } .l6 { grid-row: 4; } .l3 { grid-row: 5; } .l4 { grid-row: 6; }
  .lab time { line-height: calc(var(--stop) + var(--dot-top) * 2); }
  .routemap figcaption { grid-row: 7; grid-column: 1 / -1; padding: var(--space-4) 0 0; border-top: 1px solid var(--rule); max-width: none; }
}

/* ---------- Sections ---------- */
.block { padding-block: var(--section-pad); }
.block.alt { background: var(--surface-band); }
.sec-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .twin + p, .sec-head h2 + p { margin-top: var(--space-5); color: var(--ink-mute); font-size: var(--fs-lg); }
.sec-head p:last-child { margin-bottom: 0; }
.aside { margin-top: var(--space-5); color: var(--ink-mute); max-width: 44rem; }

/* Editorial sections: heading column at the start edge, content offset. */
.side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 112px); align-items: start; }
.side > .sec-head { position: sticky; top: var(--space-6); margin-bottom: 0; }
.side > :not(.sec-head) { grid-column: 2; }

/* PDF then, e-invoice now: a dashed line and a solid one. */
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.compare > div { padding-inline-start: var(--space-5); }
.compare .was { border-inline-start: 3px dashed var(--rule-strong); color: var(--ink-mute); }
.compare .now { border-inline-start: var(--line) solid var(--line-main); }
.compare h3 { margin-bottom: var(--space-3); }
.compare .was h3 { color: var(--ink-mute); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding-block: var(--space-3); border-top: 1px solid var(--rule); }
.compare li:first-child { border-top: 0; padding-top: 0; }

/* The two legal clocks. Clocks run clockwise in both languages. */
.dials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) clamp(24px, 5vw, 96px); }
.dial { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--space-5); align-items: start; }
.dial svg { grid-row: span 2; width: 128px; height: 128px; transform: rotate(-90deg); }
.dial .face { fill: none; stroke: var(--line-quiet); stroke-width: 10; }
.dial .arc { fill: none; stroke: var(--line-branch); stroke-width: 10; stroke-dasharray: var(--m) 60; }
.dial .ticks line { stroke: var(--ink-faint); stroke-width: 2; }
.dial-n { margin: 0 0 var(--space-3); font: 600 var(--fs-lg)/1 var(--font-head); color: var(--ink-mute); }
.dial-n .num { display: block; font: 600 var(--fs-numeral)/.85 var(--font-display); letter-spacing: -.03em; color: var(--ink); margin-bottom: var(--space-2); }
.dial p:last-child { color: var(--ink-mute); margin: 0; }
.dial-note { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-faint); margin: var(--space-2) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--rule); max-width: 52rem; }

/* Three ways in: three rows of a ledger, not three cards. */
.ways { border-top: 1px solid var(--rule); }
.way {
  display: grid; grid-template-columns: var(--icon) minmax(0, 4fr) minmax(0, 6fr); column-gap: var(--space-5);
  grid-template-rows: auto 1fr; padding-block: var(--space-5); border-bottom: 1px solid var(--rule); align-items: start;
}
.way .icon { color: var(--accent-text); margin-top: 2px; }
.way h3 { grid-column: 2; }
.way .for { grid-column: 2; color: var(--branch-text); font-weight: 500; font-size: var(--fs-sm); margin: var(--space-1) 0 0; }
.way p:last-child { grid-column: 3; grid-row: 1 / span 2; color: var(--ink-mute); margin: 0; }

/* Systems: logos in one monochrome ink, each with its product name. */
.logos { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.logos li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; padding-inline-end: var(--space-3); border-bottom: 1px solid var(--rule); font-weight: 500; color: var(--ink); min-width: 0; }
.logos .icon { color: var(--logo-ink); }
.logo { flex: none; width: var(--icon); height: var(--icon); background: var(--logo-ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.logo-odoo { -webkit-mask-image: url("logos/odoo.svg"); mask-image: url("logos/odoo.svg"); }
.logo-sap { -webkit-mask-image: url("logos/sap.svg"); mask-image: url("logos/sap.svg"); }
.logo-quickbooks { -webkit-mask-image: url("logos/quickbooks.svg"); mask-image: url("logos/quickbooks.svg"); }
.logo-zoho { -webkit-mask-image: url("logos/zoho.svg"); mask-image: url("logos/zoho.svg"); }
/* wide wordmark-style marks need more width to read at the same optical size */
.logo-odoo, .logo-zoho { width: calc(var(--icon) * 1.75); height: calc(var(--icon) * 1.75); margin-block: calc(var(--icon) * -.375); }
.logo-none { background: none; border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-1); }
.tm { margin: var(--space-3) 0 0; font-size: var(--fs-xs); color: var(--ink-faint); max-width: 44rem; }

/* What you get: a plain list in the content column. */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); margin: 0; }
.ledger > div { padding-block: var(--space-5); border-top: 1px solid var(--rule); }
.ledger dt { font-weight: 600; font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.ledger dd { margin: 0; color: var(--ink-mute); }

/* Getting started: a real sequence, so the stops are numbered. */
.steps { --step: 46px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { position: relative; padding-top: calc(var(--step) + var(--space-5)); padding-inline-end: var(--space-5); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; inset-inline-start: 0; z-index: 1;
  width: var(--step); height: var(--step); border-radius: 50%; background: var(--stop-fill); border: var(--stop-border) solid var(--line-main);
  display: grid; place-items: center; font: 600 1rem/1 var(--font-mono); color: var(--ink);
}
.steps li::after { content: ""; position: absolute; top: calc(var(--step) / 2 - var(--line) / 2); inset-inline: calc(var(--step) / 2) calc(var(--step) / -2); height: var(--line); background: var(--line-main); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(3)::before { border-color: var(--line-branch); }   /* the step on the Tax Authority's portal */
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--ink-mute); margin: 0; font-size: var(--fs-sm); }

/* FAQ: native disclosure, no script. */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding-block: var(--space-5); font-weight: 600; font-size: var(--fs-lg); transition: color var(--dur-1) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent-text); }
.faq summary .icon { transition: transform var(--dur-2) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { margin: 0 0 var(--space-5); padding-inline-start: var(--space-5); border-inline-start: var(--line) solid var(--line-main); color: var(--ink-mute); max-width: 44rem; }

/* Call to action: the line reaches its last stop. */
.band { background: var(--band-bg); color: var(--band-ink); position: relative; padding-block: clamp(56px, 7vw, 96px); }
.band::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: var(--line); background: var(--band-rule); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.band h2 { color: var(--band-ink); max-width: 18ch; }
.band p { margin: var(--space-4) 0 0; color: var(--band-mute); max-width: 38rem; font-size: var(--fs-lg); }
.band .btn { background: var(--band-ink); color: var(--band-bg); border-color: var(--band-ink); }
.band .btn:hover { background: transparent; color: var(--band-ink); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--fs-page); max-width: 22ch; }
.page-head p { margin: var(--space-5) 0 0; max-width: 44rem; font-size: var(--fs-lg); color: var(--ink-mute); }
.page-head .wrap::after {
  /* a line segment ending in a stop: "you are here" */
  content: ""; display: block; margin-top: var(--space-6); width: 168px; height: var(--stop);
  background:
    radial-gradient(circle closest-side, var(--stop-fill) calc(100% - var(--stop-border) - 1px), var(--line-main) calc(100% - var(--stop-border)) 98%, transparent 100%) right center / var(--stop) var(--stop) no-repeat,
    linear-gradient(var(--line-main), var(--line-main)) center / 100% var(--line) no-repeat;
}
[dir="rtl"] .page-head .wrap::after { background-position: left center, center; }

.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: var(--space-5); font-size: var(--fs-sm); --toc-stop: 14px; }
.toc-title { display: block; font-weight: 600; color: var(--ink); margin-bottom: var(--space-3); }
.toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc ol::before { content: ""; position: absolute; top: var(--space-4); bottom: var(--space-4); inset-inline-start: calc(var(--toc-stop) / 2 - 2px); width: 4px; background: var(--line-quiet); }
.toc a { display: block; position: relative; padding: 6px 0; padding-inline-start: calc(var(--toc-stop) + var(--space-3)); color: var(--ink-mute); text-decoration: none; transition: color var(--dur-1) var(--ease-out); }
.toc a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; margin-top: calc(var(--toc-stop) / -2); width: var(--toc-stop); height: var(--toc-stop); border-radius: 50%; background: var(--stop-fill); border: 3px solid var(--line-main); transition: background-color var(--dur-1) var(--ease-out); }
.toc a:hover { color: var(--ink); }
.toc a:hover::before { background: var(--line-main); }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: var(--space-8) 0 var(--space-4); scroll-margin-top: var(--space-5); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--space-6) 0 var(--space-2); }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent-text); font-weight: 600; }
.meta { font-size: var(--fs-sm); color: var(--ink-faint); }
.note { padding: var(--space-4) var(--space-5); background: var(--surface-band); border-inline-start: var(--line) solid var(--line-branch); }
.table-wrap { overflow-x: auto; margin: var(--space-2) 0 var(--space-3); border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: start; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--surface-band); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.columns > div { border-top: var(--line) solid var(--line-main); padding-top: var(--space-5); }
.columns h3 { margin-bottom: var(--space-3); }
.columns p { color: var(--ink-mute); }

.details { margin: 0; max-width: 46rem; }
.details > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-1) var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--rule); }
.details dt { color: var(--ink-mute); font-size: var(--fs-sm); padding-top: 2px; }
.details dd { margin: 0; font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact { background: var(--surface-raised); border-top: var(--line) solid var(--line-main); padding: clamp(20px, 3vw, 36px); display: grid; gap: var(--space-5); }
.contact h2 { font-size: 1.6rem; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.opt { font-weight: 400; color: var(--ink-faint); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-1); padding: 11px var(--space-3); min-height: 48px;
  transition: border-color var(--dur-1) var(--ease-out);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.form-note, .hint { font-size: var(--fs-sm); color: var(--ink-mute); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-sunken); border-top: var(--line) solid var(--line-main); padding-block: var(--space-8) var(--space-6); font-size: var(--fs-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-7) clamp(32px, 5vw, 80px); }
.site-footer .about { color: var(--ink-mute); max-width: 30rem; margin: var(--space-4) 0 var(--space-5); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px var(--space-5); }
.foot-links a { color: var(--ink); font-weight: 500; }
.identity { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); }
.identity > div { padding-block: var(--space-3); border-top: 1px solid var(--rule); }
.identity .wide { grid-column: 1 / -1; }
.identity dt { color: var(--ink-faint); font-size: var(--fs-xs); }
.identity dd { margin: 2px 0 0; font-weight: 500; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule); color: var(--ink-mute); }
.legal-line > span:last-child { display: flex; gap: var(--space-4); }
.legal-line a { color: var(--ink-mute); }

/* ---------- Language choice (site root) ---------- */
/* One line, two ends: each language's reading start is a stop on it. */
.chooser .site-header .wrap { justify-content: space-between; }
.chooser main { min-height: calc(100vh - 200px); display: grid; align-items: center; }
.choices { --cp: clamp(20px, 4vw, 56px); position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); padding-block: 110px var(--space-8); }
.choices::before { content: ""; position: absolute; top: var(--space-7); inset-inline: var(--cp); height: var(--line); background: var(--line-main); }
.hubmark { position: absolute; top: calc(var(--space-7) + var(--line) / 2 - 28px); left: calc(50% - 28px); width: 56px; height: 56px; z-index: 2; }
.choice { position: relative; display: grid; gap: var(--space-4); align-content: start; padding-inline: var(--cp); text-decoration: none; color: var(--ink); }
.choice::before { content: ""; position: absolute; top: calc(var(--space-7) + var(--line) / 2 - var(--stop-r) - 110px); inset-inline-start: calc(var(--cp) - var(--stop-r)); width: var(--stop); height: var(--stop); border-radius: 50%; background: var(--stop-fill); border: var(--stop-border) solid var(--line-main); }
.choice b { font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.6rem)/1.1 var(--font-display); }
.choice[lang="ar"] b { font-family: var(--font-arabic); line-height: 1.45; font-weight: 700; }
.choice[lang="ar"] { font-family: var(--font-arabic); line-height: 1.8; }
.choice span { color: var(--ink-mute); }
.choice .go { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.choice:hover .go { text-decoration-thickness: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-text { grid-template-columns: minmax(0, 1fr); }
  .hero .actions { justify-content: flex-start; margin-top: var(--space-6); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 0 0 var(--space-6); padding-inline-start: calc(var(--step) + var(--space-5)); min-height: calc(var(--step) + var(--space-6)); }
  .steps li::after { top: calc(var(--step) / 2); bottom: calc(var(--step) / -2); height: auto; inset-inline: calc(var(--step) / 2 - var(--line) / 2) auto; width: var(--line); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .side > .sec-head { position: static; margin-bottom: clamp(32px, 4vw, 56px); }
  .side > :not(.sec-head) { grid-column: 1; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dials, .ledger, .columns, .split, .contact-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .way { grid-template-columns: var(--icon) minmax(0, 1fr); }
  .way p:last-child { grid-column: 2; grid-row: auto; margin-top: var(--space-3); }
  .toc { position: static; }
  .details > div { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: minmax(0, 1fr); padding-block: 96px var(--space-6); gap: var(--space-8); }
  .choice::before { display: none; }
}
@media (max-width: 560px) {
  .fields-2, .identity { grid-template-columns: minmax(0, 1fr); }
  .dial svg { width: 96px; height: 96px; }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .btn { flex: 1 1 auto; }
}

@media print {
  .site-nav, .tools, .band, .toc { display: none; }
  .dot, .lab, .rm-main, .rm-branch { animation: none; }
}

/* =====================================================================
   Round 3: widgets, illustrations, photos. Tokens only.
   Motion is transform and opacity only, timed by the motion tokens.
   ===================================================================== */
[dir="ltr"] { --dir: 1; }
[dir="rtl"] { --dir: -1; }

/* ---------- Illustrations (64 px, same stroke style as icons) ---------- */
.illo { width: var(--illo); height: var(--illo); stroke-width: var(--illo-stroke); color: var(--ink); --illo-accent: var(--line-main); flex: none; }
.ledger dt { display: grid; gap: var(--space-4); }
.ledger dt .illo { color: var(--ink-mute); }
.page-illo { display: block; margin-bottom: var(--space-5); color: var(--ink-mute); --illo-accent: var(--line-branch); }

/* ---------- Photos: tinted from the brand tokens ---------- */
.photo { position: relative; margin: 0; background: var(--photo-tint); overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.08); mix-blend-mode: var(--photo-blend); opacity: var(--photo-opacity); }
.photo .credit {
  position: absolute; z-index: 2; top: var(--space-3); inset-inline-end: var(--space-3);
  padding: 2px var(--space-2); font-size: var(--fs-xs); color: var(--band-ink); background: var(--photo-shade);
}
.photo-band { position: relative; }
.band-photo img { height: clamp(340px, 52vw, 620px); object-fit: cover; object-position: center 60%; }
.band-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 4%, transparent 62%); }
.band-text { position: relative; z-index: 1; margin-top: calc(clamp(110px, 13vw, 190px) * -1); padding-bottom: var(--section-pad); }
.band-text h2 { max-width: 20ch; }
.band-text > p:last-child { margin-top: var(--space-5); max-width: 40rem; color: var(--ink-mute); font-size: var(--fs-lg); }
.page-photo { margin-top: var(--space-7); }
.wide-photo img { aspect-ratio: 16 / 7; object-fit: cover; }
.side-photo { margin-top: var(--space-6); }

/* ---------- Clocks + invoice widget ---------- */
.clock-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-7) clamp(32px, 6vw, 96px); align-items: start; }
.clock-grid .dials { grid-template-columns: minmax(0, 1fr); }

.inv-widget { margin: 0; }
.inv-panel {
  background: var(--panel); color: var(--panel-ink); border-top: var(--line) solid var(--line-main);
  border-radius: var(--radius-1); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--space-5);
}
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.inv-live { font-size: var(--fs-xs); color: var(--line-branch); border: 1.5px dashed var(--line-branch); padding: 2px var(--space-2); border-radius: var(--radius-1); }
.inv-replay { font: 600 var(--fs-sm)/1 var(--font-body); color: var(--panel-ink); background: none; border: 1.5px solid currentColor; border-radius: var(--radius-pill); padding: var(--space-2) var(--space-3); cursor: pointer; opacity: .85; }
.inv-replay:hover { opacity: 1; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); }
.inv-kind { font-weight: 600; opacity: .7; }
.inv-no { font: 500 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1 var(--font-mono); }
.inv-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.inv-meta dt { font-size: var(--fs-xs); opacity: .65; }
.inv-meta dd { margin: var(--space-1) 0 0; font-weight: 600; }
.inv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.inv-steps li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center;
  padding-block: var(--space-3); border-top: 1px solid var(--rule); transition: opacity var(--dur-2) var(--ease-out);
}
.inv-steps time { font-size: var(--fs-xs); opacity: .7; }
.chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-quiet); fill: none; stroke: transparent; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-steps li.done .chk { background: var(--line-main); border-color: var(--line-main); stroke: var(--panel); }
.inv-steps li.tax.done .chk { background: var(--line-branch); border-color: var(--line-branch); }
.inv-widget.is-live .inv-steps li:not(.done) { opacity: .38; }
.inv-widget.is-live .inv-steps li:not(.done) time { opacity: 0; }
.inv-steps li.now span { font-weight: 600; }
.inv-clock { display: flex; align-items: center; gap: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.inv-clock svg { width: 88px; height: 88px; flex: none; }
.inv-clock .face { fill: none; stroke: var(--line-quiet); stroke-width: 8; }
.inv-clock .used { fill: none; stroke: var(--line-branch); stroke-width: 8; stroke-dasharray: 900 0; opacity: .25; }
.inv-clock .hand { transform-box: view-box; transform-origin: 60px 60px; transition: transform var(--dur-2) var(--ease); }
.inv-clock .hand line { stroke: var(--line-branch); stroke-width: 4; stroke-linecap: round; }
.inv-clock .pin { fill: var(--line-branch); }
.inv-clock p { margin: 0; }
.inv-left .num { font-size: 1.5rem; font-weight: 500; }
.inv-left, .inv-done { opacity: .9; }
.inv-done .num { font-weight: 600; color: var(--line-branch); }
.inv-left { display: none; }
.inv-widget.is-live:not(.is-done) .inv-left { display: block; }
.inv-widget.is-live:not(.is-done) .inv-done { display: none; }
.inv-widget figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink-faint); }

/* ---------- Integration hub ----------
   Three source groups (the three ways in) feed one bracket. Everything on
   the right shares one "spine" box that runs from the first group's line to
   the last group's line: the bracket, the link, the Taxline junction, the
   outbound line, the branch and the end stops are all centred on it, so the
   junction sits at the exact middle and the branch drops from its centre. */
.hub-map { margin: 0 0 var(--space-7); }
.hub-grid {
  --spine-mt: var(--hub-y);
  --spine-mb: calc((var(--hub-y) + var(--hub-gap)) * -1);
  display: grid; row-gap: var(--hub-gap);
  grid-template-columns: minmax(0, 1fr) var(--hub-feed) var(--hub-link) var(--hub-core) var(--hub-out) fit-content(11rem);
  grid-template-rows: auto auto auto;
}
.hub-group { grid-column: 1; min-width: 0; }
.g1 { grid-row: 1; } .g2 { grid-row: 2; } .g3 { grid-row: 3; }
.group-name {
  display: flex; align-items: center; gap: var(--space-3); height: var(--hub-head); margin: 0 0 var(--space-2);
  font: 600 var(--fs-sm)/1.2 var(--font-body); color: var(--ink-mute);
}
.group-stop { flex: 1; height: var(--line-thin); background: var(--line-quiet); position: relative; min-width: var(--space-5); }
.group-stop::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: calc(var(--hub-node) / -2);
  width: var(--hub-node); height: var(--hub-node); margin-top: calc(var(--hub-node) / -2);
  border-radius: 50%; background: var(--stop-fill); border: var(--line-thin) solid var(--rule-strong);
}
.hub-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-2); padding-inline-end: var(--space-5); }
.hub-tile {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--hub-tile-h); padding: var(--space-2) var(--space-3);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-1); color: var(--logo-ink); cursor: default;
}
.hub-tile .logo { width: var(--hub-logo); height: var(--hub-logo); }
.hub-tile .logo.wide { width: calc(var(--hub-logo) * 2); }
.hub-tile .logo-sap { width: calc(var(--hub-logo) * 1.4); }
.hub-tile .icon { width: var(--icon); height: var(--icon); margin-inline: calc((var(--hub-logo) - var(--icon)) / 2); }
.tile-name { display: grid; color: var(--ink); font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; min-width: 0; }
.tile-name small { color: var(--ink-faint); font-weight: 400; font-size: var(--fs-xs); }
.hub-tile.on { border-color: var(--line-main); color: var(--line-main); }

/* the spine: shared grid area and margins */
.hub-bracket, .lit-1, .lit-3, .hub-link, .hub-core, .hub-out, .hub-branch, .hub-end {
  grid-row: 1 / 3; margin-top: var(--spine-mt); margin-bottom: var(--spine-mb);
}
.hub-bracket, .lit-1, .lit-3 {
  grid-column: 2; border: var(--line-thin) solid var(--line-quiet); border-inline-start: 0;
  border-start-end-radius: var(--branch-radius); border-end-end-radius: var(--branch-radius);
}
.lit-1, .lit-3 { border-color: var(--line-main); opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.lit-1 { clip-path: inset(0 0 50% 0); }
.lit-3 { clip-path: inset(50% 0 0 0); }
.hub-feed2 { grid-column: 2; grid-row: 2; align-self: start; margin-top: calc(var(--hub-y) - var(--line-thin) / 2); height: var(--line-thin); background: var(--line-quiet); position: relative; }
.lit-2 { position: absolute; inset: 0; background: var(--line-main); opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.hub-lit.on { opacity: 1; }
.hub-link { grid-column: 3; align-self: center; height: var(--line); background: var(--line-main); position: relative; }
.hub-core {
  grid-column: 4; align-self: center; z-index: 2; height: var(--hub-core-h);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--surface); border: var(--stop-border) solid var(--hub-ring); border-radius: var(--radius-pill); font-weight: 600;
}
.hub-out {
  grid-column: 4 / 6; align-self: center; height: var(--line); background: var(--line-main); position: relative;
  margin-inline-start: calc(var(--hub-core) / 2); margin-inline-end: calc(var(--stop-r) * -1);
}
.hub-branch {
  --h: calc(var(--hub-drop) + var(--line) / 2);
  grid-column: 4 / 6; align-self: center; position: relative; height: var(--h);
  margin-top: calc(var(--spine-mt) + var(--h));     /* puts the box's top edge on the spine centre */
  margin-inline-start: calc(var(--hub-core) / 2 - var(--line) / 2); margin-inline-end: calc(var(--stop-r) * -1);
  border-inline-start: var(--line) solid var(--line-branch); border-bottom: var(--line) solid var(--line-branch);
  border-end-start-radius: var(--branch-radius);
}
.hub-end { grid-column: 6; align-self: center; display: flex; align-items: center; gap: var(--space-3); font-weight: 600; z-index: 1; line-height: 1.3; }
.end-ota { margin-top: calc(var(--spine-mt) + var(--hub-drop) * 2); color: var(--branch-text); }
.end-dot { width: var(--stop); height: var(--stop); border-radius: 50%; background: var(--stop-fill); border: var(--stop-border) solid var(--line-main); flex: none; }
.end-ota .end-dot { border-color: var(--line-branch); }
.hub-map figcaption { margin-top: var(--space-5); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-faint); max-width: 48rem; }

/* the pulse: invisible at rest; travels only along straight segments */
.pulse { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.pulse::before {
  content: ""; position: absolute; top: 50%; inset-inline-start: 0;
  width: var(--pulse); height: var(--pulse); margin-top: calc(var(--pulse) / -2); margin-inline-start: calc(var(--pulse) / -2);
  border-radius: 50%; background: var(--ink);
}
.hub-branch .pulse { inset: auto 0 calc(var(--line) * -1) 0; inset-inline-start: var(--branch-radius); height: var(--line); }
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(calc(100% * var(--dir))); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hub-grid.flow .hub-link .pulse { animation: travel var(--dur-pulse) var(--ease) both; }
  .hub-grid.flow .hub-out .pulse,
  .hub-grid.flow .hub-branch .pulse { animation: travel var(--dur-pulse) var(--ease) var(--dur-pulse) both; }
}

/* ---------- Onboarding: slips that straighten as the line reaches them ---------- */
.slip { padding: var(--space-4); background: var(--surface-raised); border-top: 3px solid var(--line-main); }
.steps.is-live { position: relative; }
.steps.is-live li { cursor: default; outline-offset: 6px; }
.steps.is-live li::after { background: var(--line-quiet); }
.steps.is-live li.done::after { background: var(--line-main); }
.steps.is-live li:not(.done):not([aria-current])::before { border-color: var(--line-quiet); color: var(--ink-faint); }
.steps.is-live li[aria-current]::before { background: var(--line-main); border-color: var(--line-main); color: var(--accent-ink); }
.steps.is-live li:nth-child(3)[aria-current]::before { background: var(--line-branch); border-color: var(--line-branch); }
.steps.is-live .slip {
  transform: rotate(var(--tilt)); transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease-out);
  border-top-color: var(--line-quiet); opacity: .72;
}
.steps.is-live li:nth-child(even) .slip { transform: rotate(calc(var(--tilt) * -1)); }
.steps.is-live li.done .slip { opacity: .9; border-top-color: var(--line-main); }
.steps.is-live li[aria-current] .slip { transform: translateY(var(--lift)); opacity: 1; border-top-color: var(--line-main); }
.steps.is-live li:nth-child(3)[aria-current] .slip { border-top-color: var(--line-branch); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .clock-grid { grid-template-columns: minmax(0, 1fr); }
  .clock-grid .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* hub becomes: the three groups stacked, a line down into the junction, two ends */
  .hub-grid { display: block; }
  .hub-group + .hub-group { margin-top: var(--space-5); }
  .group-stop { display: none; }
  .hub-tiles { padding: 0; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
  .hub-bracket, .hub-lit, .hub-feed2, .hub-link, .hub-out, .hub-branch { display: none; }
  .hub-core { margin: var(--space-7) auto 0; width: var(--hub-core); position: relative; }
  .hub-core::before { content: ""; position: absolute; bottom: 100%; left: calc(50% - var(--line) / 2); width: var(--line); height: var(--space-7); background: var(--line-main); }
  .hub-end { justify-content: center; margin: var(--space-4) 0 0; }
  .end-ota { margin-top: var(--space-3); }
}
@media (max-width: 560px) {
  .clock-grid .dials { grid-template-columns: minmax(0, 1fr); }
  .inv-meta { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .steps.is-live .slip, .steps.is-live li:nth-child(even) .slip { transform: none; }
}

.hub-map + .tm { margin-bottom: var(--space-7); }

/* Section header split across the width: heading and twin at the start, intro at the end. */
.sec-head.split-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-8); align-items: end; }
.sec-head.split-head > p { margin: 0; }
@media (max-width: 860px) { .sec-head.split-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Brand: approved PNG lockups drawn through a mask ----------
   The mark keeps its geometry (contain, never stretched, never mirrored) and
   is filled with --brand-mark, which tokens.css allows to be Obsidian or White
   only. Where masks are unsupported the plain <img> shows (Obsidian artwork). */
.logo-mask { display: block; aspect-ratio: var(--logo-ratio); }
.logo-mask img { display: block; width: 100%; height: 100%; object-fit: contain; }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .logo-mask {
    background: var(--brand-mark);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;   /* the image itself is set inline by build.py */
  }
  .logo-mask img { opacity: 0; }
}
.brand { padding: var(--logo-clear); margin: calc(var(--logo-clear) * -1); }
.brand .logo-mask { height: var(--logo-h); }
.site-footer .brand .logo-mask { height: calc(var(--logo-h) * .9); }
.hub-core .hub-logo { height: calc(var(--hub-core-h) * .38); }
.choice .stacked { width: clamp(150px, 16vw, 210px); margin: 0 0 var(--space-3); }
.chooser .site-header .wrap { justify-content: flex-end; }
/* language page: centred columns under the stacked lockups; the line joins the two centres */
.chooser .choice { justify-items: center; text-align: center; }
.chooser .choices::before { inset-inline: calc((100% - var(--space-7)) / 4); }
.chooser .choice::before { inset-inline-start: calc(50% - var(--stop-r)); }
