/* ==========================================================================
   Mosamem Studio — home page
   One bold moment (the flashlight hero), then calm, measured sections.
   ========================================================================== */

/* light-cone parameters: set per frame by home.js on the two layers that use them.
   Registered as non-inheriting so a frame only restyles those two elements. */
@property --fl-x { syntax: '<length-percentage>'; inherits: false; initial-value: 0px; }
@property --fl-y { syntax: '<length-percentage>'; inherits: false; initial-value: 0px; }
@property --fl-a { syntax: '<angle>'; inherits: false; initial-value: 180deg; }
@property --fl-w { syntax: '<angle>'; inherits: false; initial-value: 18deg; }
@property --fl-r { syntax: '<length>'; inherits: false; initial-value: 900px; }
@property --fl-d { syntax: '<length>'; inherits: false; initial-value: 40px; }

/* AA workaround until main.css changes (see the foundation request): amber #C97800 on paper is
   about 3:1, too low for small labels. On paper, text accents here use a deeper amber mixed
   from the brand constants (about 5.4:1 on paper, 4.8:1 on paper-grey). */
.band--paper,
:root[data-theme="light"] main .band { --accent-text: color-mix(in srgb, var(--amber) 66%, var(--ink)); }

/* ---------- 1 · hero: the flashlight ---------- */
.hero {
  --lamp-w: 84px;
  --lamp-top: 14px;
  --lamp-end: 16px;
  overflow: hidden;
  isolation: isolate;
  /* the edge of the drawing sheet: the light stops here on purpose */
  border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 720px) {
  .hero { --lamp-end: max(24px, calc((100% - 1200px) / 2)); }
}
@media (min-width: 760px) {
  .hero { --lamp-w: clamp(112px, 11vw, 150px); --lamp-top: clamp(22px, 3vw, 44px); }
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* the drawing: faint at rest, a lit copy shows inside the cone */
.hero__dwg {
  position: absolute;
  inset: 0;
  color: var(--fg);
  opacity: .16;
}
.hero__dwg--lit {
  opacity: 1;
  color: color-mix(in srgb, var(--fg) 82%, transparent);
  --dwg-acc: var(--hero-acc, var(--lamp));
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: -1px -1px;
}

/* drawing labels speak the mono "engineer" voice: always left-to-right, even on Arabic pages.
   (Set on the text only: on the svg it would flip the logical insets that place the pieces.) */
.dwg text, .door__art text { direction: ltr; unicode-bidi: isolate; }

.dwg {
  position: absolute;
  height: auto;
  max-width: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dwg * { vector-effect: non-scaling-stroke; }
.dwg text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
}
.dwg .faint { opacity: .5; }
.dwg .thin { opacity: .7; }
.dwg .hid { stroke-dasharray: 5 4; opacity: .8; }
.dwg .ctr { stroke-dasharray: 16 4 3 4; opacity: .7; }
.dwg .acc { stroke: var(--dwg-acc, currentColor); }
.dwg .acc-f { fill: var(--dwg-acc, currentColor); stroke: none; }
.dwg .acc-t { fill: var(--dwg-acc, currentColor); }

/* drawing layout — phone: the sketch behind the headline, the CAD views under the buttons,
   nothing dense behind the paragraph */
.dwg--block { width: min(calc(100% - var(--lamp-w) - 56px), 240px); top: 14px; inset-inline-start: 16px; }
.dwg--sketch { width: 52%; top: 150px; inset-inline-start: 4%; }
.dwg--print { display: none; }
.dwg--cad { width: 92%; bottom: -1%; inset-inline-start: 4%; }
@media (min-width: 760px) {
  .dwg--block { width: 24%; max-width: 330px; top: auto; bottom: 22px; inset-inline-start: max(24px, calc((100% - 1200px) / 2)); }
  .dwg--sketch { width: 19%; max-width: 260px; top: 7%; inset-inline-start: 37%; }
  .dwg--print { display: block; width: 13%; max-width: 190px; bottom: 5%; inset-inline-start: 45%; }
  .dwg--cad { width: 36%; max-width: 500px; bottom: 3%; inset-inline-start: auto; inset-inline-end: max(16px, calc((100% - 1240px) / 2)); }
}

/* the light: a conic cone from the lamp head, faded with distance */
.hero__glow,
.hero__dwg--lit {
  --fl-x: calc(100% - 92px);
  --fl-y: 40px;
  --fl-a: 212deg;
  --fl-w: 22deg;
  --fl-r: 760px;
  --fl-d: 25px;
}
html[dir="rtl"] .hero__glow,
html[dir="rtl"] .hero__dwg--lit { --fl-x: 92px; --fl-a: 148deg; }
@media (min-width: 760px) {
  .hero__glow,
  .hero__dwg--lit { --fl-x: calc(100% - 150px); --fl-y: 40px; --fl-a: 234deg; --fl-w: 17deg; --fl-r: 1150px; --fl-d: 60px; }
  html[dir="rtl"] .hero__glow,
  html[dir="rtl"] .hero__dwg--lit { --fl-x: 150px; --fl-a: 126deg; }
}

.hero__dwg--lit {
  -webkit-mask-image:
    conic-gradient(from calc(var(--fl-a) - var(--fl-w)) at var(--fl-x) var(--fl-y), transparent 0deg, #000 3deg, #000 calc(var(--fl-w) * 2 - 3deg), transparent calc(var(--fl-w) * 2)),
    radial-gradient(circle var(--fl-r) at var(--fl-x) var(--fl-y), transparent var(--fl-d), #000 calc(var(--fl-d) + 30px), #000 calc(var(--fl-r) * .5), transparent var(--fl-r));
  -webkit-mask-composite: source-in;
  mask-image:
    conic-gradient(from calc(var(--fl-a) - var(--fl-w)) at var(--fl-x) var(--fl-y), transparent 0deg, #000 3deg, #000 calc(var(--fl-w) * 2 - 3deg), transparent calc(var(--fl-w) * 2)),
    radial-gradient(circle var(--fl-r) at var(--fl-x) var(--fl-y), transparent var(--fl-d), #000 calc(var(--fl-d) + 30px), #000 calc(var(--fl-r) * .5), transparent var(--fl-r));
  mask-composite: intersect;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle var(--fl-r) at var(--fl-x) var(--fl-y),
    transparent var(--fl-d),
    color-mix(in srgb, var(--lamp) 34%, transparent) calc(var(--fl-d) + 2px),
    color-mix(in srgb, var(--lamp) 13%, transparent) calc(var(--fl-r) * .42),
    color-mix(in srgb, var(--lamp) 4%, transparent) calc(var(--fl-r) * .75),
    transparent var(--fl-r));
  -webkit-mask-image: conic-gradient(from calc(var(--fl-a) - var(--fl-w)) at var(--fl-x) var(--fl-y), transparent 0deg, #000 3deg, #000 calc(var(--fl-w) * 2 - 3deg), transparent calc(var(--fl-w) * 2));
  mask-image: conic-gradient(from calc(var(--fl-a) - var(--fl-w)) at var(--fl-x) var(--fl-y), transparent 0deg, #000 3deg, #000 calc(var(--fl-w) * 2 - 3deg), transparent calc(var(--fl-w) * 2));
}

/* the lamp (brand icon geometry): body under the light, head above it */
.hero__lamp {
  position: absolute;
  top: var(--lamp-top);
  inset-inline-end: var(--lamp-end);
  width: var(--lamp-w);
  height: auto;
  max-width: none;
}
.hero__lamp--body { fill: var(--fg); }
.hero__lamp--head { fill: var(--lamp); }

/* content above the light */
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: var(--s-5);
  padding-top: calc(var(--lamp-top) + var(--lamp-w) * 1.222 - 18px);
  padding-bottom: var(--s-7);
  /* a dark halo carves the lit lines away from the letters */
  text-shadow: 0 0 2px var(--bg), 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 28px var(--bg);
}
.hero__content > * { max-width: 100%; }
.hero__content > .eyebrow { max-width: calc(100% - var(--lamp-w) - 16px); }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.5rem); }
.hero__br { display: none; }
@media (min-width: 1180px) {
  .hero__br { display: inline; }
}
.hero__lede { color: var(--fg); opacity: .86; max-width: 34rem; text-wrap: balance; }
.hero__ctas {
  display: grid;
  gap: var(--s-3);
  width: 100%;
  margin-top: var(--s-2);
  text-shadow: none;
}
/* three equal doors: one per line, same colour, no favourite */
.hero__cta {
  justify-content: space-between;
  background: var(--bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 30%, transparent);
}
.hero__cta .arrow { color: var(--accent-text); }
.hero__cta:hover { background: var(--bg-2); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.hero__cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* the shop is under construction: same door, but closed */
.hero__cta.is-off, .hero__cta.is-off:hover { color: color-mix(in srgb, var(--fg) 55%, transparent); background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 18%, transparent); }
.hero__cta.is-off .chip { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 55%, transparent); }
.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: calc(-1 * var(--s-2));
}
html[lang="ar"] .hero__hint { font-family: var(--font-body); letter-spacing: 0; font-size: var(--fs-sm); }
.hero__hint-ico { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.hero__hint--touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero__hint--mouse { display: none; }
  .hero__hint--touch { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__hint { display: none; }
}

/* four equal doors: 2 × 2 from small tablets up */
@media (min-width: 520px) {
  .hero__ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 34rem; }
}
@media (min-width: 760px) {
  .hero__content {
    padding-top: clamp(4rem, 2rem + 5vw, 7rem);
    padding-bottom: clamp(6rem, 4.5rem + 4vw, 8.75rem);
    padding-inline-end: calc(var(--lamp-w) + 64px);
  }
  .hero__content > :not(h1) { max-width: 46rem; }
}

/* ---------- 2 · manifesto: idea · measure · make on a ruler ---------- */
.mani { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.mani__title { margin-bottom: var(--s-5); }
.mani__scale {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-5);
  padding-inline-start: 34px;
  border-inline-start: 1px solid var(--tick);
}
/* vertical ruler ticks on phones */
.mani__scale::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 12px;
  background:
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 60px) 0 0 / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 30px) 0 0 / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 6px) 0 0 / 5px 100% no-repeat;
}
html[dir="rtl"] .mani__scale::before {
  background-position: 100% 0, 100% 0, 100% 0;
}
.mani__mark { position: relative; display: grid; gap: var(--s-2); align-content: start; }
/* the major tick that points at each part */
.mani__mark::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  inset-inline-start: -34px;
  width: 26px;
  height: 2px;
  background: var(--accent-text);
}
.mani__glyph {
  width: 52px;
  height: 39px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.mani__glyph .g-fill { fill: var(--lamp); stroke: none; }
.mani__glyph .g-faint { stroke: var(--fg-3); stroke-width: 1; }
.mani__glyph .g-acc { stroke: var(--accent-text); }
.mani__glyph .g-accf { fill: var(--accent-text); stroke: none; }
.mani__mark h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; font-size: var(--fs-lg); }
.mani__mark p { color: var(--fg-2); max-width: 30ch; }

@media (min-width: 760px) {
  .mani__scale {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-inline-start: 0;
    padding-top: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--tick);
  }
  .mani__scale::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 18px;
    background:
      repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 60px) 0 0 / 100% 100% no-repeat,
      repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 30px) 0 0 / 100% 70% no-repeat,
      repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 6px) 0 0 / 100% 38% no-repeat;
  }
  html[dir="rtl"] .mani__scale::before { background-position: 0 0, 0 0, 0 0; }
  .mani__mark { padding-top: 2.25rem; padding-inline-end: var(--s-6); }
  .mani__mark::before { top: 0; inset-inline-start: 0; width: 2px; height: 26px; }
}

/* ---------- 3 · our lines: liquid-glass cards ----------
   Frosted, refracting sheets over the lamp's glow and the drawing grid.
   Details open when the icon is hovered (mouse) or tapped (touch / keyboard). */
.lines {
  --glass-a: rgba(255, 255, 255, .12);
  --glass-b: rgba(255, 255, 255, .03);
  --glass-rim: rgba(255, 255, 255, .4);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-shadow: rgba(0, 0, 0, .6);
  --glass-sheen: rgba(255, 255, 255, .16);
  --grid: rgba(243, 242, 238, .05);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section);
}
:root[data-theme="light"] .lines {
  --bg: var(--paper-3);
  --glass-a: rgba(255, 255, 255, .66);
  --glass-b: rgba(255, 255, 255, .3);
  --glass-rim: rgba(255, 255, 255, .95);
  --glass-edge: rgba(18, 20, 23, .1);
  --glass-shadow: rgba(18, 20, 23, .25);
  --glass-sheen: rgba(255, 255, 255, .75);
  --grid: rgba(18, 20, 23, .06);
}
.lines__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 62% at 14% 42%, color-mix(in srgb, var(--lamp) 40%, transparent), transparent 72%),
    radial-gradient(30% 52% at 88% 80%, color-mix(in srgb, var(--amber) 38%, transparent), transparent 72%),
    radial-gradient(26% 40% at 58% 10%, color-mix(in srgb, var(--lamp) 18%, transparent), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px;
}
.lines__title { font-size: var(--fs-3xl); margin-bottom: var(--s-6); }
.gl-grid { list-style: none; display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 680px) {
  .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}
@media (min-width: 1140px) {
  .gl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
}
.gl { min-width: 0; }
.gl__in {
  position: relative;
  display: grid;
  gap: .5rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 var(--glass-rim),
    inset 0 0 0 1px var(--glass-edge),
    inset 0 -18px 30px -24px var(--glass-rim),
    0 22px 44px -26px var(--glass-shadow);
  overflow: hidden;
  transition: transform .35s var(--ease);
}
/* phones: a lighter blur over the soft glow costs far less per scroll frame and looks the same */
@media (hover: none), (pointer: coarse) {
  .gl__in { -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gl__in { background: var(--bg-2); }
}
/* the sheen slides across on hover; a soft caustic sits in the top corner */
.gl__in::before,
.gl__in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.gl__in::before {
  background: linear-gradient(115deg, transparent 35%, var(--glass-sheen) 48%, transparent 62%);
  background-size: 260% 100%;
  background-position: 120% 0;
  transition: background-position 1.1s var(--ease);
}
.gl__in::after {
  background: radial-gradient(90% 55% at 12% 0%, var(--glass-sheen), transparent 60%);
  opacity: .55;
}
.gl__in > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .gl:hover .gl__in { transform: translateY(-4px); }
  .gl:hover .gl__in::before { background-position: -20% 0; }
}

.gl__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.gl__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--glass-a), transparent);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge);
  color: var(--fg);
  cursor: pointer;
  transition: box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.gl__icon:hover,
.gl[data-open="true"] .gl__icon {
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--accent-text), 0 0 0 4px color-mix(in srgb, var(--lamp) 22%, transparent);
}
.gl__icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gl__glyph { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gl__glyph * { vector-effect: non-scaling-stroke; }
.gl__glyph .g-faint { stroke: var(--fg-3); stroke-width: 1.1; }
.gl__glyph .g-acc { stroke: var(--accent-text); }
.gl__glyph--lamp { width: 30px; height: 36px; stroke: none; }
.gl__glyph--lamp .l-body { fill: var(--fg); }
.gl__glyph--lamp .l-head { fill: var(--lamp); }
.gl__glyph--lamp .l-beam { fill: color-mix(in srgb, var(--lamp) 45%, transparent); }
/* the + badge says "there is more"; it turns into − when open */
.gl__plus {
  position: absolute;
  inset-block-end: -5px;
  inset-inline-end: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 0 2px var(--bg);
}
.gl__plus::before,
.gl__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.6px;
  background: var(--on-accent);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.gl__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.gl[data-open="true"] .gl__plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.gl__name { font-size: var(--fs-lg); margin-top: .4rem; }
.gl__one { color: var(--fg-2); font-size: var(--fs-sm); }
.gl__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease), visibility 0s linear .4s;
}
.gl[data-open="true"] .gl__more {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.gl__more-in { min-height: 0; overflow: hidden; }
.gl__more .spec { padding-top: .6rem; margin-bottom: .45rem; border-top: 1px solid var(--glass-edge); }
html[dir="rtl"] .gl__more p.spec { text-align: right; }
.gl__list { list-style: none; display: grid; gap: .35rem; font-size: var(--fs-sm); padding-bottom: .25rem; }
.gl__list li { display: flex; gap: .6em; }
.gl__list li::before { content: ""; flex: none; width: 10px; height: 1.5px; margin-top: .8em; background: var(--accent-text); }
.gl__go {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  justify-self: start;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.gl__go:hover, .gl:hover .gl__go { color: var(--accent-text); }
.gl__go .arrow { color: var(--accent-text); }
/* the whole card is the link: the link's ::after stretches over the card;
   only the icon sits above it (touch: tap the icon for details, tap anywhere else to open) */
.gl__in > .gl__go { position: static; }
.gl__go::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  cursor: pointer;
}
.gl__go.is-off, .gl:hover .gl__go.is-off { color: var(--fg-3); }
.gl__go.is-off::after { cursor: default; }
.gl__go:focus-visible { outline: none; }
.gl__go:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 3px; }
.gl__in > .gl__top { z-index: auto; position: static; }
.gl__top .chip { position: relative; z-index: 1; }
.gl__icon { z-index: 3; }
/* mouse: hovering anywhere on the card shows the details, and the icon is part of the link */
@media (hover: hover) and (pointer: fine) {
  .gl__icon { pointer-events: none; }
  .gl:hover .gl__more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
  .gl:hover .gl__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
  .gl:hover .gl__icon {
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--accent-text), 0 0 0 4px color-mix(in srgb, var(--lamp) 22%, transparent);
  }
}

/* ---------- 4 · how it works ---------- */
.how__steps > li > div { min-width: 0; }
.how__key h3 { box-shadow: inset 0 -.32em 0 color-mix(in srgb, var(--lamp) 38%, transparent); display: inline; }
:root[data-theme="light"] .how__key h3 { box-shadow: inset 0 -.32em 0 color-mix(in srgb, var(--lamp) 55%, transparent); }
.how__key p { margin-top: .35rem; }
@media (min-width: 1000px) {
  .how__steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line-strong);
    position: relative;
  }
  .how__steps > li {
    position: relative;
    display: block;
    padding-block: var(--s-5) 0;
    padding-inline-end: var(--s-5);
    border-top: 0;
  }
  /* a node on the path for every step */
  .how__steps > li::after {
    content: "";
    position: absolute;
    top: -4px;
    inset-inline-start: 0;
    width: 7px;
    height: 7px;
    background: var(--fg);
  }
  .how__steps > li.how__key::after { background: var(--accent-fill); width: 9px; height: 9px; top: -5px; }
  .how__steps > li::before { display: block; margin-bottom: var(--s-3); padding-top: 0; }
  html[dir="rtl"] .how__steps > li::before { text-align: right; }
}

/* ---------- 7 · CTA ---------- */
.cta { padding-top: calc(var(--section) * .7); }
.cta__in {
  display: grid;
  gap: var(--s-5);
  align-items: end;
  padding-bottom: calc(var(--section) * .6);
}
.cta__text { display: grid; gap: var(--s-3); }
.cta__text h2 { font-size: var(--fs-3xl); }
.cta__text p { max-width: 36rem; font-size: var(--fs-md); font-weight: 400; color: var(--fg-2); }
.cta__act { display: grid; gap: var(--s-3); justify-items: start; }
.cta__act .btn { gap: .6em; }
.cta__contact { color: var(--fg-3); text-transform: none; letter-spacing: .06em; }
.cta__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; }
html[dir="rtl"] .cta__contact { justify-content: flex-end; }
.cta__contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.cta__contact a:hover { color: var(--fg); }
@media (max-width: 519px) {
  .cta__act { justify-items: stretch; }
}
@media (min-width: 900px) {
  .cta__in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); }
  .cta__act { justify-items: end; }
}

/* phones and touch screens: a steady back-and-forth sweep.
   One transform on the compositor (no per-frame JS, no mask repaint), so low-end phones stay smooth.
   The lit copy of the drawing is skipped here; the warm beam passing over the faint drawing does the job. */
.hero--sweep .hero__dwg--lit { display: none; }
.hero--sweep .hero__glow {
  /* padded only where the beam can reach while it sweeps (down and away from the lamp),
     so the moving layer is about half the size it used to be. = SWEEP_PAD in home.js */
  top: -100px; bottom: -300px; left: -300px; right: -200px;
  transform-origin: var(--fl-x) var(--fl-y);
  animation: hero-sweep 6.5s ease-in-out infinite alternate;
  will-change: transform;
}
.hero--sweep .hero__hint { display: none; }
html[dir="rtl"] .hero--sweep .hero__glow { left: -200px; right: -300px; }
@keyframes hero-sweep {
  from { transform: rotate(-20deg); }
  to { transform: rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--sweep .hero__glow { animation: none; }
}

/* "Open" sits in the top row as a yellow chip; it stays the card's stretched link */
.gl__top .gl__go.chip { position: static; z-index: auto; min-height: 0; font-size: .6875rem; color: var(--on-accent); }
html[lang="ar"] .gl__top .gl__go.chip { font-size: .75rem; }
.gl__top .gl__go.chip .arrow, .gl:hover .gl__top .gl__go.chip { color: var(--on-accent); }

/* ---------- who we are: facts, no faces ---------- */
.about__in { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .about__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; } }
.about__text { display: grid; gap: var(--s-4); }
.about__text h2 { font-size: var(--fs-xl); max-width: 22ch; }
.about__text .lede { max-width: 34rem; }
.about__facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.about__facts li { display: grid; gap: .2rem; padding-block: var(--s-4); border-bottom: 1px solid var(--line-strong); }
.about__facts b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); }
.about__facts span { color: var(--fg-2); font-size: var(--fs-sm); }
.about__follow { grid-column: 1 / -1; }
.about__follow[hidden] { display: none; }
.cta__contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cta__contact a:hover { color: var(--accent-text); }
