/* =============================================================================================
   Zikr — ink on paper, light on OLED black. The only colour belongs to the beads.
   ============================================================================================= */

@font-face {
  font-family: "Allo";
  src: url("assets/fonts/AlloVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zikr Naskh";
  src: url("assets/fonts/naskh.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+060C, U+061B, U+061F, U+0621-065F, U+0670-0671, U+0679, U+0688, U+0691, U+06BA, U+06BE, U+06C1-06C2, U+06CC, U+06D2-06D4;
}

:root {
  --paper: #F6F4EF;
  --paper-2: #EEEBE4;
  --surface: #FAF9F5;
  --raise: #FFFFFF;
  --ink: #121110;
  --ink-2: #4C4A45;
  --ink-3: #6B6862;
  --hair: rgba(18, 17, 16, .09);
  --line: rgba(18, 17, 16, .17);
  --wash: rgba(18, 17, 16, .045);
  --spot: rgba(255, 255, 255, 1);
  --spot-soft: rgba(255, 255, 255, .55);
  --depth: 0 1px 1px rgba(18, 17, 16, .03), 0 18px 40px -22px rgba(18, 17, 16, .22);
  --bezel: #0B0B0B;
  --gutter: 16px;
  --maxw: 1240px;
  --header: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Allo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --naskh: "Zikr Naskh", "Noto Naskh Arabic", "Geeza Pro", "Damascus", "Arial", serif;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  color-scheme: light;
  interpolate-size: allow-keywords;
}
[data-theme="dark"] {
  --paper: #000000;
  --paper-2: #0A0A0A;
  --surface: #080808;
  --raise: #111111;
  --ink: #ECEAE4;
  --ink-2: #B4B2AC;
  --ink-3: #8F8D86;
  --hair: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .17);
  --wash: rgba(255, 255, 255, .045);
  --spot: rgba(34, 33, 31, 1);
  --spot-soft: rgba(28, 28, 27, .6);
  --bloom: rgba(70, 64, 54, 1);
  --depth: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #000000; --paper-2: #0A0A0A; --surface: #080808; --raise: #111111;
    --ink: #ECEAE4; --ink-2: #B4B2AC; --ink-3: #8F8D86;
    --hair: rgba(255, 255, 255, .085); --line: rgba(255, 255, 255, .17); --wash: rgba(255, 255, 255, .045);
    --spot: rgba(34, 33, 31, 1); --spot-soft: rgba(28, 28, 27, .6);
    --depth: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 12px);
  scrollbar-color: var(--line) transparent;
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "ROND" 24;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--ink);
}
::selection { background: var(--ink); color: var(--paper); }
img, svg, canvas { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), fill .5s, stroke .5s !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 13vw, 184px); position: relative; }

.arabic { font-family: var(--naskh); font-variation-settings: normal; line-height: 1.9; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------------------------------------------------------------------------- type */
.display {
  font-size: clamp(2.85rem, 8.6vw, 6rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -0.035em;
  font-variation-settings: "ROND" 16, "opsz" 32;
  text-wrap: balance;
}
.display .soft { color: var(--ink-3); }
.h2 {
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
  font-weight: 220;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "ROND" 16, "opsz" 32;
  text-wrap: balance;
  max-width: 17ch;
}
.h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.005em; }
.lead {
  margin-top: 22px;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}
.label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); }
.fine { font-size: .875rem; color: var(--ink-3); line-height: 1.5; margin-top: 18px; max-width: 46em; }
.of { color: var(--ink-3); font-weight: 300; }

/* ---------------------------------------------------------------------------------- controls */
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--hair);
  background: transparent; color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), opacity .25s;
}
.icon-btn:hover { background: var(--wash); border-color: var(--line); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn--solid:hover { background: var(--ink); opacity: .88; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: .95rem; font-weight: 500; letter-spacing: -0.005em;
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .2s var(--ease);
}
.pill:hover { background: var(--wash); }
.pill:active { transform: scale(.97); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--solid:hover { background: var(--ink); opacity: .9; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--hair); background: var(--wash); }
.seg button {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font-size: .9rem; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s;
}
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--raise); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--hair); }
.seg--sm button { min-height: 34px; padding: 0 13px; font-size: .85rem; }

.soon {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
}
.soon__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.soon__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.soon--lg { min-height: 58px; padding: 0 28px 0 22px; font-size: 1.08rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color .2s, gap .3s var(--ease); }
.link-arrow:hover { color: var(--ink); gap: 12px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.cta-row--center { justify-content: center; }

.ticks { margin-top: 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1px; background: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair); font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------------------------------- reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* The hero never waits for scripts: it rises on its own as soon as the page paints. */
.js .hero [data-reveal] {
  opacity: 1; transform: none; filter: none; transition: none;
  animation: zr-rise 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 80ms + 60ms);
}
@keyframes zr-rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

/* ---------------------------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before, .menu-open .site-header::before { opacity: 1; }
.site-header__in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 22px; height: 26px; color: var(--ink); }
.brand__word { font-size: 1.22rem; font-weight: 400; letter-spacing: -0.02em; font-variation-settings: "ROND" 30, "opsz" 24; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .94rem; transition: color .2s; padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.tools { display: flex; gap: 6px; }
.tools .icon-btn { border-color: transparent; }
.tools .icon-btn:hover { border-color: var(--hair); }
[data-sound-toggle] .i-spk { fill: currentColor; stroke: none; }
[data-sound-toggle] .i-off { opacity: 0; transition: opacity .25s; }
[data-sound-toggle] .i-on { transition: opacity .25s; }
[data-sound-toggle][aria-pressed="false"] .i-off { opacity: 1; }
[data-sound-toggle][aria-pressed="false"] .i-on { opacity: 0; }
[data-theme-toggle] svg * { transition: opacity .4s var(--ease), transform .6s var(--ease); transform-origin: 12px 12px; }
[data-theme-toggle] .i-sun, [data-theme-toggle] .i-rays { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme="dark"] [data-theme-toggle] .i-sun, [data-theme="dark"] [data-theme-toggle] .i-rays { opacity: 1; transform: none; }
[data-theme="dark"] [data-theme-toggle] .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
.menu {
  position: absolute; left: 0; right: 0; top: var(--header);
  background: var(--paper); border-bottom: 1px solid var(--hair);
  padding: 8px var(--gutter) 24px; display: grid;
  max-height: calc(100svh - var(--header)); overflow: auto;
}
.menu[hidden] { display: none; }
.menu a { padding: 13px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 1.4rem; font-weight: 250; letter-spacing: -0.02em; }
.menu a:last-child { border-bottom: 0; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------------------------------------------------------------------------------- hero */
.hero { position: relative; padding-top: calc(var(--header) + 28px); min-height: 100svh; display: grid; align-content: start; overflow-x: clip; }
.hero__copy { padding-inline: var(--gutter); position: relative; z-index: 3; }
.hero__copy .lead { max-width: 30em; }
.hero__stage {
  position: relative; margin-top: 8px;
  height: max(480px, min(76svh, 680px));
  touch-action: pan-y;
  isolation: isolate;
}
.hero__spot {
  position: absolute; left: 50%; top: 54%; width: min(130vw, 980px); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--spot), var(--spot-soft) 38%, transparent 72%);
  z-index: -1; pointer-events: none; opacity: .95;
}
.hero__spot.is-bloom { animation: bloom 2.4s var(--ease); }
@keyframes bloom { 0% { transform: scale(1); opacity: .95; } 18% { transform: scale(1.18); opacity: 1; filter: brightness(1.15); } 100% { transform: scale(1); opacity: .95; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__touch { position: absolute; inset: 0; z-index: 2; cursor: grab; border-radius: 28px; }
.hero__touch:active { cursor: grabbing; }
.hero__touch:focus-visible { outline-offset: -6px; }
.hero__readout { position: absolute; left: 0; right: 0; top: 4%; text-align: center; z-index: 1; pointer-events: none; padding-inline: 22%; }
.hero__ar { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.6; color: var(--ink); }
.hero__tr { font-size: .9rem; color: var(--ink-3); margin-top: 2px; }
.hero__num { margin-top: clamp(6px, 2svh, 18px); display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.hero__num .num { font-size: clamp(3.6rem, 13vw, 5.6rem); font-weight: 100; line-height: 1; letter-spacing: -0.04em; font-variation-settings: "ROND" 10, "opsz" 32; display: inline-block; min-width: 1.2ch; }
.hero__num .of { font-size: 1.2rem; }
.num.is-tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: translateY(6px); opacity: .4; } 100% { transform: none; opacity: 1; } }
.is-almost .hero__num .num { animation: almost .9s var(--ease); }
@keyframes almost { 30% { opacity: .45; } }
.hero__hint {
  margin-top: 10px; font-size: .84rem; color: var(--ink-3); line-height: 1.35;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-touched .hero__hint { opacity: 0; transform: translateY(-4px); }
.hero__beads { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 26px; }
.hero__beads .label { margin-right: 10px; }
@media (max-width: 520px) { .hero__beads .label { width: 100%; margin: 0 0 2px; } .hero__beads { margin-left: -10px; } .hero__beads .label { margin-left: 10px; } }
.hero__beads button {
  width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; display: grid; place-items: center;
}
.hero__beads button::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--sw);
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--ease), box-shadow .35s;
}
.hero__beads button[aria-pressed="true"]::before { transform: scale(1.18); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.hero__beads button:hover::before { transform: scale(1.12); }
.hero__again {
  position: absolute; left: 50%; top: 38%; translate: -50% 0; z-index: 4; text-align: center;
  padding: 18px 18px 16px; border-radius: 22px; background: color-mix(in oklab, var(--raise) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--hair); box-shadow: var(--depth); width: max-content; max-width: calc(100% - 32px);
  animation: rise .7s var(--ease);
}
.hero__again p { font-size: 1.15rem; font-weight: 300; margin-bottom: 12px; }
.hero__again .pill-row { justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.noscript { position: absolute; inset: auto 0 45% 0; text-align: center; color: var(--ink-3); }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; align-content: center; padding-top: var(--header); }
  .hero__copy { padding-left: var(--edge); padding-right: 0; padding-bottom: 6svh; }
  .hero__stage { height: calc(100svh - var(--header)); max-height: 1000px; min-height: 620px; margin-top: 0; }
  .hero__readout { top: 6%; }
  .hero__stage { margin-bottom: 0; }

}

/* ---------------------------------------------------------------------------------- scroll dhikr */
.dhikr { position: relative; height: 440vh; height: 440svh; }
.dhikr__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.dhikr__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dhikr__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 50% at 52% 60%, var(--spot-soft), transparent 70%);
}
.dhikr__bloom {
  position: absolute; left: 46%; top: 60%; width: 160vmax; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--bloom, #fff), var(--spot-soft) 30%, transparent 62%);
  transform: scale(.05); opacity: 0; transition: transform 2.2s var(--ease), opacity 1.6s var(--ease);
}
.is-bloom .dhikr__bloom { transform: scale(1); opacity: 1; }
.dhikr__copy { position: absolute; top: calc(var(--header) + 3svh); left: var(--gutter); right: var(--gutter); z-index: 1; pointer-events: none; }
.dhikr__copy .h2 { max-width: 9ch; font-size: clamp(2rem, 8vw, 4rem); }
@media (min-width: 900px) { .dhikr__copy .h2 { max-width: 13ch; } }
.dhikr__copy > p { max-width: 60%; }
.dhikr__ar { margin-top: 10px; text-align: left; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.6; }
.dhikr__tr { color: var(--ink-3); font-size: .95rem; }
.dhikr__captions { position: absolute; left: var(--gutter); right: 40%; bottom: calc(124px + 2svh); z-index: 1; display: grid; }
.dhikr__captions li {
  grid-area: 1 / 1; font-size: clamp(1rem, 3.6vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 22em;
  opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.dhikr__captions li.is-on { opacity: 1; transform: none; filter: none; }
.dhikr__meter { position: absolute; left: var(--gutter); right: 42%; bottom: calc(20px + 1svh); z-index: 1; }
.dhikr__num { display: flex; align-items: baseline; gap: 10px; }
.dhikr__num .num { font-size: clamp(3.6rem, 15vw, 7rem); font-weight: 100; line-height: .9; letter-spacing: -0.04em; font-variation-settings: "ROND" 10, "opsz" 32; }
.dhikr__ticks { display: grid; grid-template-columns: repeat(33, 1fr); align-items: end; margin-top: 16px; max-width: 460px; height: 18px; }
.dhikr__ticks i { justify-self: start; width: 1.5px; height: 9px; border-radius: 1px; background: var(--line); transform-origin: bottom; transition: background-color .4s, transform .6s var(--ease); }
.dhikr__ticks i:nth-child(11n) { height: 14px; }
.dhikr__ticks i.on { background: var(--ink); transform: scaleY(1.35); }
.is-almost .dhikr__num .num { animation: almost 1.2s var(--ease) infinite; }
@media (min-width: 900px) {
  .dhikr__copy { top: 20svh; left: var(--edge); right: auto; width: 40%; }
  .dhikr__captions { left: var(--edge); right: auto; width: 34%; bottom: calc(9svh + 150px); }
  .dhikr__meter { left: var(--edge); right: auto; width: 36%; bottom: 9svh; }
  .dhikr__copy > p { max-width: none; }
}

/* ---------------------------------------------------------------------------------- instruments */
.head-row { display: grid; gap: 26px; align-items: end; }
.head-row__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 900px) {
  .head-row { grid-template-columns: 1fr auto; }
  .rail-nav { display: flex; }
  .head-row__tools { justify-content: flex-end; }
}
.instr__rail {
  margin-top: 44px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 330px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px var(--edge) 28px; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.instr__rail::-webkit-scrollbar { display: none; }
.instr { scroll-snap-align: start; }
.instr__stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; cursor: pointer;
  background: radial-gradient(80% 70% at 50% 42%, var(--spot), transparent 75%), var(--surface);
  border: 1px solid var(--hair);
  transition: transform .5s var(--ease), border-color .3s;
}
.instr__stage:hover { border-color: var(--line); }
.instr__stage:active { transform: scale(.985); }
.instr__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .36s var(--ease), opacity .36s; }
.is-flipping .instr__stage canvas { transform: scaleX(.02); opacity: .3; }
.instr h3 { margin-top: 18px; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; }
.instr p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; max-width: 30em; }
@media (min-width: 1100px) { .instr__rail { grid-auto-columns: 340px; gap: 18px; } }

/* ---------------------------------------------------------------------------------- screens */
.screens { padding-bottom: 6vh; }
.screens__grid { display: grid; margin-top: 10px; }
.screens__phone-wrap {
  position: sticky; top: var(--header); z-index: 2;
  height: 64svh; padding: 18px 0 30px; display: flex; justify-content: center;
  background: linear-gradient(var(--paper) 94%, transparent);
}
.phone {
  height: 100%; aspect-ratio: 740 / 1620; border-radius: 9% / 4.2%; padding: 1.4%;
  background: var(--bezel);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 0 1px var(--hair), 0 40px 80px -40px rgba(0,0,0,.55);
}
.phone__glass { position: relative; width: 100%; height: 100%; border-radius: 8% / 3.7%; overflow: hidden; background: #000; }
.phone__glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.phone__glass img.is-on { opacity: 1; transform: none; }
.steps li { min-height: 52svh; display: flex; flex-direction: column; justify-content: center; padding-block: 8svh; opacity: .32; transition: opacity .6s var(--ease); }
.steps li.is-on { opacity: 1; }
.steps h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 250; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; color: var(--ink-2); max-width: 26em; }
@media (min-width: 900px) {
  .screens__grid { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
  .screens__phone-wrap { top: 12svh; height: 76svh; background: none; padding: 0; order: 2; }
  .screens__steps { order: 1; }
  .steps li { min-height: 76svh; }
}

/* ---------------------------------------------------------------------------------- materials */
.mat { margin-top: 48px; display: grid; gap: 22px; }
.mat__stage {
  position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--surface); border: 1px solid var(--hair);
}
.mat__spot { position: absolute; inset: -10%; background: radial-gradient(45% 40% at 50% 42%, var(--mat-glow, transparent), transparent 70%), radial-gradient(60% 55% at 50% 42%, var(--spot), transparent 75%); transition: background .8s; }
.mat__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat__info { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 4px; pointer-events: none; }
.mat__info .pill { position: absolute; right: 0; top: auto; bottom: 0; pointer-events: auto; background: color-mix(in oklab, var(--raise) 70%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mat__note { padding-right: 170px; }
.mat__name { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 250; letter-spacing: -0.025em; line-height: 1.05; width: 100%; }
.mat__note { color: var(--ink-2); font-size: .98rem; }
.is-swap .mat__name, .is-swap .mat__note { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.mat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mat__tile {
  position: relative; border: 1px solid transparent; background: transparent; border-radius: 18px; padding: 6px 2px 8px;
  display: grid; justify-items: center; gap: 2px; transition: background-color .3s, border-color .3s;
}
.mat__tile canvas { width: 100%; max-width: 76px; aspect-ratio: 1; }
.mat__tile span { font-size: .74rem; color: var(--ink-2); line-height: 1.2; text-align: center; }
.mat__tile:hover { background: var(--wash); }
.mat__tile[aria-checked="true"] { border-color: var(--line); background: var(--wash); }
.mat__tile[aria-checked="true"] span { color: var(--ink); }
.silk { margin-top: 26px; }
.silk__row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.silk__row button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: .86rem; }
.silk__row button i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 45%), repeating-linear-gradient(60deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px), var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.silk__row button[aria-checked="true"] { border-color: var(--line); color: var(--ink); }
.silk .fine { margin-top: 20px; }
@media (min-width: 720px) { .mat__grid { grid-template-columns: repeat(7, 1fr); } .mat__stage { aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) {
  .mat { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 36px; }
  .mat__stage { aspect-ratio: 1 / 1.02; position: sticky; top: calc(var(--header) + 24px); }
  .mat__grid { grid-template-columns: repeat(7, 1fr); }
}

/* ---------------------------------------------------------------------------------- feel */
.feel__block { margin-top: 56px; }
.feel__block .h3 { margin-bottom: 16px; }
.feel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feel__card {
  position: relative; text-align: left; border-radius: 22px; padding: 16px 16px 18px;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  display: grid; gap: 2px; align-content: start;
  transition: background-color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.feel__card:hover { border-color: var(--line); }
.feel__card b { font-weight: 500; font-size: 1rem; margin-top: 12px; }
.feel__card > span:last-child { font-size: .86rem; color: var(--ink-3); line-height: 1.35; }
.feel__wave { display: block; height: 40px; }
.wave { width: 100%; height: 40px; overflow: visible; }
.wave__base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wave__bar { fill: var(--ink); opacity: .78; }
.wave__fill { fill: var(--ink); opacity: .7; }
.wave__head { stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; }
.feel__card.is-playing { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feel__card.is-playing > span:last-child { color: color-mix(in oklab, var(--paper) 72%, transparent); }
.feel__card.is-playing .wave__bar, .feel__card.is-playing .wave__fill { fill: var(--paper); }
.feel__card.is-playing .wave__base { stroke: color-mix(in oklab, var(--paper) 35%, transparent); }
.feel__card.is-playing .wave__head { stroke: var(--paper); animation: head var(--dur, 400ms) linear forwards; }
@keyframes head { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(112px); } }
.feel__card.is-playing { animation: buzz .18s linear 2; }
@keyframes buzz { 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@media (min-width: 720px) { .feel__grid { grid-template-columns: repeat(4, 1fr); } .feel__grid--sig, .feel__grid--voice { grid-template-columns: repeat(5, 1fr); } }

/* ---------------------------------------------------------------------------------- headless */
.headless {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: #000; color: #ECEAE4; --ink: #ECEAE4; --ink-2: #B4B2AC; --ink-3: #8F8D86; --line: rgba(255,255,255,.2); --hair: rgba(255,255,255,.1); --wash: rgba(255,255,255,.06);
  padding-bottom: 180px;
}
.headless::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 60%, rgba(255, 246, 230, .2), rgba(255, 246, 230, .05) 45%, transparent 75%), #121110;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.headless.is-lit::before { opacity: 1; }
.headless__pad { position: absolute; inset: 0; z-index: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.headless__pad canvas { width: 100%; height: 100%; }
.headless__pad:focus-visible { outline: 1px solid rgba(255,255,255,.4); outline-offset: -12px; }
.headless__copy { position: relative; z-index: 1; pointer-events: none; padding-top: clamp(110px, 16svh, 180px); transition: opacity 1.2s var(--ease); }
.headless.is-active .headless__copy { opacity: .18; }
.headless__count { position: absolute; left: 0; right: 0; top: 56%; z-index: 1; pointer-events: none; text-align: center; color: rgba(236, 234, 228, .22); transition: color .8s var(--ease); }
.headless__count .num { font-size: clamp(5rem, 22vw, 12rem); font-weight: 100; letter-spacing: -0.05em; line-height: 1; font-variation-settings: "ROND" 10, "opsz" 32; }
.headless__count .of { color: inherit; font-size: 1.3rem; }
.headless.is-lit .headless__count { color: rgba(236, 234, 228, .85); }
.headless__hint { position: absolute; left: 0; right: 0; bottom: 48px; text-align: center; pointer-events: none; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 234, 228, .4); animation: breathe 4s ease-in-out infinite; }
.headless.is-active .headless__hint { opacity: 0; animation: none; }
@keyframes breathe { 50% { opacity: .35; } }
.headless__done { position: absolute; left: 50%; top: 76%; translate: -50% 0; z-index: 2; text-align: center; animation: rise .9s var(--ease); }
.headless__q { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 200; letter-spacing: -0.02em; margin-bottom: 16px; }
.pill--light { background: #ECEAE4; color: #000; border-color: #ECEAE4; }
.pill--light:hover { background: #fff; }
.pill--ghost { border-color: rgba(255,255,255,.25); color: #ECEAE4; }
.headless__toast { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; font-size: .92rem; color: rgba(236,234,228,.7); opacity: 0; pointer-events: none; }
.headless__toast.is-on { animation: toast 2.6s var(--ease); }
@keyframes toast { 12%, 75% { opacity: 1; transform: none; } 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 0; } }

/* ---------------------------------------------------------------------------------- split layouts */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 6vw; }
  .split--wide { grid-template-columns: 1.05fr 1fr; align-items: start; }
}

/* ---------------------------------------------------------------------------------- headset */
.headset__fig { position: relative; display: grid; justify-items: center; padding: 10px 0; }
.lockphone { position: relative; width: min(270px, 74vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 9px; background: var(--bezel); box-shadow: 0 0 0 1px var(--hair), var(--depth); }
.lockphone__key { position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: #2a2a29; transition: transform .14s var(--ease), background-color .14s; }
.lockphone__key--up { top: 22%; height: 46px; }
.lockphone__key--down { top: calc(22% + 54px); height: 46px; }
[data-press="up"] .lockphone__key--up, [data-press="down"] .lockphone__key--down { transform: translateX(-2px); background: #8a8a87; }
.lockphone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden; color: #ECEAE4; padding: 28px 18px 18px; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(80% 50% at 50% 30%, #1a1918, #000 70%);
}
.lockphone__lock { width: 18px; height: 18px; fill: none; stroke: rgba(236,234,228,.75); stroke-width: 1.5; }
.lockphone__time { margin-top: 10px; font-size: 3.6rem; font-weight: 150; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lockphone__sub { font-size: .78rem; color: rgba(236,234,228,.6); margin-top: 6px; }
.lockphone__note { margin-top: auto; width: 100%; border-radius: 22px; padding: 14px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); transition: background-color .3s; }
[data-press]:not([data-press=""]) .lockphone__note { background: rgba(255,255,255,.12); }
.lockphone__app { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,234,228,.6); }
.lockphone__count { margin-top: 2px; }
.lockphone__count .num { font-size: 2.2rem; font-weight: 200; letter-spacing: -0.03em; }
.lockphone__count .of { color: rgba(236,234,228,.55); }
.lockphone__line { font-size: .8rem; color: rgba(236,234,228,.72); line-height: 1.35; }
.is-complete .lockphone__note { background: rgba(255, 246, 230, .16); }
.vol { margin-top: 12px; display: flex; align-items: center; gap: 10px; width: 100%; font-size: .72rem; color: rgba(236,234,228,.55); }
.vol__bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.vol__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; border-radius: 2px; background: rgba(236,234,228,.75); }
.bud { position: absolute; right: max(2%, calc(50% - 250px)); bottom: 12%; width: 110px; overflow: visible; }
.bud__cable { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; }
.bud__remote { fill: var(--surface); stroke: var(--line); }
.bud__btn { fill: var(--ink-3); transition: fill .14s, transform .14s var(--ease); transform-origin: 80px 172px; }
[data-press="bud"] .bud__btn { fill: var(--ink); transform: scale(.82); }
.bud__pm { stroke: var(--ink-3); stroke-width: 1.2; stroke-linecap: round; }
.headset__fig figcaption { margin-top: 18px; text-align: center; }
@media (max-width: 520px) { .bud { width: 84px; right: 0; bottom: 18%; } }

/* ---------------------------------------------------------------------------------- routines */
.routine { position: relative; padding-left: 4px; }
.routine::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.routine__step { position: relative; padding: 16px 70px 16px 40px; border-bottom: 1px solid var(--hair); transition: opacity .5s var(--ease); }
.routine__step::before {
  content: ""; position: absolute; left: 1px; top: 28px; width: 19px; height: 19px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9b9b9 45%, #4a4a4a); transform: scale(.5); opacity: .5;
  transition: transform .6s var(--ease), opacity .6s, box-shadow .6s;
}
.routine__step.is-done::before { transform: scale(.62); opacity: .95; }
.routine__step.is-now::before { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px var(--wash); }
.routine__step .arabic { font-size: clamp(1.25rem, 3.4vw, 1.6rem); text-align: left; line-height: 1.8; }
.routine__en { color: var(--ink-2); font-size: .95rem; }
.routine__x { position: absolute; right: 0; top: 22px; font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 300; color: var(--ink-2); }
.routine__step.is-now .routine__x { color: var(--ink); }
.routine__step.is-sub { margin-left: 26px; }
.routine__step.is-sub::before { left: -25px; }
.routine__tag { display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; margin-bottom: 4px; }
.eos { margin-top: 36px; padding: 22px; border-radius: 26px; border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--depth); max-width: 460px; }
.eos__state { color: var(--ink-3); font-size: .9rem; }
.eos__q { font-size: 1.7rem; font-weight: 250; letter-spacing: -0.02em; margin: 2px 0 16px; }
.is-moved .eos__q, .is-moved .eos__state { animation: swap .6s var(--ease); }
.eos__result { min-height: 1.5em; margin-top: 14px; }

/* ---------------------------------------------------------------------------------- reciting */
.aids { margin-top: 52px; display: grid; gap: 22px; }
@media (min-width: 900px) { .aids { grid-template-columns: repeat(3, 1fr); } }
.aid { display: grid; gap: 16px; align-content: start; }
.aid figcaption { display: grid; gap: 4px; }
.aid figcaption b { font-weight: 500; }
.aid figcaption span { color: var(--ink-3); font-size: .92rem; }
.aid__image { position: relative; aspect-ratio: 4 / 4.2; border-radius: 26px; overflow: hidden; border: 1px solid var(--hair); background: var(--surface); padding: 0; cursor: zoom-in; }
.aid__image.is-zoomed { cursor: zoom-out; }
.page { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; transition: transform .8s var(--ease); }
.is-zoomed .page { transform: scale(2.1); }
.page__frame {
  width: 100%; height: 100%; display: grid; place-content: center; gap: 16px; text-align: center;
  border: 1px solid var(--line); outline: 1px solid var(--hair); outline-offset: -8px; border-radius: 14px;
  background: radial-gradient(70% 60% at 50% 40%, var(--spot), transparent 80%), var(--paper-2);
}
.page__line { font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--ink); line-height: 1.7; }
.page__line--sm { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ink-2); }
.page__rule { width: 44px; height: 1px; background: var(--line); margin-inline: auto; }
.player { aspect-ratio: 4 / 4.2; border-radius: 26px; border: 1px solid var(--hair); background: var(--surface); padding: 22px; display: grid; align-content: center; gap: 22px; }
.player__wave { height: 96px; display: flex; align-items: center; gap: 2px; }
.player__wave i { flex: 1; min-height: 3px; border-radius: 2px; background: var(--line); transition: background-color .15s; }
.player__wave i.on { background: var(--ink); }
.player__row { display: flex; align-items: center; gap: 14px; }
.player__time { flex: 1; color: var(--ink-2); font-size: .95rem; }
[data-play] .i-pause { display: none; }
[data-play][aria-pressed="true"] .i-pause { display: block; }
[data-play][aria-pressed="true"] .i-play { display: none; }
[data-play] .i-play { fill: currentColor; stroke: none; }
[data-loop][aria-pressed="true"] { background: var(--wash); border-color: var(--line); }
[data-loop][aria-pressed="false"] { opacity: .5; }
.player .seg { justify-self: start; }
.fit { position: relative; aspect-ratio: 4 / 4.2; border-radius: 26px; border: 1px solid var(--hair); background: var(--surface); overflow: hidden; }
.fit__text {
  position: absolute; inset: 0; overflow: auto; padding: 44px 24px 64px; font-size: calc(1.45rem * var(--fit, 1)); line-height: 2.05; text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent);
  transition: font-size .45s var(--ease); scrollbar-width: none;
}
.fit__text::-webkit-scrollbar { display: none; }
.fit__tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.fit__tools .icon-btn { background: var(--raise); }

/* ---------------------------------------------------------------------------------- immersive device */
.device {
  position: relative; justify-self: center; width: min(360px, 100%); border-radius: 44px; padding: 20px 18px 22px;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--depth);
  display: grid; justify-items: center; gap: 18px; overflow: hidden;
}
.device::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 50% 48%, var(--spot), transparent 75%); transition: opacity 1s; }
.device__top, .device__bottom { transition: opacity .9s var(--ease); }
.device.is-counting .device__top, .device.is-counting .device__bottom { opacity: .12; }
.device__top { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--wash); border: 1px solid var(--hair); }
.device__top button { min-width: 44px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.device__top button[aria-checked="true"] { background: var(--raise); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.dial { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.dial:active .dial__num { transform: scale(.97); }
.dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__track { fill: none; stroke: var(--line); stroke-width: .6; }
.dial__arc { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 289.03; stroke-dashoffset: 289.03; transition: stroke-dashoffset .5s var(--ease); }
.dial__bead { position: absolute; inset: 0; transition: transform .5s var(--ease); pointer-events: none; }
.dial__bead i { position: absolute; left: calc(50% - 8px); top: calc(4% - 8px); width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9a9a9a 45%, #2c2c2c); box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.dial__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; transition: transform .2s var(--ease); }
.dial__num .num { font-size: clamp(3.4rem, 16vw, 4.6rem); font-weight: 100; letter-spacing: -0.04em; line-height: 1; font-variation-settings: "ROND" 10, "opsz" 32; }
.dial__num .of { font-size: 1rem; }
.device.is-complete::before { animation: glow 1.8s var(--ease); }
@keyframes glow { 20% { opacity: 1; filter: brightness(1.3); transform: scale(1.15); } }
.device__bottom { display: flex; gap: 10px; }
.hold { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 500; font-size: .92rem; touch-action: none; -webkit-user-select: none; user-select: none; }
.hold svg { width: 34px; height: 34px; }
.hold__track { fill: none; stroke: var(--hair); stroke-width: 2; }
.hold__arc { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.device__toast {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .92rem;
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.device__toast.is-on { transform: none; }
.device__toast button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------------------------- insights */
.ins { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ins__card { border-radius: 26px; border: 1px solid var(--hair); background: var(--surface); padding: 20px; min-width: 0; }
.ins__goal { display: grid; place-items: center; position: relative; }
.ins__goal svg { width: min(150px, 100%); }
.ins__goal p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ins__track { fill: none; stroke: var(--line); stroke-width: 1.2; }
.ins__arc { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.is-in .ins__arc, .ins.is-in .ins__arc { stroke-dashoffset: 122.9; }
.big { font-size: 2.6rem; font-weight: 150; letter-spacing: -0.04em; line-height: 1; display: block; }
.ins .of { font-size: .82rem; }
.ins__streak .big { margin-top: 12px; }
.dots { display: grid; grid-template-columns: repeat(7, 12px); gap: 9px 10px; margin-top: 18px; }
.dots i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }
.dots i.on { background: var(--ink); border-color: var(--ink); }
.dots i.today { box-shadow: 0 0 0 3px var(--wash); }
.ins__hours, .ins__history { grid-column: 1 / -1; }
.bars { margin-top: 16px; height: 110px; display: flex; align-items: flex-end; gap: 3px; }
.bars i { flex: 1; height: max(3px, calc(var(--h) * 100%)); border-radius: 2px 2px 0 0; background: var(--ink); opacity: .82; transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.bars i:nth-child(3n) { transition-delay: .08s; } .bars i:nth-child(3n+1) { transition-delay: .16s; }
.is-in .bars i { transform: none; }
.bars__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .72rem; color: var(--ink-3); }
.ins__history ul { margin-top: 10px; }
.ins__history li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair); font-size: .92rem; }
.ins__history li span:first-child { color: var(--ink-3); }
.chip { font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 520px) { .ins__history li { grid-template-columns: 1fr auto; } .ins__history li span:first-child { grid-column: 1 / -1; margin-bottom: -8px; } }
@media (min-width: 960px) { .ins { grid-template-columns: repeat(4, 1fr); } .ins__hours { grid-column: span 2; } }

/* ---------------------------------------------------------------------------------- prayer */
.prayer { margin-top: 48px; border-radius: 30px; border: 1px solid var(--hair); background: var(--surface); padding: clamp(18px, 3vw, 34px); }
.prayer__controls { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; }
.field { display: grid; gap: 8px; }
.field select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raise); color: var(--ink); font-size: .95rem; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.prayer__arc { width: 100%; height: auto; margin-top: 28px; overflow: visible; }
.arc__horizon { stroke: var(--line); stroke-width: 1; }
.arc__day { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.arc__night { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 5; }
.arc__now { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1 3; }
.arc__mark { transition: transform 1s var(--ease); }
.arc__mark circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.arc__mark text { font-size: 12px; fill: var(--ink-2); font-family: var(--sans); }
.arc__mark.is-minor circle { fill: var(--ink-3); stroke: none; }
.arc__mark.is-minor text { fill: var(--ink-3); font-size: 10.5px; }
.prayer__cols { display: grid; gap: 28px; margin-top: 22px; }
@media (min-width: 760px) { .prayer__cols { grid-template-columns: 1fr 1fr; } }
.prayer__times, .prayer__rem { margin-top: 10px; }
.prayer__times li, .prayer__rem li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.prayer__times li.is-minor { color: var(--ink-3); }
.prayer__times time, .prayer__rem time { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.prayer__rem li { display: grid; grid-template-columns: 1fr auto; }
.rem__rule { grid-column: 1; font-size: .84rem; color: var(--ink-3); }
.prayer__rem time { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* ---------------------------------------------------------------------------------- languages */
.langs { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.langs button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 14px; min-height: 44px;
  font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 250; letter-spacing: -0.02em; color: var(--ink-3);
  transition: color .3s, background-color .3s;
}
.langs button.arabic { font-family: var(--naskh); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.langs button:hover { color: var(--ink-2); }
.langs button[aria-pressed="true"] { color: var(--ink); background: var(--wash); }
.rtl-mock { justify-self: center; width: min(320px, 100%); border-radius: 38px; border: 1px solid var(--hair); background: var(--surface); padding: 18px; box-shadow: var(--depth); display: grid; gap: 10px; }
.rtl-mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rtl-mock__back, .rtl-mock__ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; }
.rtl-mock svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .rtl-mock__back svg, [dir="rtl"] .rtl-mock__arrow svg { transform: scaleX(-1); }
.rtl-mock__title { font-size: .95rem; font-weight: 500; }
.rtl-mock[lang="ar"] .rtl-mock__title, .rtl-mock[lang="ur"] .rtl-mock__title { font-family: var(--naskh); font-weight: 500; }
.rtl-mock__ar { text-align: center; font-size: 1.8rem; margin-top: 18px; }
.rtl-mock__num { text-align: center; }
.rtl-mock__num .num { font-size: 3.4rem; font-weight: 100; letter-spacing: -0.04em; }
.rtl-mock__strand { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 18px 0 8px; padding-top: 16px; }
.rtl-mock__strand i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9b9b9 45%, #4a4a4a); }
.rtl-mock__strand i.ct { opacity: .55; }
.rtl-mock__strand i.gap { width: 16px; background: none; border-bottom: 1px solid var(--line); border-radius: 0; height: 12px; }
.rtl-mock__arrow { position: absolute; top: -6px; left: 50%; translate: -50% 0; }
.rtl-mock__dock { display: flex; justify-content: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 999px; border: 1px solid var(--hair); }
.rtl-mock__dock i { width: 26px; height: 26px; border-radius: 50%; background: var(--wash); }
.is-swap.rtl-mock > * { animation: swap .6s var(--ease); }

/* ---------------------------------------------------------------------------------- privacy */
.vows { margin-top: 46px; }
.vows li { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--hair); }
.vows li:last-child { border-bottom: 1px solid var(--hair); }
.vows b { font-size: clamp(1.8rem, 5.2vw, 3.6rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "ROND" 16, "opsz" 32; }
.vows span { color: var(--ink-2); max-width: 34em; }
@media (min-width: 900px) { .vows li { grid-template-columns: 1.4fr 1fr; align-items: baseline; gap: 40px; } }

/* ---------------------------------------------------------------------------------- download */
.download { text-align: center; overflow: hidden; }
.download__in { display: grid; justify-items: center; }
.download__in .lead { margin-inline: auto; }
.download__ring { width: clamp(52px, 6vw, 72px); height: auto; margin-top: -40px; margin-bottom: 34px; color: var(--ink); overflow: visible; }
.download__beads { transform-origin: 100px 0; animation: pend 6s ease-in-out infinite; }
@keyframes pend { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
.download .display { max-width: 12ch; }

/* ---------------------------------------------------------------------------------- faq */
.faq__in { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq__in { grid-template-columns: 1fr 1.5fr; gap: 6vw; align-items: start; } .faq__in .h2 { position: sticky; top: calc(var(--header) + 32px); } }
.faq__list details { border-top: 1px solid var(--hair); }
.faq__list details:last-child { border-bottom: 1px solid var(--hair); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(1.06rem, 1.6vw, 1.22rem); font-weight: 400; letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.2px 14px no-repeat;
  transition: transform .5s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(135deg); }
.faq__list p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
.faq__list details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }

/* ---------------------------------------------------------------------------------- footer */
.site-footer { padding: clamp(80px, 12vw, 150px) 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.verse { text-align: center; }
.verse__ar { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.7; }
.verse__en { margin-top: 8px; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 300; color: var(--ink-2); }
.verse figcaption { margin-top: 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot { margin-top: clamp(64px, 9vw, 110px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 26px; border-top: 1px solid var(--hair); }
.maker { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink-2); font-size: .92rem; transition: color .25s; }
.maker:hover { color: var(--ink); }
.maker__logo { width: auto; height: 22px; color: var(--ink); }
.maker__name { color: var(--ink); font-weight: 500; }
.foot__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: .86rem; }

/* ---------------------------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .dhikr__captions li, .phone__glass img, .bars i, .ins__arc { transition-duration: .01ms !important; }
}
