/* Hallmark · shape: sunrise over Hawler, held still · genre: editorial · theme: custom · job: try · idea: "the twenty-one-ray Kurdish sun rising over a gold horizon bar" · vibe: "ivory, deep green, citadel gold, a pomegranate red, plain-spoken, Kurdish" · brand: Arena Jewelry (guidelines edition 02, May 2026) · copy: verbatim
 * paper: oklch(97.6% 0.026 96) · accent: oklch(74.8% 0.099 86.1) · pop: oklch(43% 0.15 22) · display: Cardo · body: IBM Plex Sans · hero: two columns, the headline on the reading side and the golden sun behind a live gold bar and three diamonds on the other · nav: a fixed slim bar, clear over the sky and solid ivory after it: the mark, three section links and the app page, three languages · footer: the horizon again with the sun going down, then the links and credits in three columns · imagery: photographs, Wikimedia Commons and Unsplash, natural · product: brand artwork of the app, in the home page panel and the app page hero · signature: the 21-ray golden sun, held still, behind a live gold bar and three diamonds
 * axes: light/roman-serif/chromatic-yellow · posture: ivory paper with green ink; green is kept for the gold stage, the citadel and promise, and the footer; gold is the brand accent and pomegranate red the one signal · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: H, the sun could outshout the headline; kept the head on the still ground under the horizon and dimmed the rays at night */
/* Hallmark · note · the earlier waiver of finding 23 (gold sun on a drenched green page) is retired: on the ivory ground the finding no longer fires; the sun and horizon bar stay line-thin gold */
/* Hallmark · waive 80 · the sun svg is the 21-ray sun of the owner's own logo mark, enlarged · brand geometry, not a drawn scene */
/* Hallmark · answered F20 · the hero is a layered grid (sky, rays, nav, bar, ground), not a wrapping row of items */
/* Hallmark · hero-review: fix · 5 findings · 4 resolved 1 answered with the citadel photograph · finish-review: subagents, four lenses with adversarial check · 16 confirmed · 15 resolved 1 open (own jewellery photographs) */
/* Hallmark · waive 8 · the owner asked for cinematic scroll: one scrubbed photograph, one lit statement, and single reveals · the scroll scenes are the owner's brief, all transform and opacity, still under reduced motion */
/* Hallmark · note · the earlier dismissal of finding 40 (green ink paired with ivory band paper) is retired: the page is ivory with green ink and the finding no longer fires; measured pairs are green on ivory 14.8:1 and ivory on green 14.8:1 */
/* tokens.css and base.css are linked before this file in src/template.html */

/* ---------- shared ---------- */
body { line-height: var(--leading-body); }
h1, h2, h3 { font-weight: 400; letter-spacing: var(--tracking-display); line-height: var(--leading-display); }
.container { max-width: var(--container); }
.defs { position: absolute; }

.skip { 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:focus-visible { top: var(--space-md); }

.su-lit { stop-color: var(--sun-lit); } .su-lit-tip { stop-color: var(--sun-lit-tip); } .su-shade { stop-color: var(--sun-shade); } .su-shade-tip { stop-color: var(--sun-shade-tip); }
.su-hot { stop-color: var(--sun-hot); } .su-body { stop-color: var(--sun-body); } .su-rim { stop-color: var(--sun-rim); } .su-rim-light { stop-color: var(--sun-rim-light); } .su-bounce { stop-color: var(--sun-bounce); }
.au-shine { stop-color: var(--gold-shine); } .au-bright { stop-color: var(--gold-bright); } .au-rich { stop-color: var(--gold-rich); } .au-mid { stop-color: var(--gold-mid); } .au-deep { stop-color: var(--gold-deep); }
.gem { flex-shrink: 0; fill: none; stroke: var(--color-gold); stroke-width: 1; stroke-linejoin: round; }
.roj-rays line { stroke: var(--brand-gold); stroke-width: 1.4; fill: none; }
.roj-gold { fill: var(--brand-gold); }
.roj-ivory { fill: var(--color-mark-a); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border: 1px solid var(--color-btn); border-radius: var(--radius-card); background: var(--color-btn); color: var(--color-btn-ink); font: 500 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); }
.btn:hover { background: var(--color-btn-2); border-color: var(--color-btn-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn--quiet { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-ink); }

.link-btn { min-height: 44px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-accent); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.link-btn:hover { color: var(--color-pop); }
.link-btn:active { transform: translateY(1px); }
.link-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.link-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero: the words on the reading side, the gold, the diamonds and the sun on the other ---------- */
:root { --nav-h: 72px; }
/* the first screen fills the window; --peek is how far short of it the hero would stop, and it is kept at zero.
   The hero is never taller than 100rem: no screen is, and a crawler that renders the page in one very tall window must still reach what follows */
.hero { --hero-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); --note-h: 3rem; --peek: 0px; position: relative; display: grid; grid-template-columns: calc(var(--hero-pad) + clamp(26.5rem, 47.5vw, 44rem)) minmax(0, 1fr) var(--hero-pad); grid-template-rows: var(--nav-h) minmax(0, 1fr) auto auto minmax(0, 1fr); min-height: calc(min(100svh, 100rem) - var(--peek)); overflow: clip; background: var(--color-paper); color: var(--color-ink); }
/* the picture is an upright frame, four wide and five tall, as wide as its column or as tall as the first screen allows; the column ends at the page's own margin,
   so nothing in the picture runs past the top bar's last link; the picture and its caption sit as one piece in the middle of the column */
.hero__art { grid-row: 3; grid-column: 2; justify-self: center; position: relative; display: grid; place-items: center; width: min(100%, calc((min(100svh, 100rem) - var(--peek) - var(--nav-h) - var(--note-h)) * 0.8)); min-width: 0; min-height: 0; aspect-ratio: 4 / 5; container-type: size; }
/* one frame holds the whole 3D scene: the sun, and the bar and the stones standing in front of its lower rays; the still fallback fits it exactly */
/* the light around the sun is the frame's own ground: a soft round glow on the page, as wide as the frame, centred where the scene draws the sun (bar3d.js, SUN) */
.hero__stage { position: relative; height: min(100cqh, 125cqw); aspect-ratio: 4 / 5; background: radial-gradient(50% 40% at 50% 37.1%, color-mix(in oklch, var(--gold-glow) 44%, transparent), color-mix(in oklch, var(--gold-glow) 26%, transparent) 46%, color-mix(in oklch, var(--gold-glow) 8%, transparent) 72%, transparent); }
.ray-ridge { fill: none; stroke: var(--gold-shine); stroke-width: 0.3; stroke-linecap: round; }
/* the sun is still; its rays only fade in once */
.js .rays > g { animation: ray-in var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes ray-in { from { opacity: 0; } to { opacity: 1; } }
/* a quiet caption tucked under the picture, on the picture's own centre line */
.hero__note { grid-row: 4; grid-column: 2; place-self: start center; min-height: var(--note-h); font-size: var(--text-xs); line-height: 1.4; text-align: center; color: var(--color-quiet); }
/* the invitation to drag shows only while the live model is running */
.hero__hint { display: none; }
.hero:has(.is-live) .hero__hint { display: inline; }

.topbar { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); background: var(--color-paper); color: var(--color-ink); box-shadow: 0 1px 0 var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.js .topbar:not(.is-stuck) { background: transparent; box-shadow: none; }
.hero__navspace { grid-row: 1; grid-column: 1 / -1; }
/* one line, set in the middle of the bar; its two lists stand on one baseline, whatever script each label is in */
.nav { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 0 var(--space-xl); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; align-self: center; gap: var(--space-sm); margin-inline-end: auto; color: var(--color-word); text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.brand__mark { flex-shrink: 0; }
.brand__word { font: 400 var(--text-xl)/1 var(--font-wordmark); letter-spacing: 0.3em; text-transform: uppercase; }
.nav ul { display: flex; align-items: baseline; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav a:not(.brand):hover { color: var(--color-pop); }
.nav a:not(.brand):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav a[aria-current] { color: var(--color-pop); }
.nav .nav__langs { padding-inline-start: var(--space-lg); border-inline-start: 1px solid var(--color-rule); }
.nav__langs a[lang="ckb"], .nav__langs a[lang="ar"] { font-family: var(--font-naskh); font-size: var(--text-md); }


.hero__bar { position: absolute; inset: 0; z-index: var(--z-raised); touch-action: pan-y; cursor: grab; }
.hero__bar:active { cursor: grabbing; }
.hero__bar canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* the still picture, 1280 by 1600 px so it stays sharp on a 2x screen; the PNG is for browsers without WebP */
.hero__bar:not(.is-live) { background: url("./assets/bar-poster.png?v=160bae892d") center / contain no-repeat; background-image: image-set(url("./assets/bar-poster.webp?v=ce1697975b") type("image/webp"), url("./assets/bar-poster.png?v=160bae892d") type("image/png")); }
.hero__bar canvas:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

.ground { grid-row: 2 / -1; grid-column: 1; align-self: center; position: relative; z-index: var(--z-raised); display: grid; justify-items: start; gap: var(--space-lg); padding-block: var(--space-xl) var(--space-3xl); padding-inline: var(--hero-pad) var(--space-lg); }
.ground h1 { font-size: var(--text-hero); }
/* a short ingot under the headline: the gold bar again, as a rule */
.ingot { width: var(--space-3xl); height: var(--ingot); background: linear-gradient(to bottom, var(--gold-shine), var(--gold-bright) 30%, var(--gold-mid) 70%, var(--gold-deep)); }
.lede { max-width: 30ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.ground__act { margin-block-start: var(--space-xs); }

/* ---------- bands ---------- */
.band { padding-block: var(--section-gap); background: var(--color-paper); color: var(--color-ink); }
.band h2 { font-size: var(--text-section); max-width: 22ch; }
.band--alt { background: var(--color-paper-2); color: var(--color-ink); }
.note-sm, .panel__text .note-sm { font-size: var(--text-sm); color: var(--color-muted); }
.lead { max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
:lang(ckb) .lead, :lang(ar) .lead { line-height: var(--leading-body); }

/* twenty-one rays */
.story { padding-block-start: var(--section-gap-s); }
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.numeral { grid-column: 1 / span 6; font: 400 var(--text-numeral)/0.74 var(--font-wordmark); letter-spacing: -0.04em; color: var(--color-pop); font-variant-numeric: lining-nums; }
.story__text { grid-column: 7 / -1; display: grid; gap: var(--space-lg); padding-block-end: var(--space-md); }

/* gold by the gram */
.karat { width: 100%; border-collapse: collapse; text-align: start; }
.karat caption { padding-block-end: var(--space-md); text-align: start; font-size: var(--text-sm); color: var(--color-muted); }
.karat th, .karat td { padding-block: var(--space-lg); padding-inline: 0 var(--space-lg); border-block-start: 1px solid var(--color-rule); text-align: start; vertical-align: baseline; font-weight: 400; }
.karat thead th { padding-block: var(--space-sm); border-block-start: 0; font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.karat tbody th { width: 26%; font: 400 var(--text-title)/1.2 var(--font-display); }
.karat td.num { width: 30%; font: 400 var(--text-section)/1 var(--font-wordmark); color: var(--color-accent); }
.karat tbody td:last-child { font-size: var(--text-lg); color: var(--color-ink-2); }
.karat tbody tr:last-child > * { border-block-end: 1px solid var(--color-rule); }
.karat tbody tr:first-child > * { border-block-start-color: var(--color-pop); }
.note { margin-block-start: var(--space-lg); font-size: var(--text-md); color: var(--color-muted); }

/* the goldsmiths' work */
.tile__photo > img, .look__photo > img, .hawler__photo > img, .panel__visual > img, .shot > img,
.tile__photo > picture > img, .look__photo > picture > img, .hawler__photo > picture > img, .panel__visual > picture > img, .shot > picture > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

/* the shelf under the first screen: what the app holds; the one studio picture on a cold grey ground takes the page's ivory */
.tile__photo[data-slot="rings"]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--color-paper); mix-blend-mode: multiply; pointer-events: none; }
.tile:hover .tile__name { color: var(--color-pop); }
/* one line under the shelf: the photographs are stand-ins */
.tiles__note { grid-column: 1 / -1; padding-inline: var(--gutter); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); padding-block: var(--space-xs) var(--space-xl); background: var(--color-paper); }
.tile { display: grid; gap: var(--space-md); color: var(--color-ink); text-decoration: none; text-align: center; }
.tile__photo { display: block; aspect-ratio: 4 / 5; }
.tile__name { font: 400 var(--text-title)/1.2 var(--font-display); transition: color var(--dur-short) var(--ease-out); }
.tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.tile:focus-visible .tile__photo > img, .tile:focus-visible .tile__photo > picture > img { outline: 2px solid var(--color-focus); outline-offset: -2px; }
/* the one tile without a photograph: the gram, set as a figure */
.tile__figure { display: grid; place-items: center; background: var(--color-paper-2); font: 400 clamp(2.75rem, 7vw, 7.5rem)/1 var(--font-wordmark); letter-spacing: -0.03em; word-spacing: -0.12em; font-variant-numeric: lining-nums; color: var(--color-accent); white-space: nowrap; }

/* a photograph set beside words. .on-paper is a studio picture taken on white: it is shown whole and takes the colour of the band it stands on */
.band { --tone: var(--color-paper); }
.band--alt, .tiles { --tone: var(--color-paper-2); }
.shot { display: block; aspect-ratio: 3 / 2; width: 100%; border-radius: var(--radius-card); }
.on-paper { background: var(--tone, var(--color-paper)); }
.on-paper > img, .on-paper > picture > img { object-fit: contain; mix-blend-mode: multiply; outline: 0; }
/* a text link that leads on to another page or section */
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.more:hover { color: var(--color-pop); }
.more:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
:lang(ckb) .more, :lang(ar) .more { text-underline-offset: 0.5em; }

/* a product set in the middle of its band */
.pitch__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); max-width: none; }

/* one large picture beside its words */
.look { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.look__photo { grid-column: 1 / span 7; aspect-ratio: 5 / 6; max-height: 820px; width: 100%; border-radius: var(--radius-card); }
.look__text { grid-column: 9 / -1; display: grid; gap: var(--space-lg); }
/* two small pictures under the words */
.look__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.look__pair .shot { aspect-ratio: 1; }

/* gold in small measures: the figure and the words on the reading side, three points on the other */
.gram__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.gram__text { grid-column: 1 / span 6; display: grid; justify-items: start; gap: var(--space-lg); }
.gram__figure { font: 400 var(--text-figure)/1 var(--font-wordmark); letter-spacing: -0.03em; word-spacing: -0.12em; margin-block-start: -0.14em; padding-block-end: 0.2em; font-variant-numeric: lining-nums; color: var(--color-accent); white-space: nowrap; }
/* the three points stand in one column beside the words, each under a gold hairline */
.values.gram__points { grid-column: 8 / -1; grid-template-columns: minmax(0, 1fr); margin: 0; }
.values.gram__points > div { padding-block-end: var(--space-lg); padding-inline: 0; border-inline-start: 0; }
.values.gram__points > div:last-child { padding-block-end: 0; }

/* two panels side by side */
.duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.panel { display: grid; grid-template-rows: auto 1fr; gap: var(--space-xl); padding-block-start: var(--space-2xl); background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-card); overflow: clip; }
.panel__text { display: grid; justify-items: center; gap: var(--space-md); padding-inline: var(--space-xl); text-align: center; }
.panel__text h2 { max-width: 18ch; font-size: var(--text-section); }
.panel__text p { max-width: 36ch; color: var(--color-ink-2); }
.panel__stores { display: grid; gap: var(--space-2xs); }
.panel__visual { align-self: end; margin: 0; aspect-ratio: 3 / 2; width: 100%; }
.panel__visual--app { background: none; aspect-ratio: 2600 / 1680; }
/* the photograph takes whatever height its panel has left, so both panels are filled alike */
.panel__visual:not(.panel__visual--app) { align-self: stretch; }
.panel__visual--app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* the gold band: what a gram is, in three statements */
.stage { position: relative; background: var(--color-paper-3); color: var(--color-ink); padding-block: var(--section-gap-s); }
.stage__copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--space-2xl) var(--gap-columns); }
.step { display: grid; gap: var(--space-md); max-width: 30rem; }
.step h2 { font-size: var(--text-section); }
.step__figure { font: 400 var(--text-figure)/0.8 var(--font-wordmark); font-variant-numeric: lining-nums; color: var(--color-accent); }
.step__title { max-width: 22ch; font: 400 var(--text-2xl)/1.2 var(--font-display); }

/* scroll scenes: every one is visible and still without script or with reduced motion */
.js.motion [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js.motion [data-reveal].is-in { opacity: 1; transform: none; }
.js.motion [data-stagger] > *, .js.motion [data-stagger] > tbody > tr { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js.motion [data-stagger].is-in > *, .js.motion [data-stagger].is-in > tbody > tr { opacity: 1; transform: none; }
.js.motion .hawler__photo > img, .js.motion .hawler__photo > picture > img { transform: scale(calc(1.16 - 0.16 * var(--p, 1))); }
.js.motion .hawler__text h2 { transform: translateY(calc((1 - var(--p, 1)) * 60px)); }
.js.motion [data-lines] span { opacity: calc(0.2 + 0.8 * var(--o, 1)); }
/* a window taller than any screen is a crawler rendering the whole page at once: nothing waits for a scroll that never comes */
@media (min-height: 2000px) { .js.motion [data-reveal], .js.motion [data-stagger] > *, .js.motion [data-stagger] > tbody > tr { opacity: 1; transform: none; } }

/* from Hawler */
.hawler { position: relative; color: var(--color-ink); background: var(--color-paper-3); }
.hawler__photo { height: clamp(520px, 86svh, 860px); }
.hawler__text { position: absolute; inset: auto 0 0; z-index: 2; padding-block: var(--space-4xl) var(--space-2xl); background: linear-gradient(to top, color-mix(in oklch, var(--color-paper-3) 92%, transparent), transparent); }
.hawler__text h2 span, .promise h2 span { display: block; }
.hawler__text h2 { max-width: none; font-size: var(--text-statement); }
.hawler__text p { margin-block-start: var(--space-md); font-size: var(--text-md); color: var(--color-ink-2); }

/* the promise */
.promise h2 { max-width: none; font-size: var(--text-statement); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--space-3xl) 0 0; }
.values > div { padding-block-start: var(--space-lg); padding-inline: var(--space-lg); border-block-start: 1px solid var(--color-gold); border-inline-start: 1px solid var(--color-rule); }
.values > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.values > div:last-child { padding-inline-end: 0; }
.values dt { display: grid; gap: var(--space-sm); justify-items: start; font: 400 var(--text-title)/1.2 var(--font-display); color: var(--color-accent); }
.values dd { margin: var(--space-sm) 0 0; color: var(--color-ink-2); }

/* the app */
.fill { color: var(--color-ink-2); font-size: var(--text-md); }

[dir="rtl"] .numeral, [dir="rtl"] .step__figure { text-align: right; }
:lang(ckb) [lang="en"]:not(.brand__word):not(.numeral):not(.gram__figure):not(.tile__figure), :lang(ar) [lang="en"]:not(.brand__word):not(.numeral):not(.gram__figure):not(.tile__figure) { font-family: var(--font-latin); }
/* the Latin brand name in a naskh sentence: the page's Latin face, sized to sit level with the Arabic letters */
.lede .latin { font-size: 0.86em; }
:lang(ckb) .link-btn, :lang(ar) .link-btn { text-underline-offset: 0.5em; }
.nowrap { white-space: nowrap; }
[data-credits] bdi { display: block; }
[dir="rtl"] [data-credits] bdi { text-align: right; }

/* night */
.foot { background: var(--color-paper); color: var(--color-ink); padding-block-end: var(--space-2xl); }
.foot__sky { position: relative; height: clamp(9rem, 20vw, 17rem); overflow: clip; }

.foot__sun { position: absolute; left: 76%; top: 100%; width: min(70vw, 640px); height: min(70vw, 640px); overflow: visible; transform: translate(-50%, -30%); }
.foot__bar { position: relative; height: var(--ingot); background: linear-gradient(to bottom, var(--gold-bright), var(--gold-mid) 60%, var(--gold-deep)); }
/* one cut stone resting on the bar, across from the setting sun */
.foot__gem { position: absolute; left: 0; bottom: calc(100% + var(--space-xs)); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); padding-block: var(--space-2xl); }
.foot__brand { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.foot__tagline { font: 400 var(--text-section)/var(--leading-display) var(--font-display); max-width: 20ch; }
.foot__links { grid-column: span 3; display: grid; align-content: start; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot__links a:hover { color: var(--color-pop); }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__links a[aria-current] { color: var(--color-pop); }
.foot__langs a[lang="ckb"], .foot__langs a[lang="ar"] { font-family: var(--font-naskh); }
.foot__small { display: grid; gap: var(--space-xs); padding-block-start: var(--space-lg); border-block-start: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.foot__small p { max-width: none; }
.foot__small a { color: inherit; }
.foot__small a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

@media (max-width: 60rem) {
  .numeral, .story__text, .look__photo, .look__text, .foot__brand { grid-column: 1 / -1; }
  .duo__grid { grid-template-columns: minmax(0, 1fr); }
  .story__grid { row-gap: var(--space-xl); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .values > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .foot__links { grid-column: span 6; }
  .karat thead { display: none; }
  .karat tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); padding-block: var(--space-md); border-block-start: 1px solid var(--color-rule); }
  .karat tbody tr:first-child { border-block-start-color: var(--color-pop); }
  .karat tbody th, .karat tbody td { width: auto; padding: 0; border: 0; }
  .karat tbody tr:last-child > * { border-block-end: 0; }
  .karat tbody td:last-child { grid-column: 1 / -1; font-size: var(--text-md); }
  .karat tbody td.num { text-align: end; }
  .karat tbody td.num::after { content: attr(data-label); display: block; white-space: nowrap; margin-block-start: var(--space-2xs); font: 400 var(--text-xs)/var(--leading-body) var(--font-body); color: var(--color-muted); }
}
@media (max-width: 40rem) {
  /* the whole fan stays inside the page's margin */
  .foot__sun { left: 64%; width: 60vw; height: 60vw; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .panel__text { padding-inline: var(--space-md); }
  .values > div { padding-inline: 0; border-inline-start: 0; }
}

/* where the four links no longer fit on one line, one stays beside the languages: the app page; the narrowest phones keep the languages only */
@media (max-width: 56rem) { .nav .nav__links li:not(.nav__app) { display: none; } }
@media (max-width: 23.4rem) { .nav .nav__links { display: none; } }
@media (max-width: 60rem) {
  .stage__copy { grid-template-columns: minmax(0, 1fr); }
  .step h2 { font-size: var(--text-display-s); }
  .step__title { font-size: var(--text-xl); }
  .step__figure { font-size: clamp(5.5rem, 26vw, 7rem); margin-block-end: var(--space-sm); }
}
@media (max-width: 40rem) {
  .nav { gap: var(--space-md); }
  .nav ul { gap: var(--space-md); }
  .nav .nav__langs { padding-inline-start: 0; border-inline-start: 0; }
  .brand__word { display: none; }
}
/* narrow screens: the picture above the words, and the first screen holds the picture, the headline, the sentence and the button whatever its height */
@media (max-width: 60rem) {
  .hero { --peek: 0px; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--nav-h) minmax(9.5rem, 1fr) auto auto; min-height: min(100svh, 100rem); }
  .hero__art, .ground, .hero__note { grid-column: 1; }
  .hero__art { grid-row: 2; justify-self: stretch; width: auto; aspect-ratio: auto; }
  .ground { grid-row: 3; gap: var(--space-md); padding-block: var(--space-xs) var(--space-lg); padding-inline: var(--gutter); }
  .hero__note { grid-row: 4; place-self: start; min-height: 0; padding-inline: var(--gutter); padding-block-end: var(--space-lg); text-align: start; }
  :lang(ckb) .ground h1, :lang(ar) .ground h1 { line-height: 1.35; }
}
/* tablets held upright: the words sit on the picture's centre line */
@media (min-width: 40.01rem) and (max-width: 60rem) {
  .ground { justify-items: center; text-align: center; padding-block-end: var(--space-md); }
  .ground h1 { font-size: calc(var(--text-hero) * 1.3); }
  .hero__note { justify-self: center; padding-block-end: var(--space-xl); }
}
@media (max-width: 40rem) {
  :root { --nav-h: 64px; }
  /* on a short phone the caption drops just below the first screen, so the button stays on it */
  @media (max-height: 40rem) { .hero { min-height: calc(100svh + 3rem); } }
}
@media (max-width: 21.5rem) {
  .ground h1 { font-size: 2.125rem; }
  :lang(ckb) .ground h1, :lang(ar) .ground h1 { font-size: 2rem; }
}
/* a phone on its side: the two columns again, since there is no height to stack them */
@media (max-width: 60rem) and (orientation: landscape) and (max-height: 34rem) {
  :root { --nav-h: 56px; }
  .hero { --note-h: 1.75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: var(--nav-h) minmax(0, 1fr) auto auto minmax(0, 1fr); min-height: 100svh; }
  .hero__art { grid-row: 3; grid-column: 2; justify-self: center; width: min(100%, calc(100svh - var(--nav-h) - var(--note-h))); aspect-ratio: 1; }
  .ground { grid-row: 2 / -1; justify-items: start; text-align: start; gap: var(--space-sm); padding-block: 0 var(--space-md); padding-inline: var(--gutter) var(--space-md); }
  .ground h1 { font-size: 2.25rem; }
  :lang(ckb) .ground h1, :lang(ar) .ground h1 { font-size: 2rem; }
  .hero__note { grid-row: 4; grid-column: 2; place-self: start center; min-height: var(--note-h); padding: 0; text-align: center; }
}

/* ---------- the app page ---------- */
/* its first screen: the words on the reading side, the brand artwork of the screens on the other */
.apphero { background: var(--color-paper); color: var(--color-ink); }
.apphero .hero__navspace { height: var(--nav-h); }
.apphero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: center; min-height: calc(min(100svh, 58rem) - var(--nav-h)); padding-block: var(--space-xl) var(--space-3xl); }
.apphero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.apphero__text h1 { font-size: var(--text-hero); }
.apphero__text .lede { max-width: 34ch; }
.apphero__art { display: grid; gap: var(--space-sm); margin: 0; }
.apphero__art img { width: 100%; }

/* words on one side, a photograph on the other; --flip changes sides */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.feature__text { grid-column: 1 / span 5; grid-row: 1; display: grid; justify-items: start; gap: var(--space-lg); }
.feature__photo { grid-column: 7 / -1; grid-row: 1; display: grid; gap: var(--space-sm); margin: 0; }
.feature--flip .feature__text { grid-column: 8 / -1; }
.feature--flip .feature__photo { grid-column: 1 / span 6; }
.shot--ingots { aspect-ratio: 2400 / 1450; }

/* three numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: var(--space-3xl) 0 0; padding: 0; list-style: none; }
.steps > li { display: grid; align-content: start; gap: var(--space-sm); padding-block-start: var(--space-lg); border-block-start: 1px solid var(--color-gold); }
.steps h3 { font-size: var(--text-2xl); line-height: 1.2; }
.steps p { max-width: 45ch; color: var(--color-ink-2); }

/* a short strip: the app icon, a heading, two sentences */
.prefs { padding-block: var(--section-gap-s); }
.prefs__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: center; }
.prefs__icon { grid-column: 1 / span 2; width: clamp(5rem, 9vw, 8.5rem); border-radius: var(--radius-card); }
.prefs h2 { grid-column: 3 / span 5; }
.prefs__text { grid-column: 8 / -1; display: grid; gap: var(--space-md); }

/* the closing band: where the store links will stand */
.get__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.get h2 { grid-column: 1 / span 6; max-width: none; }
.get__stores { grid-column: 7 / -1; display: grid; margin: 0; padding: 0; list-style: none; }
.get__stores li { padding-block: var(--space-lg); border-block-start: 1px solid var(--color-rule); font: 400 var(--text-title)/1.3 var(--font-display); color: var(--color-ink); }
.get__stores li:first-child { border-block-start-color: var(--color-gold); }
.get__stores .get__note { padding-block-end: 0; font: 400 var(--text-sm)/var(--leading-body) var(--font-body); color: var(--color-muted); }

@media (max-width: 60rem) {
  .gram__text, .values.gram__points, .appgram__head, .feature .feature__text, .feature .feature__photo, .prefs__icon, .prefs h2, .prefs__text, .get h2, .get__stores { grid-column: 1 / -1; grid-row: auto; }
  .apphero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--space-lg) var(--space-2xl); }
  .steps { grid-template-columns: minmax(0, 1fr); margin-block-start: var(--space-2xl); }
}
@media (min-width: 40.01rem) and (max-width: 60rem) {
  .apphero__text { justify-items: center; text-align: center; }
}
@media (max-width: 40rem) {
  /* the gold tile runs the full width above two rows of two */
  .tile--wide { grid-column: 1 / -1; }
  .tile--wide .tile__photo { aspect-ratio: 2 / 1; }
  .tile__figure { font-size: 5rem; }
}

@media print { .topbar { position: absolute; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, [data-stagger] > tbody > tr { transition: none; }
  .js .rays > g { animation: none; }
  .btn, .link-btn, .more, .nav a:not(.brand), .foot__links a, .topbar, .tile__name { transition: none; }
}

/* ---------- the pages' plain answers: about, the karat guide's words, questions and answers, the breadcrumb, the date ---------- */
/* a heading on the reading side and its words on the other, on the same columns as the 21-ray story above */
.about { padding-block: var(--section-gap-s); }
.about__grid, .karat__head, .karat__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: baseline; }
.about__grid h2, .karat__head h2, .karat__note { grid-column: 1 / span 5; }
.about__text, .karat__head .lead, .units { grid-column: 7 / -1; }
.about__text { display: grid; gap: var(--space-lg); }

/* the app page, "start with one gram": the figure over its heading on the reading side, the words on the other */
.appgram { padding-block: var(--section-gap-s); }
.appgram .about__grid { align-items: end; }
.appgram__head { grid-column: 1 / span 5; display: grid; justify-items: start; gap: var(--space-lg); }
.appgram .about__text { padding-block-end: var(--space-xs); }

/* the karat guide: its heading and definition above the table, a footnote and the weight units below it */
.karat__head { margin-block-end: var(--space-2xl); }
.karat td.pct { font: 400 var(--text-2xl)/1 var(--font-wordmark); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
/* the words beside a percentage ("or more") are set in the page's naskh, not in a system face */
:lang(ckb) .karat td.pct, :lang(ar) .karat td.pct { font-family: "Cardo", var(--font-naskh); }
@media (min-width: 60.01rem) {
  .karat tbody th { width: 22%; }
  .karat td.num { width: 27%; }
  .karat td.pct { width: 19%; }
}
.karat__foot { margin-block-start: var(--space-2xl); }
.karat__note { max-width: 60ch; color: var(--color-muted); }
.units { display: grid; gap: var(--space-sm); }
.units h3 { font-size: var(--text-xl); line-height: 1.25; }
.units p { color: var(--color-ink-2); }

/* questions and answers: every answer is on the page, two columns on a wide screen, each pair under a hairline */
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2xl); margin-block-start: var(--space-3xl); }
.qa { display: grid; align-content: start; gap: var(--space-sm); padding-block: var(--space-lg) var(--space-xl); border-block-start: 1px solid var(--color-rule); }
.qa:nth-child(-n+2) { border-block-start-color: var(--color-gold); }
.qa h3 { font-size: var(--text-xl); line-height: 1.25; }
.qa p { max-width: 60ch; color: var(--color-ink-2); }
:lang(ckb) .qa h3, :lang(ar) .qa h3, :lang(ckb) .units h3, :lang(ar) .units h3 { line-height: 1.5; }

/* the app page: where the page stands in the site, above its headline; then the button and the quiet link beside it */
.crumb { margin-block-end: calc(-1 * var(--space-sm)); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-xs); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.crumb li + li::before { content: "/"; content: "/" / ""; margin-inline-end: var(--space-xs); color: var(--color-quiet); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.crumb a:hover { color: var(--color-pop); }
.crumb a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
:lang(ckb) .crumb a, :lang(ar) .crumb a { text-underline-offset: 0.5em; }
.apphero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); }

/* the foot of the page: the copyright line and the date the words were last changed */
.foot__credits summary { cursor: pointer; width: max-content; }
.foot__credits summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__credits p { margin-block-start: var(--space-xs); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); }

@media (max-width: 60rem) {
  .about__grid h2, .about__text, .karat__head h2, .karat__head .lead, .karat__note, .units { grid-column: 1 / -1; }
  .karat__head { margin-block-end: var(--space-xl); }
  .karat__foot { margin-block-start: var(--space-xl); row-gap: var(--space-xl); }
  .faq__list { grid-template-columns: minmax(0, 1fr); margin-block-start: var(--space-2xl); }
  .qa:nth-child(2) { border-block-start-color: var(--color-rule); }
  /* the karat table, stacked: the karat with its use directly under it on the reading side, the two figures with their short labels on the other */
  .karat tbody tr { row-gap: var(--space-xs); }
  .karat tbody td:last-child { grid-column: 1; grid-row: 2 / span 2; align-self: start; }
  .karat tbody td.num { grid-column: 2; grid-row: 1 / span 2; width: auto; }
  .karat tbody td.pct { grid-column: 2; grid-row: 3; text-align: end; font-size: var(--text-xl); }
  .karat tbody td.pct::after { content: attr(data-label); display: block; white-space: nowrap; margin-block-start: var(--space-2xs); font: 400 var(--text-xs)/var(--leading-body) var(--font-body); color: var(--color-muted); }
}
@media (max-width: 40rem) {
  /* the app page's first screen on a phone: set closer, the quiet link beside the button, so the artwork is on it */
  .apphero__grid { row-gap: var(--space-lg); }
  .apphero__text { gap: var(--space-md); }
  .apphero__actions .btn { padding-inline: var(--space-lg); }
  .faq__list { margin-block-start: var(--space-xl); }
  .qa { gap: var(--space-xs); padding-block: var(--space-md) var(--space-lg); }
}

/* ---------- the coin story: its own section (#process, coin3d.js) ----------
   At rest (no WebGL, reduced motion, before the scene is up) the section is a plain band listing the five stages. When the scene is live
   (.is-live) the section is several screens tall and its inner part stays pinned while the visitor scrolls: the picture on one side, the
   stages on the other, the current stage (.is-on) at full strength and the others quiet; a thin gold line under the picture shows the way through. */
.process { position: relative; background: var(--color-paper-2); color: var(--color-ink); }
.process__pin { padding-block: var(--section-gap); }
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.process__text { display: grid; gap: var(--space-lg); max-width: 38rem; }
.process__steps { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.process__step { display: grid; gap: var(--space-2xs); padding-block-start: var(--space-sm); border-block-start: 1px solid var(--color-rule); }
.process__step h3 { font: 500 var(--text-md)/1.3 var(--font-body); color: var(--color-ink); }
.process__step p { margin-block-start: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.process__art { display: none; }
.process.is-live { height: 460svh; }
.process.is-live .process__pin { position: sticky; top: 0; height: 100svh; padding-block: calc(var(--nav-h) + var(--space-lg)) var(--space-lg); display: grid; align-items: center; overflow: clip; }
.process.is-live .process__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.process.is-live .process__art { display: grid; gap: var(--space-md); justify-items: center; }
.process.is-live .process__art canvas { display: block; width: min(100%, calc(100svh - var(--nav-h) - 6rem)); aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, var(--color-ink) 78%, transparent); mask-image: radial-gradient(closest-side, var(--color-ink) 78%, transparent); }
.process__track { width: min(100%, calc(100svh - var(--nav-h) - 6rem)); height: 2px; background: var(--color-rule); }
.process.is-live .process__step:not(.is-on) p { display: none; }
.process.is-live .process__steps { gap: var(--space-xs); }
.process__track span { display: block; height: 100%; width: calc(var(--progress, 0) * 100%); background: var(--color-gold); }
.process.is-live .process__step { opacity: 0.4; transition: opacity var(--dur-short) var(--ease-out); }
.process.is-live .process__step.is-on { opacity: 1; }
.process.is-live .process__step.is-on h3 { color: var(--color-pop); }
@media (max-width: 60rem) {
  .process.is-live .process__pin { align-items: start; } /* the picture stays put while the step text below it changes length */
  .process.is-live .process__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: start; }
  .process.is-live .process__art { order: -1; }
  .process.is-live .process__art canvas, .process.is-live .process__track { width: min(100%, 40svh); }
  .process.is-live .process__lede, .process.is-live .process__note { display: none; }
  .process.is-live .process__steps { gap: var(--space-2xs); }
  .process.is-live .process__step { padding-block-start: var(--space-2xs); }
  .process.is-live .process__text { gap: var(--space-sm); }
  .process.is-live h2 { font-size: var(--text-xl); }
}

/* the Qaysari Bazaar: a picture a quarter of the container wide, on the side away from the reading start, its foot a clear step above the top of
   the heading (so it stands over the words, not beside them, and no word moves); the citadel stays the full-bleed picture behind */
@media (min-width: 40.01rem) { .hawler__text { padding-block-start: var(--space-2xl); } }
.hawler__text .container { display: flex; flex-direction: column; }
.hawler__inset { align-self: flex-end; width: min(25%, calc((min(86svh, 860px) - 26rem) * 1.37)); aspect-ratio: 2520 / 1836;
  margin-block-end: var(--space-lg); box-shadow: 0 14px 34px color-mix(in oklch, var(--color-paper-3) 55%, transparent); }
.hawler__text h2 { position: relative; }
/* on a phone there is no room for it beside the words or in the photograph's height: it is left out */
@media (max-width: 40rem) { .hawler__inset { display: none; } }


