/* Hallmark · shape: buyer's path (swapped from draw 68db03 Narrative Workflow) · genre: modern-minimal · theme: brand · redesign: full · draw: 68db03
 * paper: oklch(93% 0.007 107) · accent: oklch(75.1% 0.153 104) brass · display: IBM Plex Sans 600 · body: IBM Plex Sans 400 · arabic: IBM Plex Sans Arabic · restyle: tasteskill specimen-catalogue, seed 1853199135, palette newsprint-and-brass · hero: Poster · nav: search-led bar · footer: mast · signature: the exploded breaker, scrubbed by scroll
 * axes: light/slab-serif/brass · posture: restrained, near-black bands as declared surfaces · contrast: pass · fold: pass · tokens: ../theme.css · v2.0.0 */
/* Hallmark · hero-review: not run separately (hero built with the page) · finish-review: subagent · fix · 8 findings · 6 resolved, 1 answered (8: Poster sits low by its posture), 1 left to the owner (6: generic heads are the owner's copy, a redesign keeps words) · gap: none */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, a supplier page argues little; the made-or-traded statement and the breaker taken apart carry the claim instead of adjectives */
/* Hallmark · waive 59 · /products parts its head, sticky count bar and tile grid with rules and the bar itself · the catalogue is a working tool page, so its products sit close under the filters instead of a section gap */
/* Hallmark · waive 78 · the only h2s on /products are the product names on its tiles, set at --text-title · a catalogue names its items at item size; the page head is the h1 PRODUCTS */
/* Hallmark · waive 23 · brass paints the hero's second line and the actions, about 8% at 1280 · the owner asked for a two-tone hero headline, white then brass */
/* Hallmark · waive 80 · the drawn shape is the live wire, one path with terminals, no object or scene · the owner chose the wire as the site's signature, a circuit run from the hero to the enquiry */
/* Hallmark · answered F4 · the light pill on dark (hero, footer) is the quiet action on night fields; the one filled primary stays brass */
/* Hallmark · dismissed 77 · /products is the catalogue tool, a head, a sticky bar and the grid; the home page carries the sections */
/* Hallmark · dismissed 41 · accent-ink is the darker copper fill under --color-on-accent at 5.3:1; no text sits on --color-accent */
/* Hallmark · dismissed 28a · the lazy images in Layout.tsx are the Products panel's, hidden until opened; the hero poster carries fetchpriority high */

/* Al-Shaam shared styles: base, buttons, the logo, the language switch, forms, the footer mast, inner pages.
   Tokens in theme.css; no literal colours or faces past them. No inline styles (CSP style-src 'self'); logical
   properties so Arabic and Kurdish mirror. One hover signal per control: a colour step. */

/* Fonts: IBM Plex Sans for English, IBM Plex Sans Arabic for Arabic and Kurdish. One superfamily drawn for engineering
   and technical writing, so the three languages read as one voice; open shapes that stay clear at small sizes. Plex
   Arabic was checked in Chrome for every Kurdish Sorani letter (ڕ ڵ ۆ ێ ە ڤ). Self-hosted, SIL OFL (/fonts/licenses). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* Base (the Floor's decisions) */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: calc(var(--head-h) + var(--space-lg)); accent-color: var(--color-accent-ink); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 400; line-height: 1.5; font-synthesis: none; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
:lang(ar) body, :lang(ckb) body, body:lang(ar), body:lang(ckb) { line-height: 1.75; }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }

/* Heads: IBM Plex Sans 600 in sentence case, tight; Arabic and Kurdish take Plex Arabic with their own air */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: var(--lh-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); }
h2 { max-width: 24ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.1; }
:lang(ar) :is(h1, h2, h3), :lang(ckb) :is(h1, h2, h3) { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; }
p { text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
.muted { color: var(--color-muted); }
/* A lead under a heading is running text: full ink, as large as the lead step (grey stays for true notes) */
.lead.muted { color: var(--color-ink); }
.small { font-size: var(--text-md); }
.container, .wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { opacity: 0; pointer-events: none; }
.skip-link { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip-link:focus-visible { top: var(--space-md); }
/* A paragraph's key phrases at full contrast, the rest a step back */
.hi { color: var(--color-muted); }
.hi strong { color: var(--color-ink); font-weight: 600; }
/* A fact the company has not given yet: a blank to fill, never a value */
.fill { padding: 0 var(--space-xs); border-radius: var(--space-2xs); background: var(--color-paper-3); color: var(--color-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Pictures: continuous corners, no outline; the tile is the photographs' own stone, so the edge disappears */
.media { border-radius: var(--radius-media); corner-shape: squircle; overflow: hidden; background: var(--color-stage); }

/* Buttons: one filled primary (copper), a quiet outline, all eight states */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent-ink); border-radius: var(--radius-pill); background: var(--color-accent-ink); color: var(--color-on-accent); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); } /* taste-skill-ignore: border is the fill colour, keeps hover and focus sizes equal */
.btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-quiet { background: var(--color-paper-2); border-color: var(--color-paper-2); color: var(--color-ink); }
.btn-quiet:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
.text-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-accent); transition: color var(--dur-short) var(--ease-out); }
.text-link:hover { color: var(--color-accent-text); }
.text-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* The logo: the breaker mark and the name in both scripts */
.logo { display: inline-flex; align-items: center; gap: var(--space-xs); color: inherit; text-decoration: none; }
.logo:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: 4px; }
.logo-mark { flex: none; width: 22px; height: 28px; }
.lm-body { fill: var(--color-on-night); }
.lm-slot { fill: var(--color-night); }
.lm-lever { fill: var(--color-accent); }
.logo-word { display: grid; gap: var(--space-3xs); line-height: 1; }
.logo-en { font: 600 var(--text-lg)/0.9 var(--font-display); letter-spacing: 0.06em; }
.logo-ar { font: 600 var(--text-sm)/1 var(--font-arabic); color: var(--color-on-night-muted); }

/* Language switch: works without script (a details element) */
.langsw { position: relative; }
.langsw summary { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); cursor: pointer; list-style: none; font-weight: 600; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out); }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: 2px; }
.knob { display: none; }
.langsw-list { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); min-width: 200px; padding: var(--space-2xs); background: var(--color-paper); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); } /* taste-skill-ignore: dropdown overlay */
.langsw:not([open]) .langsw-list { display: none; }
.langsw-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--space-2xs); text-decoration: none; font-weight: 600; transition: background-color var(--dur-short) var(--ease-out); }
.langsw-list a small { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.langsw-list a:hover { background: var(--color-paper-2); }
.langsw-list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.langsw-list a[aria-current="true"] { background: var(--color-accent-ink); color: var(--color-on-accent); }
.langsw-list a[aria-current="true"] small { color: var(--color-on-accent); }

/* Forms: fields drawn in the muted ink, an inset focus ring, errors beside the field */
.form { display: grid; gap: var(--space-md); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-edge); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.field input:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-color: var(--color-focus); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field textarea { min-height: 136px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: var(--text-sm); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; padding: 0; margin-block-end: var(--space-xs); font-weight: 600; font-size: var(--text-sm); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-paper); border-radius: var(--radius-pill); background: var(--color-paper); cursor: pointer; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); } /* taste-skill-ignore: border is the fill colour */
.chip span:hover { background: var(--color-paper-3); }
.chip input:checked + span { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.chip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.consent { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); }
.consent input { flex: none; width: 20px; height: 20px; margin: var(--space-3xs) 0 0; }
.consent input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.form-hint { min-height: 1lh; color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 40rem) { .row2 { grid-template-columns: minmax(0, 1fr); } }

/* Footer: a mast. The name large over the links, then one notes line. On every page but the home, a call band first. */
.site-foot { background: var(--color-night); color: var(--color-on-night); }
.site-foot :focus-visible { outline-color: var(--color-focus-night); }
.foot-in { display: grid; gap: var(--space-2xl); padding-block: var(--space-3xl) var(--space-xl); }
.foot-call { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-lg) var(--gap-columns); padding-block-end: var(--space-2xl); }
.foot-title { font-size: var(--text-section); }
.foot-call-side { display: grid; gap: var(--space-md); justify-items: start; }
.foot-call-side p { max-width: 48ch; color: var(--color-on-night-muted); }
.foot-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.site-foot .btn-quiet, .quickbar .btn-quiet { border-color: var(--color-night-2); color: var(--color-on-night); background: var(--color-night-2); }
.site-foot .btn-quiet:hover, .quickbar .btn-quiet:hover { background: var(--color-night-rule); border-color: var(--color-night-rule); }
.foot-mast { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.foot-line { max-width: 46ch; justify-self: start; color: var(--color-on-night-muted); font-size: var(--text-lead); line-height: 1.45; }
.foot-mast .logo { gap: var(--space-md); }
.foot-mast .logo-mark { width: clamp(40px, 7vw, 120px); height: auto; aspect-ratio: 32 / 40; }
.foot-mast .logo-en { font-size: clamp(2.6rem, 10.5vw, 10rem); letter-spacing: -0.02em; white-space: nowrap; }
.foot-mast .logo-ar { font-size: clamp(1.25rem, 2.5vw, 2.25rem); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); padding-block-start: var(--space-xl); }
.foot-col { display: grid; gap: var(--space-sm); align-content: start; }
.foot-col h2 { max-width: none; font: 400 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--color-on-night-muted); }
.foot-links, .foot-langs { display: grid; gap: var(--space-2xs); }
.foot-links a, .foot-langs a, .foot-contact a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-on-night); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot-links a:hover, .foot-langs a:hover, .foot-contact a:hover { color: var(--color-accent); }
.foot-langs a[aria-current="true"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.foot-contact { display: grid; gap: var(--space-sm); }
.foot-contact div { display: grid; gap: var(--space-3xs); }
.foot-contact dt { color: var(--color-on-night-muted); font-size: var(--text-sm); }
.foot-contact dd { overflow-wrap: break-word; }
/* The bottom line: the copyright, and the developer's credit at the reading end (clear of the back-to-top button) */
.foot-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block-start: var(--space-lg); color: var(--color-on-night-muted); font-size: var(--text-sm); }
.foot-dev { margin-inline-end: 4.5rem; }
.foot-dev a { color: inherit; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot-dev b { color: var(--color-on-night); font-weight: 600; transition: color var(--dur-short) var(--ease-out); }
.foot-dev a:hover b, .foot-dev a:hover { color: var(--color-accent-night); }
.foot-dev a:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: 3px; border-radius: 4px; }
.foot-dev .tel { display: inline-block; white-space: nowrap; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .foot-bar { flex-direction: column; } .foot-dev { margin-inline-end: 0; } }
.site-foot .fill { background: var(--color-night-2); color: var(--color-on-night-muted); }
@media (max-width: 60rem) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-call { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages (the enquiry result, 404) */
.page { padding-block: var(--space-3xl) var(--section-gap-s); }
.page h1 { max-width: 16ch; }
.page .lead { margin-block-start: var(--space-lg); max-width: 40ch; color: var(--color-muted); }
.page-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; margin-block-start: var(--space-xl); }
.page-aside { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.page-aside h2 { font-size: var(--text-title); margin-block-end: var(--space-sm); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-block-end: var(--space-xl); color: var(--color-muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--space-sm); }
.notice { margin-block-start: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.notice.is-error { color: var(--color-error); font-weight: 600; }
.notice h2 { font-size: var(--text-title); margin-block-end: var(--space-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-block-start: var(--space-xl); }
@media (max-width: 60rem) { .page-split { grid-template-columns: minmax(0, 1fr); } }

/* The dashboard's preview note */
.preview-bar { position: fixed; inset-block-end: var(--space-md); inset-inline: var(--space-md); z-index: var(--z-toast); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs) var(--space-md); max-inline-size: 704px; margin-inline: auto; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-card); background: var(--color-accent-ink); color: var(--color-on-accent); font: 600 var(--text-sm)/1.3 var(--font-body); box-shadow: var(--shadow-pop); } /* taste-skill-ignore: fixed preview toast */
.preview-bar a { color: inherit; }

/* Phones: WhatsApp and Call always in reach (only when the numbers are set) */
.quickbar { display: none; }
@media (max-width: 56rem) {
  .quickbar { position: fixed; inset-inline: var(--space-xs); inset-block-end: var(--space-xs); z-index: var(--z-sticky); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs); border-radius: var(--radius-card); background: var(--color-night); color: var(--color-on-night); box-shadow: var(--shadow-pop); } /* taste-skill-ignore: fixed quick bar on phones */
  body:has(.quickbar) .site-foot { padding-block-end: var(--space-3xl); }
}
.quick-wa { background: var(--color-whatsapp); border-color: var(--color-whatsapp); }
.quick-wa:hover { background: var(--color-whatsapp-deep); border-color: var(--color-whatsapp-deep); }
.tile-actions { display: inline-flex; gap: var(--space-md); }

@media (prefers-reduced-motion: reduce) {
  *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Back to the top: a round brass key at the reading end of the screen, above the phones' quick bar */
.to-top { position: fixed; inset-inline-end: var(--space-lg); inset-block-end: var(--space-lg); z-index: var(--z-sticky); display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); text-decoration: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.to-top-icon { transform: rotate(-90deg); }
.to-top:hover { background: var(--color-accent-deep); }
.to-top:active { transform: scale(0.94); }
.to-top:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
html[data-js] .to-top:not(.is-shown) { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 56rem) { body:has(.quickbar) .to-top { inset-block-end: calc(var(--space-xs) * 2 + 64px); } .to-top { inset-inline-end: var(--space-md); inset-block-end: var(--space-md); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Inner pages open on a band from the film (components/PageHero.tsx): a still under the clear header, the title in white
   with the brass curve drawn under it as the page arrives */
.page-hero { position: relative; display: grid; align-items: end; min-height: clamp(26rem, 64svh, 42rem); margin-block-start: calc(-1 * var(--head-full)); background: var(--color-night-3); color: var(--color-on-night); isolation: isolate; overflow: clip; }
.ph-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
html:not([dir="rtl"]) .ph-pic[data-flip] { transform: scaleX(-1); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--color-scrim) 0%, var(--color-scrim) 30%, var(--color-scrim-0) 72%), linear-gradient(to top, var(--color-scrim) 0%, var(--color-scrim-0) 45%), linear-gradient(to bottom, var(--color-scrim) 0%, var(--color-scrim-0) 30%); } /* taste-skill-ignore: neutral scrim over the film still */
[dir="rtl"] .page-hero::before { background: linear-gradient(to left, var(--color-scrim) 0%, var(--color-scrim) 30%, var(--color-scrim-0) 72%), linear-gradient(to top, var(--color-scrim) 0%, var(--color-scrim-0) 45%), linear-gradient(to bottom, var(--color-scrim) 0%, var(--color-scrim-0) 30%); } /* taste-skill-ignore: neutral scrim over the film still */
.ph-in { display: grid; gap: var(--space-lg); justify-items: start; padding-block: calc(var(--head-full) + var(--space-3xl)) var(--space-3xl); }
.ph-title { position: relative; width: fit-content; max-width: 16ch; font-size: var(--text-display); line-height: var(--lh-display); letter-spacing: var(--tracking-display); color: var(--color-on-night); }
.ph-lead { max-width: 44ch; color: var(--color-on-night); opacity: 0.88; }
.page-hero .btn-quiet { background: var(--color-on-night); border-color: var(--color-on-night); color: var(--color-ink); }
.page-hero :focus-visible { outline-color: var(--color-focus-night); }
@media (prefers-reduced-motion: no-preference) {
  .ph-curve { animation: wipe-in 1s var(--ease-out) 250ms both; }
  [dir="rtl"] .ph-curve { animation-name: wipe-in-rtl; }
  .ph-title, .ph-lead, .page-hero .actions { animation: hero-in 900ms var(--ease-out) both; }
  .ph-lead { animation-delay: 120ms; }
  .page-hero .actions { animation-delay: 240ms; }
}

/* Header: the info strip (what Al-Shaam is, how to reach it, the languages; it slides away once the page scrolls) over
   the main bar, frosted midnight, clear over the films. In the bar, "the switch rail" (owner's choice of an Apple-style,
   electrical nav): a floating capsule built like a strip of breakers, one per destination, each with its lever; the page
   you are on is the one switched on, and a lime switch slides along the rail to the one under the pointer, a short
   current running along the rail as it goes (client/nav.ts). The enquiry is the main switch. Resting on Products opens
   the mega-menu. Phones: one bar and a full-screen menu of breaker rows. */
:root { --strip-h: 36px; --bar-h: 72px; --head-full: calc(var(--strip-h) + var(--bar-h)); --head-h: var(--head-full); }
html.head-compact { --head-h: var(--bar-h); }
@media (max-width: 62rem) { :root { --strip-h: 0px; --bar-h: 60px; } }

.site-head { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-sticky-nav); color: var(--color-on-night); transition: transform var(--dur-long) var(--ease-out); }
html.head-compact .site-head { transform: translateY(calc(-1 * var(--strip-h))); }
.site-head :focus-visible { outline-color: var(--color-focus-night); }
/* Over the home film (html.on-film, client/nav.ts): the bars turn clear on a soft shade so the film runs full screen */
.site-head::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; background: linear-gradient(to bottom, oklch(15% 0.05 262 / 0.72), oklch(15% 0.05 262 / 0)); opacity: 0; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); } /* taste-skill-ignore: neutral scrim over the hero film */
html.on-film .site-head::before { opacity: 1; }
.head-strip, .head-main { transition: background-color var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
html.on-film .head-strip { background-color: transparent; }

/* The strip */
.head-strip { height: var(--strip-h); background: var(--color-night-3); font-size: var(--text-sm); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 100%; }
.strip-line { overflow: hidden; color: var(--color-on-night-muted); white-space: nowrap; text-overflow: ellipsis; }
.strip-end { display: flex; flex: none; align-items: center; gap: var(--space-lg); }
.strip-link, .strip-langs a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; color: var(--color-on-night-muted); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.strip-link:hover, .strip-langs a:hover { color: var(--color-on-night); }
.strip-langs { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-on-night-muted); }
.strip-langs a[aria-current="true"] { color: var(--color-accent-night); }
@media (max-width: 62rem) { .head-strip { display: none; } }

/* The main bar */
.head-main { position: relative; isolation: isolate; height: var(--bar-h); transition: transform var(--dur-long) var(--ease-out); }
/* The frost sits on a layer behind the bar, so the panels inside can frost the page themselves */
.head-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: oklch(19% 0.06 262 / 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: opacity var(--dur-long) var(--ease-out); } /* taste-skill-ignore: owner asked for an Apple-style frosted bar */
html.on-film .head-main::before { opacity: 0; }
.head-in { display: flex; align-items: center; gap: var(--space-xl); block-size: 100%; }
.site-head .logo { flex: none; }
.site-head .logo-mark { width: 26px; height: 33px; transition: transform var(--dur-long) var(--ease-out); }
.site-head .logo-en { font-size: var(--text-lead); }

/* The switch rail: the destinations in a floating capsule, a recessed rail inside it, one breaker per destination */
.site-nav { position: relative; isolation: isolate; display: flex; align-items: center; margin-inline: auto; height: 52px; padding: 5px; transition: height var(--dur-long) var(--ease-out); }
.site-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-pill); background: oklch(14% 0.05 262 / 0.7); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.09), 0 12px 32px oklch(9% 0.05 262 / 0.35); } /* taste-skill-ignore: owner's Apple-style floating rail */
html.head-compact .site-nav { height: 46px; }
.nav-list { position: relative; display: flex; height: 100%; border-radius: var(--radius-pill); background: oklch(10% 0.045 262 / 0.55); }
.nav-item { display: flex; }
.nav-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding-inline: 14px 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--color-on-night-muted); transition: color 260ms var(--ease-out); }
.nav-top:hover, .nav-item.open > .nav-top, .nav-top[aria-current] { color: var(--color-on-night); }
/* Under the lime switch the label is ink (also while its menu is open); under the glass it stays white */
.nav-top.is-lit:not(.is-glass), .nav-item.open > .nav-top.is-lit:not(.is-glass) { color: var(--color-on-accent); }
.nav-top.is-glass { color: var(--color-on-night); }
.nav-top:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: -3px; }
/* A breaker's lever: a slot with its toggle, down (off) until its destination is switched on */
.lev { position: relative; flex: none; display: inline-block; width: 8px; height: 15px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.75; } /* taste-skill-ignore: the lever is drawn as a slot outline */
.lev::after { content: ""; position: absolute; inset-inline: 2px; inset-block-end: 2px; height: 5px; border-radius: 1.5px; background: currentColor; transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 240ms var(--ease-out); }
.nav-top:hover .lev::after, .nav-top.is-lit .lev::after, .nav-top[aria-current] .lev::after, .lev-on::after { transform: translateY(-6px); }
.nav-top[aria-current]:not(.is-lit) .lev { color: var(--color-accent-night); opacity: 1; }
/* The switch: a lime pill that slides along the rail (Apple's segmented-control spring); off until the script places it */
.nav-ind { display: none; }
html[data-js] .nav-ind { position: absolute; inset-block: 0; left: 0; display: block; width: var(--ind-w, 0px); border-radius: var(--radius-pill); background: var(--color-accent-night); opacity: var(--ind-o, 0); transform: translateX(var(--ind-x, 0px)); transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out), transform 460ms cubic-bezier(0.34, 1.3, 0.64, 1), width 460ms cubic-bezier(0.34, 1.3, 0.64, 1), opacity var(--dur-short) var(--ease-out); }
/* Pointing at another destination: the switch turns to glass (frosted, a highlight on its rim); lime stays for the page
   you are on */
html[data-js] .nav-ind.is-glass { background: oklch(100% 0 0 / 0.14); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.35), inset 0 0 0 1px oklch(100% 0 0 / 0.12); } /* taste-skill-ignore: owner asked for a glass hover */

/* The search: the catalogue's own query, from any page. With script it rests as its icon and opens when used */
html[data-js] .head-search { isolation: isolate; border-color: transparent; background: transparent; }
html[data-js] .head-search::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; z-index: -1; width: 44px; border: 1px solid transparent; border-radius: var(--radius-pill); transition: width 380ms cubic-bezier(0.34, 1.2, 0.64, 1), border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); } /* taste-skill-ignore: a form field */
html[data-js] .head-search.is-open::before, html[data-js] .head-search:focus-within::before { width: 100%; border-color: var(--color-night-edge); background: var(--color-night-2); }
html[data-js] .head-search input { transition: opacity var(--dur-short) var(--ease-out); }
html[data-js] .head-search:not(.is-open):not(:focus-within) input { opacity: 0; pointer-events: none; }
.head-search { position: relative; display: flex; align-items: center; flex: none; width: 260px; min-width: 0; height: 44px; border: 1px solid var(--color-night-edge); border-radius: var(--radius-pill); background: var(--color-night-2); transition: border-color var(--dur-short) var(--ease-out); } /* taste-skill-ignore: a form field */
.head-search:hover, .head-search:focus-within { border-color: var(--color-on-night-muted); }
.head-search input { flex: 1; min-width: 0; height: 100%; padding: 0 var(--space-md); border: 0; background: transparent; color: var(--color-on-night); font: 400 var(--text-sm)/1 var(--font-body); outline: 2px solid transparent; outline-offset: -2px; border-radius: var(--radius-pill); }
.head-search input::placeholder { color: var(--color-on-night-muted); opacity: 1; }
.head-search input:focus-visible { outline-color: var(--color-focus-night); }
.head-search input::-webkit-search-cancel-button { display: none; }
.hs-go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-on-night-muted); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.hs-go:hover { color: var(--color-on-night); }
.hs-go:active { color: var(--color-accent-night); }
.hs-go:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: -2px; }

/* The end: language (phones), the action, the menu button */
.head-end { display: flex; flex: none; align-items: center; gap: var(--space-xs); }
.site-head .langsw { display: none; }
.site-head .langsw summary { color: var(--color-on-night); }
.site-head .langsw summary:hover, .site-head .langsw[open] summary { background: var(--color-night-2); }
.head-cta { gap: 10px; min-height: 44px; padding: 0 var(--space-lg) 0 var(--space-md); }
.head-cta .lev { opacity: 0.9; }
.head-cta:hover .lev::after { transform: translateY(0); }
.burger { display: none; place-items: center; width: 44px; height: 44px; color: var(--color-on-night); cursor: pointer; }
.burger:focus-visible { outline: 2px solid var(--color-focus-night); outline-offset: 0; }
.burger i { position: relative; display: block; width: 20px; height: 8px; }
.burger i::before, .burger i::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform var(--dur-short) var(--ease-out); }
.burger i::after { transform: translateY(6px); }
.burger[aria-expanded="true"] i::before { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(3px) rotate(-45deg); }

/* The mega-menu */
.fly { position: absolute; left: 50%; inset-block-start: calc(100% + 16px); width: min(1180px, calc(100vw - 2 * var(--gutter))); display: none; border-radius: var(--radius-media); background: oklch(97% 0.004 262 / 0.94); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); color: var(--color-ink); box-shadow: var(--shadow-pop); opacity: 0; transform: translate(-50%, -6px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), display var(--dur-short) allow-discrete; } /* taste-skill-ignore: the mega-menu is a real overlay */
.nav-item.open .fly, html:not([data-js]) .nav-item:is(:hover, :focus-within) .fly { display: block; opacity: 1; transform: translate(-50%, 0); }
@starting-style { .nav-item.open .fly { opacity: 0; transform: translate(-50%, -6px); } }
.fly :focus-visible { outline-color: var(--color-focus); }
.fly-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
.fly-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.fly-cats a { display: grid; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; font-weight: 600; }
.fly-cats img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-stage); transition: transform var(--dur-long) var(--ease-out); }
.fly-cats a:hover img { transform: translateY(-4px); }
.fly-cats span, .fly-list a { display: inline-flex; align-items: center; gap: var(--space-xs); }
.fly-cats span .icon, .fly-list .icon { flex: none; color: var(--color-accent-text); }
.fly-list { display: grid; align-content: start; gap: var(--space-2xs); }
.fly-list a { min-height: 36px; color: var(--color-ink); text-decoration: none; font-size: var(--text-md); transition: color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.fly-list a:hover { color: var(--color-accent-text); transform: translateX(4px); }
[dir="rtl"] .fly-list a:hover { transform: translateX(-4px); }
.fly-list .text-link { margin-block-start: var(--space-xs); }
.fly-card { display: grid; align-content: space-between; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-night); color: var(--color-on-night); }
.fly-card p { font-size: var(--text-lead); line-height: 1.3; }
.fly-card .btn { justify-self: start; }
.nav-veil { position: fixed; inset: 0; z-index: var(--z-sticky); background: var(--color-veil); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.nav-veil.on { opacity: 1; visibility: visible; transition: opacity var(--dur-short) var(--ease-out), visibility 0s; }

@media (max-width: 80rem) { html:not([data-js]) .head-search { flex: none; width: 44px; border-color: transparent; background: transparent; } html:not([data-js]) .head-search input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); } .head-in { gap: var(--space-lg); } }
/* Phones: the search rests as its icon and opens over the bar */
@media (max-width: 62rem) { html[data-js] .head-search { width: 44px; margin-inline-start: auto; } html[data-js] .head-search:is(.is-open, :focus-within) { position: absolute; inset-inline: var(--gutter); inset-block-start: calc((var(--bar-h) - 44px) / 2); z-index: 2; width: auto; } }
@media (max-width: 62rem) { .site-nav, .head-cta, .nav-veil { display: none; } .burger { display: inline-grid; } .head-search { margin-inline-start: auto; } .site-head .langsw { display: block; } }
@media (max-width: 30rem) { .head-end .langsw { display: none; } }
@media (min-width: 62.01rem) { html .drawer { display: none; } }

/* Phones: the whole screen becomes the menu */
.drawer { position: fixed; inset: var(--bar-h) 0 0; z-index: var(--z-sticky); display: flex; flex-direction: column; gap: var(--space-xl); padding: var(--space-xl) var(--gutter); background: var(--color-night); color: var(--color-on-night); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.drawer.open, .drawer:target { opacity: 1; visibility: visible; transition: opacity var(--dur-short) var(--ease-out), visibility 0s; }
.drawer :focus-visible { outline-color: var(--color-focus-night); }
.drawer ul { display: grid; }
.drawer li a { display: flex; align-items: center; gap: var(--space-md); padding-block: var(--space-xs); font: 600 var(--text-section)/1.05 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; color: inherit; }
:lang(ar) .drawer li a, :lang(ckb) .drawer li a { font-family: var(--font-arabic); font-size: var(--text-2xl); }
.drawer li a[aria-current] { color: var(--color-accent-night); }
.drawer .lev { width: 14px; height: 26px; border-radius: 5px; box-shadow: inset 0 0 0 2px currentColor; } /* taste-skill-ignore: the lever is drawn as a slot outline */
.drawer .lev::after { inset-inline: 3px; inset-block-end: 3px; height: 9px; border-radius: 2.5px; }
.drawer.open .lev::after { transform: translateY(-11px); transition-delay: 120ms; }
.drawer.open li:nth-child(2) .lev::after { transition-delay: 190ms; }
.drawer.open li:nth-child(3) .lev::after { transition-delay: 260ms; }
.drawer.open li:nth-child(4) .lev::after { transition-delay: 330ms; }
.drawer li a:not([aria-current]) .lev::after { background: var(--color-on-night-muted); }
.drawer > .btn { align-self: start; }
.drawer-close { position: absolute; inset-block-start: var(--space-md); inset-inline-end: var(--gutter); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-night-2); color: inherit; font-size: var(--text-xl); line-height: 1; text-decoration: none; }
html[data-js] .drawer-close { display: none; }
.drawer-langs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-night-2); align-self: start; }
.drawer-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-on-night-muted); text-decoration: none; font-weight: 600; }
.drawer-langs a[aria-current="true"] { background: var(--color-accent-night); color: var(--color-on-accent); }

/* Room for the fixed bar */
main { padding-block-start: var(--head-full); }
section[id] { scroll-margin-top: calc(var(--bar-h) + var(--space-lg)); }

@media (prefers-reduced-motion: reduce) {
    .site-head, .head-main, .site-head .logo-mark, .nav-ind, .lev::after, .head-search, .fly, .fly-cats img, .fly-list a, .nav-veil, .drawer, .burger i::before, .burger i::after { transition: none; }
}

/* Home page: a buyer's path. The hero is a scroll-scrubbed journey from copper to a lit city that lands on the claim;
   then the four ways into the range as rows and the product pictures as a rail; made or traded as a statement on a
   paper band; the breaker taken apart by scroll on the stage of the photographs' grey (the page's one scroll pattern);
   the enquiry process and the facts on midnight; questions as rows; the enquiry itself. Motion: transform and opacity,
   nothing hidden before a script runs. */

/* 1. Hero: the journey, in src/journey.css */

/* Section rhythm */
.what { padding-block: var(--section-gap) var(--section-gap-s); }
.made { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.process { padding-block: var(--section-gap-s); background: var(--color-night); color: var(--color-on-night); }
.faq { padding-block: var(--section-gap-l) var(--section-gap); }
.contact { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; margin-block-end: var(--space-2xl); }
.sec-head h2 { grid-column: 1 / span 6; }
.sec-head > p { grid-column: 8 / span 5; }

/* 2. What we do: the four ways in, as rows */
.ways-in { display: grid; gap: var(--space-xs); }
.way { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; min-height: 112px; padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.way:hover { background: var(--color-paper-3); }
.way:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.way-name { grid-column: 1 / span 4; font: var(--display-weight) var(--text-lead)/1.1 var(--font-display); letter-spacing: -0.01em; }
:lang(ar) .way-name, :lang(ckb) .way-name { font-family: var(--font-arabic); text-transform: none; }
.way-text { grid-column: 5 / span 5; color: var(--color-ink); }
.way-go { grid-column: 10 / span 3; justify-self: end; display: inline-flex; gap: var(--space-xs); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.way-go .n { color: var(--color-muted); font-weight: 400; font-variant-numeric: tabular-nums; text-decoration: none; }
.way:hover .way-go { color: var(--color-accent-text); }

/* The range: a rail of the product pictures, past the container's edge */
.range-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-block: var(--space-3xl) var(--space-lg); }
.range-head p { color: var(--color-muted); }
.slider { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
/* The range as a specimen grid inside the frame: every item alone on its own stone tile, same scale, named beneath */
.slides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-md); row-gap: var(--space-xl); max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); padding-block: var(--space-2xs) var(--space-lg); }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.slide { scroll-snap-align: start; min-width: 0; }
.item { display: grid; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.item img { order: -1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-stage); }
.item-name { font-weight: 600; font-size: var(--text-lg); line-height: 1.25; transition: color var(--dur-short) var(--ease-out); }
.item-kind { order: 1; justify-self: start; color: var(--color-muted); font-size: var(--text-sm); }
.item:hover .item-name { color: var(--color-accent-text); }
.item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-media); }
.slider-ctl { display: flex; align-items: center; gap: var(--space-sm); }
.slider.is-static .slider-ctl { display: none; }
.sl-bar { flex: 0 1 160px; height: 2px; margin-inline-end: auto; background: var(--color-rule); overflow: hidden; }
.sl-fill { display: block; height: 100%; background: var(--color-ink); transform-origin: left center; transform: scaleX(var(--p, 0.25)); transition: transform var(--dur-short) var(--ease-out); }
[dir="rtl"] .sl-fill { transform-origin: right center; }
.sl-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.sl-btn:hover { background: var(--color-paper-3); }
.sl-btn:active { transform: translateY(1px); }
.sl-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sl-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
[dir="rtl"] .sl-btn svg { transform: scaleX(-1); }

/* 3. Made or traded: a statement on the paper band, the two ways beneath */
.made-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.made-side { grid-column: 1 / span 4; grid-row: 1 / span 3; display: grid; gap: var(--space-xl); align-content: start; }
.made-pic { aspect-ratio: 4 / 5; }
.made-pic img { width: 100%; height: 100%; object-fit: cover; }
.made-lead { grid-column: 5 / span 8; max-width: 60ch; font-size: var(--text-statement); line-height: 1.3; letter-spacing: -0.01em; }
.ways { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.ways > div { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-paper); }
.ways dt { font: var(--display-weight) var(--text-section)/1 var(--font-display); letter-spacing: var(--tracking-display); }
:lang(ar) .ways dt, :lang(ckb) .ways dt { font-family: var(--font-arabic); text-transform: none; font-size: var(--text-3xl); line-height: 1.3; }
.ways dd { color: var(--color-ink); }
.ways dd:last-child { padding-block-start: var(--space-xs); color: var(--color-ink); }
.ways .n { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.made-note { grid-column: 5 / span 8; color: var(--color-muted); }

/* 4. Inside a breaker: the signature. Scroll takes it apart (client/home.ts); without script the still of the parts. */
.inside { background: var(--color-stage); color: var(--color-ink); }
.inside-stage { display: grid; align-content: center; gap: var(--space-lg); padding-block: var(--section-gap-s); }
.inside-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.inside-head h2 { grid-column: 1 / span 6; }
.inside-lead { grid-column: 8 / span 5; max-width: 40ch; }
.inside-lead strong { font-weight: 600; }
.chapters { display: none; }
.inside-pic { position: relative; width: min(100%, 1200px, calc((100svh - 300px) * 1.7778)); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, var(--color-ink) 60%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, var(--color-ink) 60%, transparent 100%); } /* taste-skill-ignore: a soft-edge mask on the photograph, not a fill */
.inside-pic img, .inside-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.inside-pic canvas { opacity: 0; }
.parts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-xs); counter-reset: part; }
.parts li { display: grid; justify-items: center; gap: var(--space-xs); text-align: center; font-size: var(--text-sm); font-weight: 600; counter-increment: part; transition: opacity var(--dur-short) var(--ease-out); }
.parts li::before { content: counter(part); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--color-paper); font-variant-numeric: tabular-nums; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.inside-note { color: var(--color-ink); text-align: center; }
@media (max-width: 62rem) { .parts { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-md); } }
/* Live (script running, motion allowed): the section grows tall and the stage holds still while the frames change */
.inside.is-live { height: 220svh; }
.inside.is-live .inside-stage { position: sticky; top: var(--head-h); min-height: calc(100svh - var(--head-h)); padding-block: var(--space-lg); }
.inside.is-live .inside-lead { display: none; }
.inside.is-live .chapters { grid-column: 8 / span 5; display: grid; min-height: 1.5em; font-size: var(--text-lead); font-weight: 600; }
.inside.is-live .chapter { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.inside[data-chapter="0"] .chapter:nth-child(1), .inside[data-chapter="1"] .chapter:nth-child(2), .inside[data-chapter="2"] .chapter:nth-child(3) { opacity: 1; transform: none; }
.inside.is-live canvas.is-ready { opacity: 1; }
.inside.is-live .parts li { opacity: 0.78; }
.inside.is-live .parts li.is-on { opacity: 1; }
.inside.is-live .parts li[aria-current]::before { background: var(--color-accent-ink); color: var(--color-on-accent); }
.inside.is-live .inside-note { display: none; }
@media (max-width: 62rem) { .inside.is-live { height: 200svh; } }

/* The Circuit Sizer: appliance steppers on the left, a near-black panel on the right with the board strip, the load
   meter and the figures. Script-only parts hide without it; the rule table shows instead. */
html:not([data-js]) .js-only, html[data-js] .no-js-only { display: none !important; }
.sizer { padding-block: var(--section-gap) var(--section-gap-s); }
.sizer-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.sizer-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.sizer-head h2 { grid-column: 1 / span 6; }
.sizer-head p { grid-column: 8 / span 5; }
.sizer-list { grid-column: 1 / span 6; display: grid; gap: var(--space-xs); }
.sz-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); min-height: 84px; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-paper-2); transition: background-color var(--dur-short) var(--ease-out); }
.sz-item.is-on { background: var(--color-paper-3); }
.sz-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.sz-item.is-on .sz-icon { background: var(--color-accent); }
.sz-name { display: grid; font-weight: 600; font-size: var(--text-md); }
.sz-w { color: var(--color-muted); font-weight: 400; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sz-step { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper); }
.sz-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 600 var(--text-lead)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.sz-btn:hover { background: var(--color-paper-2); }
.sz-btn:active { transform: scale(0.92); }
.sz-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sz-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.sz-count { min-width: 3ch; text-align: center; font: var(--display-weight) var(--text-lead)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sizer-panel { grid-column: 7 / span 6; position: sticky; top: calc(var(--head-h) + var(--space-lg)); display: grid; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-night); color: var(--color-on-night); }
.sizer-panel :focus-visible { outline-color: var(--color-focus-night); }
/* The board strip: seven modules on a DIN rail; the one the load needs lights brass and throws its lever */
.board { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2xs); padding-block: var(--space-sm); }
.board::before { content: ""; position: absolute; inset-inline: calc(-1 * var(--space-sm)); inset-block-start: 50%; height: 14px; translate: 0 -50%; border-radius: 3px; background: var(--color-night-2); }
.mcb { position: relative; display: grid; justify-items: center; align-content: space-between; gap: var(--space-xs); aspect-ratio: 1 / 2.4; padding-block: var(--space-sm); border-radius: 6px; background: var(--color-on-night-muted); color: var(--color-ink); opacity: 0.5; transition: opacity var(--dur-long) var(--ease-out), background-color var(--dur-long) var(--ease-out); }
.mcb-lever { width: 38%; height: 30%; border-radius: 3px; background: var(--color-ink-2); transform: translateY(35%); transition: transform var(--dur-long) var(--ease-out); }
.mcb-rating { font: var(--display-weight) var(--text-sm)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mcb.is-on { opacity: 1; background: var(--color-accent); }
.mcb.is-on .mcb-lever { transform: translateY(-35%); }
.meter { height: 10px; border-radius: var(--radius-pill); background: var(--color-night-2); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--color-accent); transform-origin: left center; transform: scaleX(var(--fill, 0)); transition: transform var(--dur-long) var(--ease-out), background-color var(--dur-long) var(--ease-out); }
[dir="rtl"] .meter-fill { transform-origin: right center; }
.meter.is-hot .meter-fill { background: var(--color-copper); }
.sz-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.sz-figures div { display: grid; gap: var(--space-2xs); }
.sz-figures dd { order: -1; }
.sz-figures dt { color: var(--color-on-night-muted); font-size: var(--text-sm); }
.sz-figures dd { font: var(--display-weight) clamp(2rem, 1rem + 2.2vw, 3.25rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sz-figures div:nth-child(3) dd { color: var(--color-accent-night); }
.sizer.is-empty .sz-figures dd { color: var(--color-on-night-muted); }
.sz-msg { color: var(--color-on-night); font-size: var(--text-md); }
.sizer.is-over .sz-msg { color: var(--color-accent-night); }
.sizer-panel .btn { justify-self: start; }
.sz-note { color: var(--color-on-night-muted); font-size: var(--text-sm); max-width: 52ch; }
.sizer-rule { grid-column: 7 / span 6; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sizer-rule caption { padding-block-end: var(--space-sm); text-align: start; font-weight: 600; }
.sizer-rule th, .sizer-rule td { padding: var(--space-sm) var(--space-md); text-align: start; border-block-end: 1px solid var(--color-rule); }
.sizer-rule th { color: var(--color-muted); font-weight: 400; font-size: var(--text-sm); }

/* 5. How an enquiry is handled, and the facts: the midnight band */
.process :focus-visible { outline-color: var(--color-focus-night); }
.process .sec-head > p { color: var(--color-on-night-muted); }
.line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-xs); row-gap: var(--space-xl); counter-reset: step; }
.line li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-sm); align-content: start; min-height: 15rem; padding: var(--space-xl) var(--space-lg) var(--space-lg); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-night-2); counter-increment: step; }
.line li::before { content: counter(step); margin-block-end: var(--space-md); font: var(--display-weight) clamp(2.75rem, 1.6rem + 2.2vw, 4rem)/1 var(--font-display); color: var(--color-accent-night); font-variant-numeric: tabular-nums; }
.line h3 { color: var(--color-on-night); font-size: var(--text-title); }
.line p { max-width: 30ch; color: var(--color-on-night); opacity: 0.84; font-size: var(--text-md); line-height: 1.5; }
.trust { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); margin-block-start: var(--section-gap-s); }
.trust-head { grid-column: 1 / span 4; display: grid; gap: var(--space-md); align-content: start; }
.trust-head p { color: var(--color-on-night-muted); }
.facts { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.fact { display: grid; align-content: start; gap: var(--space-xs); }
.fact-value { order: -1; justify-self: start;font: var(--display-weight) var(--text-display-s)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fact dt { color: var(--color-on-night-muted); }
.fact-note { grid-column: 5 / span 8; color: var(--color-on-night-muted); }
.process .fill { background: var(--color-night-2); color: var(--color-on-night); }

/* 6. Questions: a split head, then full-width rows */
.faq-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.faq-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.faq-head h2 { grid-column: 1 / span 6; }
.faq-head p { grid-column: 8 / span 5; }
.faq-list { grid-column: 1 / -1; display: grid; gap: var(--space-xs); }
.qa { padding-inline: var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-paper-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; padding-block: var(--space-md); cursor: pointer; list-style: none; font-size: var(--text-lg); font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform var(--dur-short) var(--ease-out); } /* taste-skill-ignore: draws the plus sign, not a fill */
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--color-accent-text); }
.qa summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qa p { max-width: 60ch; padding-block-end: var(--space-lg); color: var(--color-ink); }

/* 7. The enquiry, with dealer terms beside it */
.contact-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.contact-copy { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); align-content: start; }
.contact-lines { display: grid; gap: var(--space-sm); }
.contact-lines div { display: grid; gap: var(--space-3xs); }
.contact-lines dt { color: var(--color-muted); font-size: var(--text-sm); }
.contact .form { grid-column: 7 / span 6; }
.dealer { display: grid; gap: var(--space-sm); justify-items: start; margin-block-start: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-paper); }
.dealer p { max-width: 48ch; }

/* Narrow screens: every composition stacks in reading order */
@media (max-width: 60rem) {
  .sizer-head h2, .sizer-head p, .sizer-list, .sizer-panel, .sizer-rule, .sec-head h2, .sec-head > p, .made-side, .made-lead, .ways, .made-note, .inside-head h2, .inside-lead, .trust-head, .facts, .fact-note, .faq-head h2, .faq-head p, .faq-list, .contact-copy, .contact .form, .inside.is-live .chapters { grid-column: 1 / -1; }
  .way { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .way-name, .way-text { grid-column: 1; }
  .way-go { grid-column: 1; justify-self: start; }
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-head > * { grid-column: 1 / -1; }
  .sizer-panel { position: static; }
  .made-side { grid-row: auto; }
  .made-pic { aspect-ratio: 16 / 10; }
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way { padding: var(--space-lg); }
}
@media (max-width: 40rem) {
  .line, .facts, .ways { grid-template-columns: minmax(0, 1fr); }
  .line { row-gap: var(--space-lg); }
  .facts { row-gap: var(--space-lg); }
  .ways { row-gap: var(--space-2xl); }
  .ways > div { padding: var(--space-lg); }
  .qa { padding-inline: var(--space-lg); }
}

/* Entrances: each section's parts rise in once, heading first, staggered by --i (set by client/home.ts). Only when the
   script runs (html.js) and motion is welcome; otherwise everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  /* The one-screen hero (no film) arrives in order: the white clause, the brass clause, the sentence, the actions */
  .journey:not(.is-live) :is(.h1-a, .h1-b, .hero-lead, .hero-actions) { animation: hero-in 900ms var(--ease-out) both; }
  .h1-b { animation-delay: 120ms; }
  .hero-lead { animation-delay: 260ms; }
  .hero-actions { animation-delay: 380ms; }
  /* Tilt and lean, set by client/home.ts pointerFx() */
  .item img, .tile .sq { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--dur-long) var(--ease-out); }
  .way { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) * 0.3)); }
  .hero .btn, .head-cta, .fly-card .btn { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .item img, .way, .ways > div, .qa { transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
  .item:hover img { transform: none; }
  .item:active img, .way:active { transform: scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  .mcb, .mcb-lever, .meter-fill, .sz-item, .sz-icon, .sz-btn,
  .sl-fill, .inside.is-live .chapter, .parts li, .parts li::before, .qa summary::after, .way, .item-name { transition: none; }
}

@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-in-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* Icons from the trade's set */
.way-name { display: inline-flex; align-items: center; gap: var(--space-md); }
.way-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.way:hover .way-icon { background: var(--color-accent); }
.ways dt { display: grid; gap: var(--space-md); }
.ways-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); }
.ways-icon .icon { width: 28px; height: 28px; }
.line li { position: relative; }
.step-icon { position: absolute; inset-block-start: var(--space-lg); inset-inline-end: var(--space-lg); color: var(--color-accent-night); }
.contact-lines dt { display: inline-flex; align-items: center; gap: var(--space-xs); }
.contact-lines dt .icon { color: var(--color-accent-text); }

/* The breaker lever drawn large and quiet behind the facts */
.trust { position: relative; isolation: isolate; }
.process { overflow: clip; }

.made-pic { position: relative; }

/* 1. Hero: the journey (client/journey.ts). One sticky screen inside a tall section (is-live); scrolling it scrubs the film
   from the copper to the lit city. Around the film: callouts pinned to the parts like a technical drawing, an instrument
   at the foot (readout, sound, the current trace that drops into the page's wire), and at the end a power cut the cursor
   restores. Served as one plain screen with the claim, so with no script, reduced motion or save-data nothing is hidden
   and there is no tall scroll. The film runs under the header, which turns transparent over it (header.css, on-film). */
.journey { --scope-b: clamp(1.5rem, 5svh, 3rem); --near: max(calc(var(--gutter) / 2), calc((100% - var(--container)) / 2 + var(--gutter) / 2)); position: relative; margin-block-start: calc(-1 * var(--head-full)); background: var(--color-night-3); color: var(--color-on-night); isolation: isolate; }
.journey.is-live { height: 380svh; }
.journey-stage { position: relative; height: 100svh; min-height: 32rem; overflow: clip; }
.journey.is-live .journey-stage { position: sticky; inset-block-start: 0; }
.journey-still, .journey-canvas, .journey-dark { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey-canvas { opacity: 0; transition: opacity 500ms var(--ease-out); }
.journey-canvas.is-ready { opacity: 1; }
.journey-grain { position: absolute; inset: -40%; z-index: 1; background: url("/hero/journey/grain.webp") repeat; opacity: 0.075; mix-blend-mode: overlay; pointer-events: none; }

/* Scrims: a quiet vignette always; the wash behind the claim comes up only with it, from the top where it sits */
.journey-stage::before, .journey-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.journey-stage::before { background: radial-gradient(130% 95% at 50% 50%, var(--color-scrim-0) 58%, var(--color-scrim) 100%), linear-gradient(to bottom, var(--color-scrim) 0%, var(--color-scrim-0) 26%), linear-gradient(to top, var(--color-scrim) 0%, var(--color-scrim-0) 24%); } /* taste-skill-ignore: neutral vignette scrim over the film */
.journey-stage::after { background: linear-gradient(to bottom, var(--color-scrim) 0%, var(--color-scrim-0) 62%); opacity: 0; transition: opacity 900ms var(--ease-out); } /* taste-skill-ignore: neutral scrim behind the claim */
.journey:not(.is-live) .journey-stage::after, .journey.is-live[data-step="2"] .journey-stage::after { opacity: 1; }

/* The words: each chapter sits in its own shot's empty space. Copper: top start. Breaker: top end. The claim: on the
   sky over the city, top start, so the lit streets below stay clear for the cursor. */
.journey-in { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: minmax(0, 1fr); padding-block: calc(var(--head-full) + clamp(2rem, 7svh, 4.5rem)) calc(var(--scope-b) + 6rem); pointer-events: none; }
.journey-in > * { grid-area: 1 / 1; align-self: start; }
.journey-line { display: none; pointer-events: auto; max-width: 13ch; font-size: clamp(2.2rem, 1rem + 3.4vw, 4.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; color: var(--color-on-night); }
.journey-line[data-step="1"] { justify-self: end; text-align: end; }
/* Arabic and Kurdish read from the right, so the whole film turns with them (the frames carry no readable text) */
[dir="rtl"] :is(.journey-canvas, .journey-still, .journey-dark) { transform: scaleX(-1); }
.hero-head { display: grid; gap: var(--space-lg); justify-items: start; max-width: 46rem; pointer-events: auto; }
.journey.is-live .hero-head { pointer-events: none; }
.journey.is-live[data-step="2"] .hero-head, .journey.is-live .hero-head:focus-within { pointer-events: auto; }
.hero h1 { max-width: none; font-size: clamp(2.4rem, 1rem + 3.7vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em; color: var(--color-on-night); }
@media (min-width: 60rem) { .h1-a, .h1-b { white-space: nowrap; } }
.h1-a, .h1-b { display: block; }
.h1-b { position: relative; width: fit-content; color: var(--color-accent-night); }
.h1-curve { position: absolute; inset-inline: 0; inset-block-end: -0.16em; width: 100%; height: 0.24em; overflow: visible; }
.h1-curve path { fill: none; stroke: var(--color-accent-night); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
[dir="rtl"] .h1-curve { transform: scaleX(-1); }
.hero-lead { max-width: 40ch; color: var(--color-on-night); opacity: 0.86; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding-block-start: var(--space-xs); }
.hero .btn-quiet { background: var(--color-on-night); border-color: var(--color-on-night); color: var(--color-ink); }
.hero .btn-quiet:hover { background: var(--color-paper-2); border-color: var(--color-paper-2); }
.hero :focus-visible { outline-color: var(--color-focus-night); }

/* Live: one chapter at a time. Words rise out of their masks in step with the scroll (--t per line from the script, --i per
   word, --n words), so scrolling back lowers them again; chapters hand over with a short cross-fade, never a blur. */
.journey.is-live .journey-line { display: block; }
.journey.is-live [data-step] { visibility: hidden; opacity: 0; transition: opacity 450ms var(--ease-out), visibility 0s linear 450ms; }
.journey.is-live[data-step="0"] [data-step="0"], .journey.is-live[data-step="1"] [data-step="1"], .journey.is-live[data-step="2"] [data-step="2"], .journey.is-live .hero-head:focus-within { visibility: visible; opacity: 1; transition: opacity 450ms var(--ease-out), visibility 0s; }
.journey .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; padding-block-end: 0.1em; margin-block-end: -0.1em; vertical-align: top; }
.journey .w > span { display: inline-block; transform: translateY(calc((1 - clamp(0, var(--t, 1) * (var(--n, 1) + 2) - var(--i, 0), 1)) * 108%)); transition: transform 160ms linear; }
.journey.is-live .hero-lead, .journey.is-live .hero-actions { opacity: 0; translate: 0 0.75rem; transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out); }
.journey.is-live[data-step="2"] .hero-lead, .journey.is-live[data-step="2"] .hero-actions, .journey.is-live .hero-head:focus-within :is(.hero-lead, .hero-actions) { opacity: 1; translate: 0 0; }
.journey.is-live[data-step="2"] .hero-actions { transition-delay: 120ms; }
.journey.is-live .h1-curve { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out) 300ms; }
[dir="rtl"] .journey.is-live .h1-curve { clip-path: inset(0 0 0 100%); }
.journey.is-live[data-step="2"] .h1-curve, .journey.is-live .hero-head:focus-within .h1-curve { clip-path: inset(0 0 0 0); }

/* The callouts: a ring on the part, a hairline leader at the measured angle, the label sitting on its own rule */
.journey-marks { display: none; }
.journey.is-live .journey-marks { position: absolute; inset: 0; z-index: 2; display: block; pointer-events: none; transition: opacity 400ms var(--ease-out); }
/* The claim screens (opening and close) carry the claim alone; the callouts belong to the journey between them */
.journey.is-live[data-step="2"] .journey-marks { opacity: 0; }
.mk { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.mk-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 3px solid oklch(15% 0.05 262 / 0.6); border-radius: 50%; background: var(--color-accent-night); }
.mk-leg { position: absolute; left: 0; top: 0; width: calc(var(--len, 72px) - 6px); height: 2px; background: var(--color-accent-night); transform-origin: 0 0; transform: rotate(atan2(var(--dy, 40px), var(--dx, 60px))) translate(6px, -1px); opacity: 0.9; }
.mk-label { position: absolute; left: var(--dx, 60px); top: var(--dy, 40px); padding: 0.4rem 0.6rem 0.35rem; border-block-end: 2px solid var(--color-accent-night); background: oklch(15% 0.05 262 / 0.72); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; color: var(--color-on-night); transform: translate(0, -100%); }
.mk.mk-left .mk-label { transform: translate(-100%, -100%); }
/* Arabic script joins its letters: no tracking */
[dir="rtl"] .mk-label { letter-spacing: 0; }

/* The instrument at the foot, on the reading side, over the wire's start */
.journey-scope { display: none; }
.journey.is-live .journey-scope { position: absolute; z-index: 3; inset-inline-start: var(--near); inset-block-end: var(--scope-b); display: grid; gap: var(--space-xs); width: 232px; }
.scope-top { padding-inline-start: 10px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.scope-read { white-space: nowrap; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--color-on-night-muted); transition: color 400ms var(--ease-out); }
.journey-scope.is-live .scope-read { color: var(--color-accent-night); }
.scope-sound { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; padding: 0 0.6rem; border: 0; border-radius: var(--radius-pill); background: var(--color-night-2); color: var(--color-on-night-muted); font-size: var(--text-sm); cursor: pointer; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.scope-sound[hidden] { display: none; }
.scope-sound:hover { color: var(--color-on-night); background: var(--color-night-rule); }
.scope-sound[aria-pressed="true"] { color: var(--color-ink); background: var(--color-accent-night); }
.scope-graph { display: block; width: 100%; height: 48px; overflow: visible; }
.scope-wave { fill: none; stroke: var(--color-accent-night); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scope-drop { position: absolute; inset-inline-start: -1px; top: calc(100% - 24px); width: 2px; height: calc(24px + var(--scope-b)); background: var(--color-accent-night); transform: scaleY(0); transform-origin: top; }

/* The power cut: the same last frame without its lights, cut away round the cursor (--mx/--my from the script); the
   flicker as it falls, the light widening to the whole city when it returns */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.journey-dark { z-index: 0; opacity: 0; pointer-events: none; --r: 15vmin; -webkit-mask-image: radial-gradient(circle at var(--mx, 60%) var(--my, 70%), transparent 0, transparent var(--r), #000 calc(var(--r) + 16vmin)); mask-image: radial-gradient(circle at var(--mx, 60%) var(--my, 70%), transparent 0, transparent var(--r), #000 calc(var(--r) + 16vmin)); transition: --r 1100ms var(--ease-out), opacity 500ms var(--ease-out) 700ms; } /* taste-skill-ignore: a mask cutting the light round the cursor, not a fill */
.journey.is-cut[data-step="2"] .journey-dark { opacity: 1; transition: --r 1100ms var(--ease-out); animation: cut 700ms steps(1, end) both; }
.journey.is-relit .journey-dark { --r: 160vmax; }
@keyframes cut { 0% { opacity: 0; } 18% { opacity: 1; } 30% { opacity: 0.25; } 44% { opacity: 1; } 56% { opacity: 0.5; } 70%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .journey.is-live .journey-grain { animation: grain 0.8s steps(5) infinite; }
}
@keyframes grain { 0% { translate: 0 0; } 20% { translate: -6% 4%; } 40% { translate: 5% -7%; } 60% { translate: -3% 8%; } 80% { translate: 7% 2%; } 100% { translate: 0 0; } }

/* Phones and tablets have no page wire (wire.css), so the trace does not drop into one */
@media (max-width: 60rem) { .scope-drop { display: none; } }
@media (max-width: 48rem) {
  .journey.is-live .journey-marks { display: none; }
  .journey-line[data-step="1"] { justify-self: stretch; text-align: start; }
  .journey { --scope-b: 1.25rem; }
  .journey.is-live .journey-scope, .scope-graph { width: 150px; }
}

/* Products catalogue. The head split across the columns; a local bar with the count and the one action stays in reach;
   filters as two segmented groups read from the URL; square tiles, each a photo over its name, specification and source. */


.localbar { position: sticky; top: var(--head-h); z-index: var(--z-sticky); background: var(--color-paper-2); }
.localbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; }
.localbar p { display: flex; align-items: baseline; gap: var(--space-xs); min-width: 0; }
.localbar strong { font-weight: 600; }
.localbar .n { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.localbar .btn { min-height: 44px; padding-inline: var(--space-md); }

.catalogue { display: grid; gap: var(--space-lg); padding-block: var(--space-xl) var(--section-gap-s); }
.cat-search { display: flex; gap: var(--space-xs); max-width: 544px; }
.cat-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-edge); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.cat-search input:hover { border-color: var(--color-ink); }
.cat-search input:focus-visible { outline-color: var(--color-focus); }

/* The filters: segmented groups */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.fgroup { display: flex; flex-wrap: wrap; gap: var(--space-2xs); min-width: 0; padding: var(--space-2xs); border-radius: var(--radius-card); background: var(--color-paper-2); }
.fchip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--space-2xs); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 600; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.fchip:hover { background: var(--color-paper-3); }
.fchip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.fchip[aria-current="true"] { background: var(--color-ink); color: var(--color-paper); }
.fchip .n { color: var(--color-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.fchip[aria-current="true"] .n { color: var(--color-paper-3); }
.fclear { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: color var(--dur-short) var(--ease-out); }
.fclear:hover { color: var(--color-accent-text); }
.fclear:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.fclear .badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-accent-ink); color: var(--color-on-accent); font-variant-numeric: tabular-nums; }

.result-line { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.result-line strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.result-line .on { color: var(--color-muted); }

/* Tiles: a photo over its name, specification and source */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.tile { display: grid; gap: var(--space-sm); align-content: start; }
.tile .sq { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-media); corner-shape: squircle; background: var(--color-stage); }
.tile .sq img { width: 100%; height: 100%; object-fit: cover; }
.sq-name { display: grid; place-items: center; height: 100%; padding: var(--space-lg); text-align: center; color: var(--color-muted); font: var(--display-weight) var(--text-title)/1.1 var(--font-display); }
:lang(ar) .sq-name, :lang(ckb) .sq-name { text-transform: none; font-family: var(--font-arabic); }
.tile-name { display: grid; gap: var(--space-3xs); max-width: none; font-size: var(--text-title); }
.tile-name .spec { font: 400 var(--text-sm)/1.4 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--color-muted); }
.tile-foot { order: 2; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block-start: var(--space-xs); }
.tag { color: var(--color-muted); font-size: var(--text-sm); }
/* The product's type: a stone chip in the steel ink, above its name */
.kind { order: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.range-note { color: var(--color-muted); }
.catalogue > .tiles + .cat-empty { margin-block-start: var(--space-xl); }

.cat-empty { display: grid; gap: var(--space-lg); justify-items: start; padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cat-empty .lead { max-width: 40ch; }
.remove { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

@media (max-width: 75rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 60rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .cat-empty { padding: var(--space-lg); }
  .localbar .btn { padding-inline: var(--space-sm); font-size: var(--text-sm); }
  .fgroup { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fchip, .fclear, .cat-search input { transition: none; } }

/* The live wire (client/wire.ts): a brass sheath with a copper core, drawn by scroll over a faint track that shows the
   route ahead; brass terminals with the trade's icons at each section; the form powers on at the end. Only the stroke
   offset, transforms and colours move. Without script none of it exists. */
main:has(> .wire-layer) { position: relative; }
.wire-layer { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: var(--z-raised); pointer-events: none; }
.wire { position: absolute; inset: 0; overflow: visible; }
.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire-track { stroke: var(--color-accent); stroke-width: 1.5; opacity: 0.22; }
.wire-sheath, .wire-core { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); }
.wire-sheath { stroke: var(--color-accent); stroke-width: 5; }
.wire-core { stroke: var(--color-copper); stroke-width: 1.6; }
.wire-tip { fill: var(--color-copper); stroke: var(--color-accent); stroke-width: 3; }

/* Terminals: a brass ring holding the section's icon; lit (filled brass) once the wire reaches it */
.terminal { position: absolute; inset-block-start: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-accent); transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); } /* taste-skill-ignore: the terminal ring is the wire touching it */
.terminal .icon, .terminal svg { width: 22px; height: 22px; }
.terminal.is-live { background: var(--color-accent); color: var(--color-on-accent); }
.terminal[hidden] { display: none; }

/* The end of the line: the enquiry button takes the current, and the logo's lever throws ON */
html.wire-on .site-head .lm-lever { transform: translateY(10px); transform-box: fill-box; transition: transform var(--dur-long) var(--ease-out); }
html.wire-on.is-powered .site-head .lm-lever { transform: none; }
.form-actions .btn[type="submit"] { position: relative; }
.form-actions .btn[type="submit"]::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; box-shadow: 0 0 0 2px var(--color-accent); opacity: 0; transform: scale(0.92); pointer-events: none; } /* taste-skill-ignore: a one-off ring when the form powers on */
html.is-powered .form-actions .btn[type="submit"]::after { animation: power-ring 1.1s var(--ease-out) 1; }
@keyframes power-ring { 0% { opacity: 1; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.18); } }

/* Phones and tablets: no room for a wire beside the text, so the page reads clean; the hero's trace still runs */
@media (max-width: 60rem) {
  .wire-layer { display: none; }
  .wire-sheath { stroke-width: 3; }
  .wire-core { stroke-width: 1; }
  .wire-tip { r: 3.5; }
}
@media (prefers-reduced-motion: reduce) {
  .terminal, html.wire-on .site-head .lm-lever { transition: none; }
  html.is-powered .form-actions .btn[type="submit"]::after { animation: none; }
}
