/* «حلويات نموذج» Namoothaj Sweets: a SAMPLE brand identity by Khalesni, for a made-up dessert shop.
   It has its own palette and fonts on purpose, to show a style that is different from the other samples
   and from Khalesni's own site. Each colour is named after an ingredient: rose (ورد), cardamom green (هيل),
   milk (حليب), pistachio (فستق) and saffron (زعفران). Fonts: Lalezar for the logo and headings,
   Readex Pro for text (both free from Google Fonts). Khalesni's colours appear only in the sample banner
   and the note at the bottom, because those are Khalesni speaking.
   The logo, packaging, posts, card and menu are drawn in HTML/CSS and inline SVG. "Artboards" (logo tiles,
   posts, business cards) are size containers, so everything inside them scales together like a picture.
   The packaging colour switch is CSS only (:has() on the radio buttons); without it the rose colourway shows.
   Contrast (WCAG 2), measured: cardamom on milk 11.1:1, on milk-2 9.9:1, on rose 5.9:1, on rose-tint 9.4:1,
   on pistachio 7.0:1, on pistachio-tint 10.2:1, on saffron 6.0:1, on saffron-tint 9.9:1;
   milk on cardamom 11.1:1, on cardamom-2 8.6:1; rose on cardamom 5.9:1, on cardamom-2 4.6:1;
   pistachio on cardamom 7.0:1; soft ink on milk 6.3:1, on milk-2 5.6:1, on pistachio-tint 5.7:1,
   on saffron-tint 5.6:1. */

:root {
  --milk: #FFF5F2;
  --milk-2: #F7E6E0;
  --rose: #F0A0B5;
  --rose-tint: #FBDDE4;
  --pista: #B8CF86;
  --pista-tint: #E9F0D7;
  --saffron: #F2A93B;
  --saffron-tint: #FCE7C4;
  --cardamom: #1F3D2B;
  --cardamom-2: #2B4F3A;
  --cardamom-3: #173023;
  --ink-soft: #4A6153;
  --k-ink: #06323A;   /* Khalesni: sample banner and note only */
  --k-teal: #0E6670;
  --display: "Lalezar", "Readex Pro", "Geeza Pro", system-ui, sans-serif;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  /* The brand pattern: one rose rosette per tile, repeated in a row */
  --rosette-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cg fill='%23F0A0B5'%3E%3Ccircle cx='15' cy='12' r='4.6'/%3E%3Ccircle cx='21.13' cy='12.00' r='3.07'/%3E%3Ccircle cx='19.33' cy='16.33' r='3.07'/%3E%3Ccircle cx='15.00' cy='18.13' r='3.07'/%3E%3Ccircle cx='10.67' cy='16.33' r='3.07'/%3E%3Ccircle cx='8.87' cy='12.00' r='3.07'/%3E%3Ccircle cx='10.67' cy='7.67' r='3.07'/%3E%3Ccircle cx='15.00' cy='5.87' r='3.07'/%3E%3Ccircle cx='19.33' cy='7.67' r='3.07'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--cardamom);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 400; line-height: 1.3; text-wrap: balance; font-synthesis: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
b, strong { font-weight: 700; }
a { color: var(--cardamom); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
:focus-visible { outline: 3px solid var(--cardamom); outline-offset: 3px; }
.sample-banner :focus-visible, .sw-versions :focus-visible, .sw-pack :focus-visible, .sw-footer :focus-visible { outline-color: var(--rose); }
[id] { scroll-margin-top: 16px; }
@media (min-width: 900px) { [id] { scroll-margin-top: 84px; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 12px; background: var(--cardamom); color: var(--milk);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Sample banner (Khalesni's note) ---------- */
.sample-banner { background: var(--k-ink); color: #fff; font-size: 0.92rem; }
.banner-inner { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.55rem; }
.banner-inner img { flex: none; width: 34px; height: 34px; padding: 4px; border-radius: 10px; background: #fff; }
.banner-inner p { flex: 1; margin: 0; line-height: 1.5; }
.banner-inner p > span { display: block; font-size: 0.86em; opacity: 0.88; }
.banner-inner a {
  flex: none;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.banner-inner a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.sw-header { position: relative; z-index: 40; background: var(--milk); }
@media (min-width: 900px) { .sw-header { position: sticky; top: 0; } }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.sw-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-inline-end: auto; color: var(--cardamom); text-decoration: none; }
.sw-logo-mark { flex: none; width: 42px; height: 42px; --bowl: var(--cardamom); --dot: var(--rose); }
.sw-logo-text b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.sw-logo-text small { display: block; color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; line-height: 1.3; }
.sw-nav { display: none; }
@media (min-width: 900px) {
  .sw-nav { display: block; }
  .sw-nav ul { display: flex; gap: 0.15rem; }
  .sw-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.8rem;
    font-weight: 600; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 0.5em;
  }
  .sw-nav a:hover { text-decoration-line: underline; }
}

/* ---------- Lockups: the logo, built from the mark and live text. 1em = the wordmark size ---------- */
.lockup { color: var(--cardamom); --bowl: var(--cardamom); --dot: var(--rose); }
/* Horizontal: the mark is 1.5em = 12u, so u = 1/8 em and the name is 8u. The bowl's baseline (10u) sits on the name's
   baseline (vertical-align: -2u), and the 1.5u gap plus the mark's 1.5u side bearing make a 3u space: one rosette wide. */
.lockup-h { display: inline-block; white-space: nowrap; line-height: 1; }
.lockup-h .lk-mark { display: inline-block; vertical-align: -0.25em; margin-inline-end: 0.1875em; }
.lockup-h .lk-words { display: inline-flex; vertical-align: baseline; }
.lockup-v { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.lk-mark { flex: none; width: 1.5em; height: 1.5em; overflow: visible; }
.lockup-v .lk-mark { width: 1.9em; height: 1.9em; margin-bottom: 0.05em; }
.lk-words { display: flex; flex-direction: column; align-items: flex-start; }
.lockup-h .lk-en { margin-top: 0.1em; }
.lk-ar { font-family: var(--display); font-weight: 400; font-size: 1em; line-height: 1.25; white-space: nowrap; font-synthesis: none; }
.lk-en { font-family: var(--font); font-size: 0.3em; font-weight: 600; line-height: 1.3; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- Cover ---------- */
.sw-hero { background: var(--rose); color: var(--cardamom); }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(1.75rem, 0.75rem + 5vw, 5.5rem); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); } }
.hero-copy { max-width: 34rem; }
.sw-hero h1 { margin-bottom: 0.1em; font-size: clamp(2.2rem, 1rem + 2.6vw, 3.4rem); line-height: 1.25; }
.en-line { margin-bottom: 1.25rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 500; line-height: 1.5; }
.hero-lead { max-width: 30rem; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.75; }
.hero-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 8px; border-top: 1px solid rgba(31, 61, 43, 0.3); }
.hero-toc li { border-bottom: 1px solid rgba(31, 61, 43, 0.3); }
.hero-toc a { display: flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.hero-toc a:hover { text-decoration-line: underline; }
@media (min-width: 900px) { .hero-toc ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hero-logo { order: -1; container-type: inline-size; display: grid; place-items: center; }
@media (min-width: 900px) { .hero-logo { order: 0; } }
.hero-logo .lockup { font-size: 3.1rem; font-size: min(14.5cqi, 6.4rem); }
.hero-logo .lk-mark { width: 2.85em; height: 2.85em; }
.hero-logo .lk-en { font-size: 0.32em; }
.hm-bowl { fill: var(--cardamom); }
.hm-dot { fill: var(--milk); }
/* Signature move: the rosette drops into place above the bowl, once */
@media (prefers-reduced-motion: no-preference) {
  .hm-dot { transform-box: fill-box; transform-origin: center; animation: dot-drop 0.8s var(--ease) 0.2s both; }
}
@keyframes dot-drop {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.sw-section { padding-block: 64px; }
@media (min-width: 700px) { .sw-section { padding-block: 96px; } }
@media (min-width: 1100px) { .sw-section { padding-block: 128px; } }
.sec-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.sec-head-wide { max-width: 46rem; }
.sec-head h2 { margin-bottom: 0.4em; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.25; }
h2 [lang="en"], h3 [lang="en"] { font-family: var(--font); font-weight: 500; }
h2 [lang="en"] { display: block; margin-top: 0.15em; color: var(--ink-soft); font-size: 0.4em; line-height: 1.4; }
h3 [lang="en"] { margin-inline-start: 0.35em; font-size: 0.6em; }
.sec-head p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.sec-head p:last-child { margin-bottom: 0; }
.small-note { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; }
.small-note [lang="en"] { margin-inline-start: 0.3rem; }

/* ---------- From a letter to a logo ---------- */
.idea-grid { display: grid; gap: 0.5rem; }
@media (min-width: 900px) {
  .idea-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; }
  .idea-grid .sec-head { margin-bottom: 0; }
}
.idea-steps { --step-gap: clamp(1.4rem, 0.8rem + 3vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--step-gap); }
.idea-steps li { display: grid; align-content: start; justify-items: center; gap: 0.75rem; text-align: center; }
.step-art { position: relative; container-type: inline-size; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; }
/* The arrow sits in the gap before each step after the first (it points left: the reading direction) */
.idea-steps li + li .step-art::before {
  content: "←";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  width: var(--step-gap);
  margin-inline-start: calc(var(--step-gap) * -1);
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  line-height: 1;
  text-align: center;
}
.step-letter { background: var(--milk-2); }
.step-letter span { font-family: var(--display); font-size: 56cqi; line-height: 1; translate: 0 -0.06em; }
.step-object { background: var(--pista-tint); }
.step-mark { background: var(--rose); --bowl: var(--cardamom); --dot: var(--milk); }
.step-art svg { width: 66%; height: 66%; }
.step-cap b { display: block; font-size: 1rem; line-height: 1.45; }
.step-cap span { display: block; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.4; }

/* ---------- How the logo was made: the designer's process board ----------
   Paper is milk on a milk-2 table, grids are a light rose tint, construction lines a deep rose (#C9577D, 3.8:1 on milk),
   pencil is graphite (#46524B, 7.6:1). Figure text is sized in SVG units per breakpoint so it stays 11px or more on a
   320px phone and does not balloon on desktop. Handwritten notes: Aref Ruqaa, never letter-spaced. Spacing on 4/8px. */
.sw-process {
  --paper: var(--milk);
  --graphite: #46524B;
  --marker: #C9577D;
  --grid: #F6D6DE;
  --grid-2: #EDBFCB;
  --hair: rgba(31, 61, 43, 0.16);
  --hand: "Aref Ruqaa", "Readex Pro", serif;
  background: var(--milk-2);
}
.hand { font-family: var(--hand); font-size: 1.25rem; line-height: 1.5; color: var(--graphite); }
.u { font-family: var(--font); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.proc { display: grid; gap: 64px; }
.step { display: grid; gap: 24px; min-width: 0; }
.step-text { min-width: 0; max-width: 34rem; }
.step-text p:last-child { margin-bottom: 0; }
.step h3 { margin-bottom: 12px; font-size: 1.625rem; line-height: 1.35; }
.step h3 [lang="en"] { display: block; margin: 4px 0 0; color: var(--ink-soft); font-size: 0.5em; }
.step-no {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums;
}
.step-no::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.step-aside { margin: 16px 0 0; rotate: -1.5deg; transform-origin: right center; }
.more { font-weight: 600; text-decoration-thickness: 1px; }
.more span { display: inline-block; margin-inline-start: 4px; transition: translate 0.3s var(--ease); }
.more:hover span { translate: -4px 0; }

/* The sheet: one piece of paper per figure */
.sheet { min-width: 0; margin: 0; background: var(--paper); border: 1px solid var(--hair); }
.sheet-pad { padding: 16px; }
.sheet figcaption {
  display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 12px 16px; border-top: 1px solid var(--hair);
  color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.6;
}
.sheet-pad figcaption { margin: 16px -16px -16px; }
.sheet figcaption b { color: var(--cardamom); font-weight: 600; }

/* Figure drawing styles (SVG) */
.fig { display: block; width: 100%; height: auto; --fl: 14px; --fh: 18px; }
.fig-p { --fl: 20px; --fh: 24px; }
@media (min-width: 480px) { .fig { --fl: 11px; --fh: 15px; } .fig-p { --fl: 15px; --fh: 19px; } }
.f-paper { fill: var(--paper); }
.f-grid { fill: none; stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-grid-2 { stroke: var(--grid-2); }
.f-ghost { fill: var(--cardamom); fill-opacity: 0.1; stroke: var(--cardamom); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-con, .f-con-s { fill: none; stroke: var(--marker); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-con { stroke-dasharray: 4 3; }
.f-con-ink { stroke: var(--cardamom); }
.f-guide { fill: none; stroke: var(--cardamom); stroke-opacity: 0.55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-dim { fill: none; stroke: var(--cardamom); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-dim-rose { stroke: var(--marker); }
.f-dim-light { stroke: var(--milk); }
.f-clear { fill: var(--rose-tint); stroke: var(--marker); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.f-ink { fill: var(--cardamom); }
.f-rose { fill: var(--rose); }
.f-milk { fill: var(--milk); }
.f-rose-tint { fill: var(--rose-tint); }
.f-edge { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-ghost-ros { color: var(--rose); opacity: 0.6; }
.f-graphite { fill: var(--graphite); fill-opacity: 0.85; }
.f-hatch { stroke: var(--graphite); stroke-width: 1; stroke-opacity: 0.5; }
.f-pencil { fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.f-pencil-2 { stroke-width: 1; stroke-opacity: 0.45; }
.f-marker { fill: none; stroke: var(--marker); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-lab { font-family: var(--font); font-size: var(--fl); font-weight: 500; fill: var(--cardamom); font-variant-numeric: tabular-nums; }
.f-val { fill: var(--ink-soft); }
.f-hand { font-family: var(--hand); font-size: var(--fh); fill: var(--graphite); }
.f-name { font-family: var(--display); fill: var(--cardamom); }
.f-en { font-family: var(--font); font-weight: 600; letter-spacing: 0.04em; fill: var(--cardamom); }

/* 02: sketches. 03: spec list. 04/06: panels */
.sketches, .panels, .icon-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.sk, .panels li, .icon-pair li { min-width: 0; }
.fig-sk { background: var(--paper); }
.sk-name { margin: 8px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.sk-note { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.is-picked .sk-name { color: var(--cardamom); }
.is-picked .sk-note { color: #A63D63; }
.panel-cap { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.6; }
.ig-handle { display: block; color: var(--cardamom); font-weight: 600; }
.spec { display: grid; margin: 24px 0 0; border-top: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.6; }
.spec div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding-block: 8px; border-bottom: 1px solid var(--hair); }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; }
.tile-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 12px 4px; font-size: 0.8125rem; line-height: 1.5; }
.tile-legend b { display: block; font-weight: 600; }

/* 08: minimum sizes, shown at their real size */
.minsizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 32px; padding: 16px; border-top: 1px solid var(--hair); }
.ms { display: grid; justify-items: start; min-width: 0; }
.ms-wide { flex-basis: 100%; container-type: inline-size; }
.ms-rule { padding-top: 12px; border-top: 1px solid var(--marker); }
.ms-lk { font-size: 30px; font-size: min(33px, 11.5cqi); } /* about 240px wide; shrinks only on the narrowest phones */
.ms-box { display: grid; place-items: center; width: 48px; height: 48px; border: 1px dashed var(--hair); --bowl: var(--cardamom); --dot: var(--rose); }

/* 09: the finished mark */
.final-panel { display: grid; place-items: center; min-width: 0; margin: 0; padding: 48px 16px; background: var(--rose); container-type: inline-size; }
.final-panel .lockup { font-size: 2.25rem; font-size: min(13cqi, 4.5rem); --dot: var(--milk); }
.final-panel .lk-mark { width: 2.4em; height: 2.4em; }

@media (min-width: 900px) {
  .proc { gap: 120px; }
  .step { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .step .sheet, .step .final-panel { max-width: 560px; width: 100%; }
  .step-idea .step-text, .step-optics .step-text, .step-final .step-text { grid-column: 1 / span 4; }
  .step-idea .sheet { grid-column: 6 / span 7; justify-self: end; }
  .step-sketch .step-text { grid-column: 1 / span 6; }
  .step-sketch .sheet { grid-column: 1 / -1; max-width: none; }
  .step-sketch .sketches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step-grid .sheet, .step-space .sheet { grid-column: 1 / span 7; grid-row: 1; }
  .step-grid .step-text, .step-space .step-text { grid-column: 9 / span 4; grid-row: 1; }
  .step-optics .sheet { grid-column: 5 / span 8; max-width: none; }
  .step-optics .panels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-pair .sheet { grid-column: 1 / span 7; grid-row: 2; }
  .step-pair .step-text { grid-column: 1 / span 6; grid-row: 1; }
  .step-icon, .step-colour { grid-template-columns: minmax(0, 1fr); }
  .step-final .final-panel { grid-column: 6 / span 7; justify-self: end; max-width: none; }
  .step-final { padding: 0; }
}
@media (min-width: 900px) {
  .proc { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .proc > .step { grid-column: 1 / -1; }
  .proc > .step-icon { grid-column: 1 / span 6; }
  .proc > .step-colour { grid-column: 7 / span 6; }
  .step-icon .sheet, .step-colour .sheet { max-width: none; }
}
@media (max-width: 899px) { .step .sheet, .step .final-panel { max-width: 544px; } }

/* ---------- Logo versions ---------- */
.sw-versions { background: var(--cardamom); color: var(--milk); }
.sw-versions h2 [lang="en"] { color: var(--pista); }
.v-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.v-tile { display: flex; flex-direction: column; gap: 0.7rem; grid-column: span 2; min-width: 0; }
.v-mark, .v-one { grid-column: span 1; }
@media (min-width: 900px) {
  .v-board { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .v-primary { grid-column: span 8; }
  .v-stacked { grid-column: span 4; grid-row: span 2; }
  .v-mark, .v-one { grid-column: span 4; }
  .v-dark, .v-small { grid-column: span 6; }
}
.v-art { flex: 1 0 auto; container-type: inline-size; display: grid; place-items: center; padding: 8%; border-radius: 2px; }
.v-primary .v-art { aspect-ratio: 16 / 9; background: var(--milk); }
.v-stacked .v-art { aspect-ratio: 1; background: var(--rose); }
@media (min-width: 900px) { .v-stacked .v-art { aspect-ratio: auto; } } /* the tile fills two rows there: a square ratio turned that height into an 880px width and pushed the art off the page */
.v-mark .v-art { aspect-ratio: 1; background: var(--pista); }
.v-one .v-art { aspect-ratio: 1; background: var(--saffron); }
.v-dark .v-art { aspect-ratio: 16 / 9; background: var(--cardamom-2); }
.v-small .v-art { aspect-ratio: 16 / 9; background: var(--milk); }
.v-primary .lockup { font-size: 1.9rem; font-size: 9.6cqi; }
.v-stacked .lockup { font-size: 2.2rem; font-size: 14cqi; --dot: var(--milk); }
.v-one .lockup { font-size: 1.2rem; font-size: 14cqi; --dot: var(--cardamom); }
.v-dark .lockup { font-size: 1.9rem; font-size: 9.6cqi; color: var(--milk); --bowl: var(--milk); --dot: var(--rose); }
.v-dark .lk-en { color: var(--rose); }
.badge { display: grid; place-items: center; width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--rose); --bowl: var(--cardamom); --dot: var(--milk); }
.badge svg { width: 70%; height: 70%; }
.sizes { display: flex; align-items: center; justify-content: center; gap: 1.25rem; --bowl: var(--cardamom); --dot: var(--rose); }
.size-app { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--rose); --dot: var(--milk); }
.size-app svg { width: 46px; height: 46px; }
.size-40 { flex: none; width: 40px; height: 40px; }
.size-28 { flex: none; width: 28px; height: 28px; }
.size-18 { flex: none; width: 18px; height: 18px; }
.v-tile figcaption { font-size: 0.95rem; line-height: 1.5; }
.v-tile figcaption [lang="en"] { margin-inline-start: 0.2rem; color: var(--pista); font-weight: 500; }
.fc-use { display: block; font-size: 0.9rem; }
.rule-note { display: flex; align-items: flex-start; gap: 0.6rem; max-width: 46rem; margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; }
.rule-note svg { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.2rem; color: var(--rose); }

/* ---------- Colours ---------- */
.sw-colours { background: var(--milk-2); }
.swatches { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 2px; }
.chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.2rem 1rem; min-height: 7.5rem; padding: 1.1rem 1.25rem; }
.chip-name { grid-column: 1; }
.chip-use { grid-column: 1; font-size: 0.92rem; line-height: 1.5; }
.chip-codes { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; font-size: 0.88rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.chip-name b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.chip-name [lang="en"] { margin-inline-end: 0.5rem; font-size: 0.9rem; font-weight: 500; } /* dir="ltr": its inline end is the side next to the Arabic name */
.chip-rose { background: var(--rose); }
.chip-cardamom { background: var(--cardamom); color: var(--milk); }
.chip-milk { background: var(--milk); }
.chip-pista { background: var(--pista); }
.chip-saffron { background: var(--saffron); }
@media (min-width: 640px) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-rose { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .chip-rose { grid-column: span 2; }
  .chip { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; align-items: start; min-height: 24rem; padding: 1.5rem; }
  .chip-name { grid-row: 1; }
  .chip-use { grid-row: 2; }
  .chip-codes { grid-column: 1; grid-row: 3; justify-items: start; margin-top: 1rem; }
  .chip-name b { display: block; font-size: clamp(2.2rem, 1.2rem + 1.8vw, 3.2rem); }
  .chip-name [lang="en"] { display: block; margin: 0; }
}
.recipe { margin-top: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.recipe p { max-width: 40rem; font-size: 1.05rem; }
.recipe-bar { display: flex; height: 32px; overflow: hidden; border: 1px solid rgba(31, 61, 43, 0.16); }
.recipe-bar span { display: block; }
.r-milk { flex: 50; background: var(--milk); }
.r-rose { flex: 25; background: var(--rose); }
.r-cardamom { flex: 13; background: var(--cardamom); }
.r-pista { flex: 8; background: var(--pista); }
.r-saffron { flex: 4; background: var(--saffron); }

/* ---------- Typefaces ---------- */
.sw-type { background: var(--pista-tint); }
.type-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .type-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .face-display { grid-row: span 2; }
}
.face { min-width: 0; padding: clamp(24px, 1rem + 2vw, 40px); border-radius: 2px; }
.face h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.face-display { background: var(--cardamom); color: var(--milk); }
.face-display h3 [lang="en"] { color: var(--pista); }
.face-big { margin: 0 0 0.1em; color: var(--rose); font-family: var(--display); font-size: clamp(7rem, 4rem + 14vw, 15rem); line-height: 1.15; }
.face-abc { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.7; word-spacing: 0.15em; }
.face-latin { margin: 0; color: var(--pista); font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.5; }
.face-text { background: var(--milk); }
.face-sample { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.7; }
.weights li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; padding-block: 0.45rem; }
.weights li > span:first-child { font-size: 1.5rem; line-height: 1.4; }
.w-400 > span:first-child { font-weight: 400; }
.w-500 > span:first-child { font-weight: 500; }
.w-700 > span:first-child { font-weight: 700; }
.w-name { color: var(--ink-soft); font-size: 0.85rem; }
.w-name [lang="en"] { margin-inline-start: 0.25rem; }
.face-digits { margin: 1rem 0 0; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.face-digits [lang="en"] { margin-inline-start: 0.6rem; color: var(--ink-soft); }
.face-pair { background: var(--rose-tint); }
.pair-demo { padding: 20px; border-radius: 2px; background: var(--milk); }
.pd-1 { margin-bottom: 0.15em; font-family: var(--display); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1.25; }
.pd-2 { margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
.pd-3 { margin: 0; font-size: 0.98rem; line-height: 1.7; }

/* ---------- Packaging ---------- */
.sw-pack {
  --pk-main: #F0A0B5; --pk-deep: #DE8BA1; --pk-inner: #C67189;
  background: var(--cardamom);
  color: var(--milk);
}
/* The one live thing: pick a colourway and every piece changes (no script needed) */
.sw-pack:has(#cw-pista:checked) { --pk-main: #B8CF86; --pk-deep: #A2BB6E; --pk-inner: #87A253; }
.sw-pack:has(#cw-saffron:checked) { --pk-main: #F2A93B; --pk-deep: #DB9327; --pk-inner: #BA7618; }
.sw-pack h2 [lang="en"] { color: var(--pista); }
.pack-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.pack-head .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .pack-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; } }
.cw legend { margin-bottom: 0.6rem; font-weight: 700; }
.cw legend [lang="en"] { margin-inline-start: 0.35rem; color: var(--pista); font-weight: 500; }
.cw-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cw-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding-block: 0.4rem;
  padding-inline: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--cardamom-2);
  color: var(--milk);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cw-opt:hover { background: #355E46; }
.cw-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cw-swatch { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.c-rose { background: var(--rose); }
.c-pista { background: var(--pista); }
.c-saffron { background: var(--saffron); }
.cw-opt:has(input:checked) { background: var(--milk); color: var(--cardamom); }
.cw-opt:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 3px; }
.cw-opt input:focus-visible + .cw-swatch { outline: 3px solid var(--rose); outline-offset: 2px; }

.pack-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pack-box, .pack-sticker { grid-column: span 2; }
@media (min-width: 900px) {
  .pack-scene { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pack-box { grid-column: span 7; }
  .pack-bag { grid-column: span 5; }
  .pack-cup { grid-column: span 5; }
  .pack-sticker { grid-column: span 7; }
}
.pack-item { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.pack-stage { flex: 1 0 auto; display: grid; place-items: center; padding: 7% 8%; border-radius: 2px; background: var(--cardamom-2); }
.pack-stage svg { width: 100%; height: auto; }
.pack-bag .pack-stage svg { max-width: 320px; }
.pack-cup .pack-stage svg { max-width: 340px; }
.pack-sticker .pack-stage svg { max-width: 480px; }
.pack-item figcaption { font-size: 0.95rem; line-height: 1.5; }
.pack-item figcaption [lang="en"] { margin-inline-start: 0.25rem; color: var(--pista); font-weight: 500; }
.pack-note { max-width: 46rem; margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; }
.pack-note [lang="en"] { display: block; color: var(--pista); font-size: 0.92rem; }

/* The drawings */
.pk-main { fill: var(--pk-main); transition: fill 0.45s var(--ease); }
.pk-deep { fill: var(--pk-deep); transition: fill 0.45s var(--ease); }
.pk-inner { fill: var(--pk-inner); transition: fill 0.45s var(--ease); }
.pk-shadow { fill: var(--cardamom-3); opacity: 0.7; }
.lid-front { fill: var(--cardamom); }
.lid-top { fill: #3A6450; }
.lid-side { fill: var(--cardamom-3); }
.lid-dots { color: var(--pk-main); }
.handle { fill: none; stroke: var(--cardamom); stroke-width: 5; stroke-linecap: round; }
.mk-on-colour { --bowl: var(--cardamom); --dot: var(--milk); }
.mk-on-milk { --bowl: var(--cardamom); --dot: var(--pk-main); }
.svg-display { font-family: var(--display); }
.svg-text { font-family: var(--font); font-weight: 500; }
.svg-latin { font-family: var(--font); font-weight: 600; }
.svg-b { font-weight: 700; }
.svg-ink { fill: var(--cardamom); }
.svg-pk { fill: var(--pk-main); transition: fill 0.45s var(--ease); }
.cup-glass { fill: #FFFFFF; opacity: 0.22; }
.lyr-milk { fill: var(--milk); }
.lyr-rose { fill: var(--rose); }
.lyr-pista { fill: var(--pista); }
.lyr-top { fill: #CBDDA3; }
.cup-rim { fill: none; stroke: #FFFFFF; stroke-opacity: 0.6; stroke-width: 2.5; }
.cup-rosette { color: var(--milk); }
.cup-shine { fill: none; stroke: #FFFFFF; stroke-opacity: 0.5; stroke-width: 5; stroke-linecap: round; }
.lbl-paper { fill: var(--milk); }
.lbl-band { fill: var(--cardamom); }

/* ---------- Instagram templates ---------- */
.posts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 1rem;
  margin-inline: -16px;
  padding: 0.25rem 16px 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.posts::-webkit-scrollbar { display: none; }
.post { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; scroll-snap-align: start; }
@media (min-width: 760px) {
  .posts {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
.post-bar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; line-height: 1.4; }
.pb-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); --bowl: var(--cardamom); --dot: var(--milk); }
.pb-avatar svg { width: 22px; height: 22px; }
.post-art { container-type: inline-size; display: grid; aspect-ratio: 1; border-radius: 2px; transition: transform 0.35s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .post:hover .post-art { transform: translateY(-4px); } }
.post-in { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 6cqi; text-align: center; }
:where(.post-in) p { margin: 0; }
.p-rose { background: var(--rose); color: var(--cardamom); }
.p-dark { background: var(--cardamom); color: var(--milk); }
.p-pista { background: var(--pista); color: var(--cardamom); }
.p-label { padding: 0.6cqi 3.4cqi; border-radius: 999px; background: var(--cardamom); color: var(--milk); font-size: 4.4cqi; font-weight: 700; line-height: 1.6; }
.p-pic { width: 62cqi; height: auto; margin-block: 1.5cqi 2cqi; }
.p-dark .p-pic { width: 66cqi; margin-top: 0; }
.p-title { margin-bottom: 1cqi; font-family: var(--display); font-size: 9cqi; line-height: 1.25; }
.p-dark .p-title { color: var(--rose); }
.p-price { font-size: 6cqi; font-weight: 700; line-height: 1.4; }
.p-sub { font-size: 5.4cqi; font-weight: 600; line-height: 1.5; }
.p-pista .post-in { align-items: stretch; text-align: start; }
.p-pista .p-title { margin-bottom: 3cqi; font-size: 11cqi; }
.p-list { display: grid; gap: 2.4cqi; }
.p-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5cqi 2cqi; padding: 2.4cqi 3.4cqi; border-radius: 3cqi; background: var(--pista-tint); font-size: 4.8cqi; font-weight: 600; line-height: 1.45; }
.p-pr { font-weight: 700; white-space: nowrap; }
.p-foot { display: flex; align-items: center; gap: 1.6cqi; margin-top: auto; padding-top: 3cqi; font-size: 4.4cqi; font-weight: 700; --bowl: var(--cardamom); --dot: var(--milk); }
.p-foot svg { flex: none; width: 8cqi; height: 8cqi; }
.p-price em, .p-pr em {
  display: inline-block;
  margin-inline-start: 0.35em;
  padding: 0 0.6em;
  border-radius: 2px;
  background: var(--milk);
  color: var(--cardamom);
  font-size: 0.62em;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.15em;
}
.post figcaption { font-size: 0.95rem; line-height: 1.5; }
.post figcaption [lang="en"] { margin-inline-start: 0.25rem; color: var(--ink-soft); font-weight: 500; }
.sw-insta .small-note { margin: 1.25rem 0 0; }

/* ---------- Business card ---------- */
.sw-card { background: var(--rose); }
.sw-card h2 [lang="en"], .sw-card .small-note { color: var(--cardamom); }
.card-grid { display: grid; gap: 0.5rem; }
@media (min-width: 900px) {
  .card-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; }
  .card-grid .sec-head { margin-bottom: 0; }
}
.cards { display: grid; padding-block: 0.5rem; }
.bcard-fig { min-width: 0; }
.bcard-fig-front { margin-inline-end: 8%; transform: rotate(-2deg); }
.bcard-fig-back { position: relative; z-index: 1; margin-top: -7%; margin-inline-start: 8%; transform: rotate(1.5deg); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bcard-fig-front { grid-column: 1 / span 9; grid-row: 1; margin: 0; transform: rotate(-3deg); }
  .bcard-fig-back { grid-column: 4 / span 9; grid-row: 1; margin: 50% 0 0; transform: rotate(2.5deg); } /* 50%: the back overlaps only the empty strip under the logo, as on phones */
}
/* The captions are for screen readers; the section text already says which side is which */
.bcard-fig figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bcard { container-type: inline-size; display: grid; aspect-ratio: 9 / 5; border-radius: 14px; }
.bc-in { display: grid; min-width: 0; padding: 7cqi 8cqi; }
.bcard-front { background: var(--cardamom); }
.bcard-front .bc-in { place-items: center; }
.bcard-front .lockup { font-size: 1.4rem; font-size: 9.5cqi; color: var(--milk); --bowl: var(--milk); --dot: var(--rose); }
.bcard-front .lk-en { color: var(--rose); }
.bcard-back { background: var(--milk); color: var(--cardamom); }
.bcard-back .bc-in { align-content: space-between; padding-bottom: 12cqi; background: var(--rosette-row) bottom 3.5cqi center / 6cqi 4.8cqi repeat-x; }
.bc-name { display: flex; align-items: center; gap: 2cqi; margin: 0; font-size: 6cqi; line-height: 1.25; --bowl: var(--cardamom); --dot: var(--rose); }
.bc-name svg { flex: none; width: 8cqi; height: 8cqi; }
.bc-name b { font-family: var(--display); font-weight: 400; font-synthesis: none; }
.bc-lines { display: grid; gap: 1.2cqi; font-size: 4.2cqi; font-weight: 600; line-height: 1.4; }
.bc-lines li { display: flex; align-items: center; gap: 2cqi; }
.bc-lines svg { flex: none; width: 4.6cqi; height: 4.6cqi; }
.bc-foot { margin: 0; color: var(--ink-soft); font-size: 3.6cqi; font-weight: 700; }

/* ---------- Menu ---------- */
.sw-menu { background: var(--saffron-tint); }
.menu-grid { display: grid; gap: 0.5rem; }
@media (min-width: 900px) {
  .menu-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .menu-grid .sec-head { margin-bottom: 0; }
}
.example-note { display: inline-block; margin: 0; padding: 12px 16px; border-radius: 2px; background: var(--milk); font-size: 0.95rem; line-height: 1.6; }
.example-note span { display: block; color: var(--ink-soft); font-size: 0.88em; }
.menu-card { width: 100%; max-width: 36rem; padding: clamp(1.4rem, 1rem + 2.5vw, 2.75rem); border-radius: 2px; background: var(--milk); }
@media (min-width: 900px) { .menu-card { justify-self: end; } }
.mc-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 2.6rem; background: var(--rosette-row) bottom center / 30px 24px repeat-x; --bowl: var(--cardamom); --dot: var(--rose); }
.mc-head svg { flex: none; width: 56px; height: 56px; }
.mc-head p { margin: 0; line-height: 1.3; }
.mc-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.25; font-synthesis: none; }
.mc-head p > span { display: block; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.mc-head p > span [lang="en"] { margin-inline-start: 0.3rem; }
.mc-sec + .mc-sec { margin-top: 1.25rem; }
.mc-sec h3 { margin: 0 0 0.2rem; font-size: 1.55rem; }
.mc-sec h3 [lang="en"] { color: var(--ink-soft); }
.mc-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(31, 61, 43, 0.12); }
.mc-list li:last-child { border-bottom: 0; }
.mc-list b { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.mc-list small { display: block; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.4; }
.price { flex: none; display: grid; justify-items: end; gap: 0.15rem; font-weight: 700; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price em { padding: 0 6px; border: 1px solid rgba(31, 61, 43, 0.35); border-radius: 2px; background: none; color: var(--cardamom); font-size: 0.72rem; font-style: normal; font-weight: 700; line-height: 1.7; }
.mc-foot { margin: 24px 0 0; padding: 12px 16px; border-radius: 2px; background: var(--rose-tint); font-weight: 600; line-height: 1.6; text-align: center; }
.mc-foot span { display: inline-block; margin-inline-start: 0.35rem; }

/* ---------- Khalesni's note ---------- */
.demo-note { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); background: var(--milk); }
.demo-card {
  display: flex; align-items: flex-start; gap: 1.1rem; max-width: 52rem; margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px dashed rgba(6, 50, 58, 0.35); border-radius: 4px; background: #fff; color: var(--k-ink);
}
.demo-card img { flex: none; width: 44px; height: 44px; }
.demo-card h2 { font-family: var(--font); font-weight: 700; font-size: 1.3rem; color: var(--k-ink); }
.demo-card h2 [lang="en"] { display: block; margin-top: 0.15em; color: #46636A; font-size: 0.72em; font-weight: 500; }
.demo-card p { color: #46636A; }
.demo-en { font-size: 0.95rem; }
.demo-card .demo-in { margin: 0 0 0.45rem; color: var(--k-ink); }
.demo-list { display: flex; flex-wrap: wrap; gap: 0 6px; margin-bottom: 20px; }
.demo-list li { color: var(--k-ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.7; }
.demo-list li:not(:last-child)::after { content: "،"; }
.demo-small { font-size: 0.92rem; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 1.25rem; border-radius: 999px; background: var(--k-teal); color: #fff; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.k-btn:hover { background: #0A4F57; color: #fff; }
.k-btn .k-nw { white-space: nowrap; }
.demo-card :focus-visible { outline-color: var(--k-ink); }
@media (max-width: 520px) { .demo-card { flex-direction: column; } }

/* ---------- Footer: the name returns at full width ---------- */
.sw-footer { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; background: var(--cardamom); color: var(--milk); font-size: 0.92rem; }
.foot-big { container-type: inline-size; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.foot-big p {
  display: flex; align-items: center; gap: 0.25em; margin: 0;
  color: var(--rose); font-family: var(--display); font-size: 2.4rem; font-size: 12.5cqi; line-height: 1.2;
  white-space: nowrap; font-synthesis: none;
  --bowl: var(--rose); --dot: var(--milk);
}
.foot-big svg { flex: none; width: 1.1em; height: 1.1em; }
.sw-footer p { margin: 0; }
.foot-text > span { display: block; margin-top: 0.25rem; opacity: 0.9; }
.sw-footer a { color: var(--rose); }
.sw-footer .credit { margin-top: 1rem; font-size: 0.88rem; font-weight: 600; }

/* ---------- Scroll reveal (only when ../script.js runs and motion is allowed) ---------- */
.reveal-ready [data-reveal] { transition: opacity 0.6s var(--ease) var(--rd, 0s), translate 0.6s var(--ease) var(--rd, 0s); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 12px; }
[data-reveal="1"] { --rd: 0.08s; }
[data-reveal="2"] { --rd: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
}
@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .sw-header { position: static; }
  .posts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}
