/* ==========================================================================
   ADES ALOULA — layout and components
   Import tokens.css first.

   Structure of this file:
     1. Reset and base
     2. Shell and rhythm
     3. The burst (hero mark + scroll dial)
     4. Header and navigation
     5. Buttons and links
     6. Hero
     7. Sections: groups, brands, reasons, location, CTA
     8. Catalogue rows (products page)
     9. Footer
    10. Reveal states and reduced motion
   ========================================================================== */

/* 1. Reset and base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` would make body a scroll container and break
     the sticky header. clip contains the hero's glow without that. */
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

img, svg { display: block; max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--volt); color: var(--steel); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -100%;
  z-index: 100; padding: 0.7em 1.2em;
  background: var(--volt); color: var(--steel);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.6rem; }

/* Phone numbers and other Latin-digit values sitting in Arabic copy. Isolated
   so the browser cannot reorder the groups: without this, "091 897 3528" can
   have its space-separated runs laid out right-to-left by the bidi algorithm
   and read back as a different number. */
.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

/* Latin runs inside Arabic text — brand names, part numbers. Keeps them
   upright and correctly ordered without a wrapper on every instance. */
.lat {
  font-family: var(--font-display);
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0.01em;
}

/* 2. Shell and rhythm ----------------------------------------------------- */

.shell {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper .eyebrow { color: var(--volt-deep); }
.section--paper .rule { background: var(--line-paper); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.2rem;
  color: var(--volt);
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 1.6rem; height: 2px;
  background: currentColor;
  flex: none;
}

.h2 { font-size: var(--t-h2); max-width: 18ch; }
.lede {
  font-size: var(--t-lede);
  color: var(--snow-soft);
  max-width: var(--measure);
  margin-top: 1.1rem;
}
.section--paper .lede { color: var(--ink-soft); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 3. The burst ------------------------------------------------------------
   The client's own artwork (assets/img/burst.png, cropped out of the supplied
   lockup), used everywhere the mark appears. Large in the hero; a small fixed
   copy from the second section on, spinning against scroll inside a progress
   ring. Being a raster, it cannot be recoloured or lit arm-by-arm — which is
   the trade accepted for showing the genuine mark rather than a redraw. */

.burst { display: block; color: var(--volt); }

.burst-hero {
  width: clamp(170px, 24vw, 300px);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 60px var(--volt-glow));
  animation: burst-in 1.1s var(--ease-out) both;
}

/* The mark assembles once, on arrival. Under reduced motion the global
   duration override collapses this to its end state instantly. */
@keyframes burst-in {
  from { opacity: 0; transform: rotate(-35deg) scale(0.72); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}

.dial {
  position: fixed;
  inset-inline-start: clamp(0.75rem, 2vw, 2rem);
  bottom: clamp(0.75rem, 3vh, 2.5rem);
  z-index: 40;
  width: clamp(52px, 7vw, 78px);
  aspect-ratio: 1;
  /* The dial floats over the content column, so it needs its own ground to
     read against. That ground is a plain opaque disc — NOT backdrop-filter.
     A fixed element with a backdrop blur makes the compositor re-blur the
     region behind it on every scrolled frame, which stutters badly on phone
     GPUs. A flat fill costs nothing and reads just as clearly.
     No drop shadow either: it muddied the edge against dark content. */
  border-radius: 50%;
  background: color-mix(in srgb, var(--steel) 88%, transparent);
  box-shadow: 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
              visibility 0s linear 0.45s;
  pointer-events: none;
}
.dial.is-on {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

/* On a narrow screen it has to earn its space: smaller, and tucked hard into
   the corner so it reads as a progress instrument rather than something
   sitting on the content. It never intercepts a tap — pointer-events stays
   none — so anything beneath it is still reachable. */
@media (max-width: 700px) {
  .dial {
    width: 46px;
    /* Phones round their display corners by ~40px or more, which slices a disc
       parked 9px from the corner along exactly the two edges facing it. Sit
       well clear, and add the safe-area insets on top so the home indicator
       does not cut it either. The site is RTL, so inline-start is the right
       edge — hence safe-area-inset-right. */
    inset-inline-start: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  /* The ring is the read-out at this size; the mark inside is too small to
     resolve, so give the arc a little more presence. Scoped through .dial for
     specificity — the base stroke rules appear later in this file and would
     otherwise win on source order. */
  .dial .dial-arc  { stroke-width: 3.5; }
  .dial .dial-ring { stroke-width: 2; }
}
/* motion.js scrubs rotate() here directly against scroll position. No
   transition on purpose — the angle is already a function of scroll, so
   easing it would only make the mark lag the page. */
.dial-arms {
  transform-origin: 50px 50px;
  will-change: transform;
}

.dial-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
/* Progress arc, drawn by motion.js via stroke-dashoffset. */
.dial-arc {
  fill: none;
  stroke: var(--volt);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
}

/* 4. Header --------------------------------------------------------------- */

/* Opaque, not frosted. A sticky full-width bar with backdrop-filter makes the
   compositor re-blur that whole strip on every scrolled frame — the single
   most expensive thing that was on this page, and the cause of the scroll
   stutter. On a near-black ground a solid fill is visually almost identical
   and costs nothing. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--steel);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: none;
}
.logo-mark { width: 2.1rem; height: auto; aspect-ratio: 1; flex: none; }
/* The client's own wordmark, recoloured white from the supplied near-black
   artwork — not type. No font reproduces its crossbar-less A. Sized by height
   so it stays optically matched to the mark beside it whatever the aspect. */
.logo-word {
  display: block;
  height: 1.05rem;
  width: auto;
}
.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--snow-faint);
  direction: rtl;
  margin-top: 0.1em;
}

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(0.9rem, 2vw, 2.1rem); align-items: center; }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--t-small);
  color: var(--snow-soft);
  padding-block: 0.4em;
  transition: color var(--fast);
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform 0.28s var(--ease);
}
[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--snow); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--snow);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: var(--t-small);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--steel-2);
    border-block: 1px solid var(--line);
    margin: 0;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
  }
  .nav > ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav[data-open="true"] { grid-template-rows: 1fr; }
  .nav a {
    display: block;
    padding: 0.95rem var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
}

/* 5. Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--volt);
  --btn-fg: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--lift), box-shadow var(--lift),
              background var(--fast), color var(--fast);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--volt);
}
.btn:active { transform: translateY(0); transition: transform var(--press); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--snow);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--volt);
  box-shadow: none;
  color: var(--volt);
}

/* The arrow fires outward on hover and springs back — the button's own
   small echo of the burst. Travel is direction-aware via --dir. */
.btn-arrow {
  width: 0.85em; height: 0.85em;
  flex: none;
  fill: currentColor;
  transition: transform var(--lift);
}
.btn:hover .btn-arrow { transform: translateX(calc(var(--dir) * 0.3em)); }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(0.3em); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* 6. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 8vh, 7rem);
  overflow: hidden;
}
.hero::after {
  /* A single soft pool of cyan behind the mark, so the dark ground is not
     flat. Never strong enough to touch text contrast. */
  content: '';
  position: absolute;
  inset-inline-end: -10%;
  top: 50%;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--volt-glow) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  /* Wide enough that "بطاريات وقطع غيار" holds one line before the explicit
     break. The ch unit is measured off a Latin zero, which is far narrower
     than Arabic, so an Arabic measure needs a bigger number than it looks
     like it should. */
  max-width: 22ch;
  text-wrap: balance;
}
/* The brand name, set to echo the logo's lettering: heaviest weight, sized up
   against the headline beneath it, and tightened vertically the way a lockup
   is. No letter-spacing — Arabic is a joined script and tracking it would
   pull the letters apart at their connections. */
.hero h1 .brandline {
  display: block;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.1em;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0.14em;
}
.hero .lede { max-width: 46ch; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--snow-faint);
}
.hero-meta b { color: var(--snow); font-weight: 600; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .burst-hero {
    width: clamp(140px, 40vw, 220px);
    justify-self: start;
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* 7. Sections ------------------------------------------------------------- */

/* --- Product groups --- */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  /* Ground, not rule colour. Three cards in a two-column grid leave an empty
     cell, and a rule-coloured container would paint that gap as a solid
     block. The hairlines are drawn per card instead, so a short last row
     just ends. */
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--steel-2);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  isolation: isolate;
  transition: background var(--fast), transform var(--lift);
}
.group::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at var(--px, 50%) var(--py, 0%),
    var(--volt-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.group:hover { background: var(--steel-3); }
.group:hover::before { opacity: 1; }

.group-n {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--volt);
  letter-spacing: 0.1em;
}
.group h3 { font-size: var(--t-h3); }
.group p { color: var(--snow-soft); font-size: var(--t-small); }

.group-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}
.chip {
  padding: 0.3em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  color: var(--snow-soft);
  direction: ltr;
}
.group:hover .chip { border-color: var(--line-strong); color: var(--snow); }

.group-go {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--volt);
  font-size: var(--t-small);
  font-weight: 700;
}

/* --- Brand strip --- */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  /* Same reason as .groups: five brands never divide evenly into an auto-fit
     track count, so the container must not paint the leftover cells. */
  background: transparent;
  border-block: 1px solid var(--line-paper);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.brand {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-paper);
  padding: clamp(1.4rem, 3vw, 2rem) 1rem;
  text-align: center;
  transition: background var(--fast);
}
.brand:hover { background: var(--paper-2); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  direction: ltr;
  color: var(--ink);
}
.brand-ar { font-size: var(--t-small); color: var(--ink-soft); margin-top: 0.15em; }
.brand-kind {
  display: inline-block;
  margin-top: 0.6em;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--volt-deep);
  font-weight: 600;
}

/* --- Reasons --- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.reason { padding-top: 1.25rem; border-top: 2px solid var(--volt); }
.reason h3 { font-size: var(--t-h3); margin-bottom: 0.5rem; }
.reason p { color: var(--snow-soft); font-size: var(--t-small); }

/* --- Location --- */
.locale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--steel-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--snow-faint);
  font-size: var(--t-small);
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.dl { display: grid; gap: 1.4rem; }
.dl div { display: grid; gap: 0.25rem; }
.dl dt {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  font-family: var(--font-display);
  font-weight: 700;
}
.dl dd { margin: 0; font-size: var(--t-lede); }
.dl a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.dl a:hover { color: var(--volt); border-color: var(--volt); }

/* --- Closing CTA --- */
.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta h2 { font-size: var(--t-h2); max-width: 20ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* 8. Catalogue rows (products page) --------------------------------------- */

.cat { margin-top: clamp(2rem, 4vw, 3.5rem); }
.cat + .cat { margin-top: clamp(3rem, 6vw, 5rem); }

.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--volt);
}
.cat-head h2 { font-size: var(--t-h3); }
.cat-head .lat { color: var(--snow-faint); font-size: var(--t-small); }

.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--fast), padding-inline-start var(--fast);
}
.rows .row:last-child { border-bottom: 0; }
.row:hover {
  background: var(--steel-2);
  padding-inline-start: 1.25rem;
}
.row-n {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--snow-faint);
  font-variant-numeric: tabular-nums;
}
.row:hover .row-n { color: var(--volt); }
.row-ask {
  font-size: var(--t-small);
  color: var(--volt);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateX(calc(var(--dir) * -6px));
  transition: opacity var(--fast), transform var(--fast);
}
.row:hover .row-ask, .row:focus-within .row-ask {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 620px) {
  .row-ask { opacity: 1; transform: none; }
}

/* 9. Footer --------------------------------------------------------------- */

.site-foot {
  background: #090C0D;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: var(--t-small);
  color: var(--snow-faint);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 2rem;
}
.foot-grid h4 {
  margin: 0 0 0.9rem;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--snow);
  font-family: var(--font-display);
}
.foot-grid li + li { margin-top: 0.5rem; }
.foot-grid a { text-decoration: none; transition: color var(--fast); }
.foot-grid a:hover { color: var(--volt); }
.foot-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--t-micro);
}

/* Studio credit. All Latin inside an RTL footer, so it is isolated and set
   left-to-right — otherwise the bidi algorithm is free to reorder the words
   and the mark against each other. */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--snow-faint);
  transition: color var(--fast);
}
.byline:hover { color: var(--snow); }

/* The NIVO mark is drawn as a mask, not an <img>. Its SVG is authored with
   fill="currentColor", and an SVG loaded through <img> is an isolated
   document that cannot see this page's colour — it would render black on a
   near-black footer. Masking paints currentColor through the silhouette
   instead, so it follows the hover state for free. */
.nivo-mark {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url(../img/nivo.svg) center / contain no-repeat;
          mask: url(../img/nivo.svg) center / contain no-repeat;
}

/* Placeholder flag: any client field still unsent renders visibly amber so
   nothing invented reaches the client's customers. Disappears by itself the
   moment the value lands in site-data.js. */
/* A labelled control whose destination has not arrived. It keeps its words —
   so the page still reads the way it will ship — but is visibly inert and
   carries its own small flag. */
.is-pending {
  opacity: 0.5;
  pointer-events: none;
}
.btn.is-pending::after {
  content: 'قيد الاستلام';
  padding: 0.15em 0.5em;
  border: 1px dashed currentColor;
  border-radius: 3px;
  font-size: var(--t-micro);
  font-weight: 600;
  opacity: 0.85;
}

.pending {
  display: inline-block;
  padding: 0.15em 0.55em;
  border: 1px dashed #E0A82E;
  border-radius: 3px;
  color: #E0A82E;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  direction: rtl;
}

/* Cross-document transitions. Static multi-page site, so this is the whole
   implementation — motion.js only switches it off for reduced motion. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 0.22s var(--ease) both vt-out;
}
::view-transition-new(root) {
  animation: 0.34s var(--ease-out) both vt-in;
}
@keyframes vt-out { to { opacity: 0; transform: translateX(calc(var(--dir) * -18px)); } }
@keyframes vt-in  { from { opacity: 0; transform: translateX(calc(var(--dir) * 26px)); } }

/* 10. Reveal states and reduced motion ------------------------------------
   Hidden state is applied only when JS is running, so a failed CDN or a
   crawler still sees every word. motion.js animates from the vector held
   in --rx / --ry; the CSS fallback below covers browsers that get the
   class but never get GSAP. */

.js [data-reveal] {
  opacity: 0;
  transform: translate(var(--rx, 0), var(--ry, 14px));
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }
  /* Reveals become a plain fade — no travel at all. */
  .js [data-reveal] { transform: none !important; }
  .js [data-reveal].is-in { transform: none !important; }
  .btn:hover { transform: none; }
  .dial { transform: none !important; }
  /* motion.js guards the scrub too, but this also clears any inline rotation
     left over from before the setting was switched on. */
  .dial-arms { transform: none !important; }
}
