/* ============================================================
   استديو أرت — «أبيض فاخر»
   Ivory paper, ink type, one garnet accent, Cairo throughout. Motion is bold but carried by transform/opacity.
   ============================================================ */

:root {
  --bg: #f6f1ea;
  --bg-2: #eee6da;
  --paper: #fbf8f3;
  --ink: #141111;
  --ink-2: #2b2522;
  --muted: #6b625c;
  --muted-2: #8a807a;
  --accent: #a3183a;
  --accent-hi: #c22650;
  --accent-soft: rgba(163, 24, 58, .08);
  --line: rgba(20, 17, 17, .12);
  --line-2: rgba(20, 17, 17, .22);

  --d-bg: #1c1214;
  --d-card: #28191c;
  --d-text: #f6f1ea;
  --d-muted: #b8ada5;
  --d-accent: #e5537a;
  --d-line: rgba(246, 241, 234, .1);

  --display: 'Cairo', sans-serif;
  --body: 'Cairo', 'Segoe UI', sans-serif;
  --script: 'Aref Ruqaa', serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-2: cubic-bezier(.32, .72, 0, 1);
  --pad: clamp(18px, 4vw, 56px);
  --section: clamp(96px, 12vw, 180px);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body);
  font-size: 1.0625rem; line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 16px; }
.container { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem; color: var(--accent); font-weight: 700; font-size: .95rem; }
.kicker::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.title { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.22; margin: 0; }
.title em { font-style: normal; color: var(--accent); }
.title .thin { font-weight: 300; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 600px; margin: 1.2rem 0 0; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head--split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; gap: 2rem; }
.head--split .lead { margin: 0; }
.ph { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5em; padding: 0 .4em; border: 1px dashed var(--line-2); border-radius: .4em; color: var(--muted-2); font-size: .7em; line-height: 1.8; vertical-align: middle; font-family: var(--body); font-weight: 400; }

/* Word masks: each word rises out of its own window. */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.mw > span { display: inline-block; }
.js [data-words] .mw > span { transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.js [data-words].is-in .mw > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.9rem; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), color .45s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .55s var(--ease); }
.btn:hover svg { transform: translate(-4px, -3px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent::before { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink::before { background: var(--accent); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--bg); }
.btn--sm { padding: .7rem 1.3rem; font-size: .92rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.round {
  width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--ink); color: var(--bg); }
.link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--accent); }
.link svg { width: 1rem; transition: transform .5s var(--ease); }
.link:hover svg { transform: translate(-4px, -3px); }

/* ============================================================
   Intro: a garnet curtain lifts off the page
   ============================================================ */
.intro { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.intro__panel { position: absolute; inset: 0; background: var(--accent); display: grid; place-items: center; pointer-events: auto; }
.intro__logo { font-family: var(--display); font-weight: 900; color: #fff; font-size: clamp(5rem, 20vw, 16rem); line-height: 1; display: flex; }
.intro__logo span { display: inline-block; }
.intro__logo .dot { color: var(--ink); }
.intro__tag { position: absolute; bottom: 12vh; inset-inline: 0; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 700; }
.intro__skip { position: absolute; bottom: 24px; inset-inline-end: 24px; color: #fff; font-size: .9rem; padding: .4rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); pointer-events: auto; }
.intro-on .nav, .intro-on .dock, .intro-on .wa { opacity: 0; pointer-events: none; }

/* ============================================================
   Navigation
   ============================================================ */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; transition: opacity .8s var(--ease); }
.nav__bar {
  pointer-events: auto; width: 100%; max-width: 100%; display: flex; align-items: center; gap: 1.6rem;
  padding: 22px var(--pad); border-radius: 0; background: transparent;
  transition: max-width .8s var(--ease), margin .8s var(--ease), padding .8s var(--ease), border-radius .8s var(--ease), background-color .6s, box-shadow .6s, transform .7s var(--ease);
}
.nav.is-scrolled .nav__bar {
  max-width: 1120px; margin-top: 12px; padding: 10px 12px 10px 26px; padding-inline: 26px 10px; border-radius: 999px;
  background: rgba(251, 248, 243, .82); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 18px 50px -24px rgba(20, 17, 17, .35), inset 0 0 0 1px var(--line);
}
.nav.is-hidden .nav__bar { transform: translateY(-140%); }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; display: inline-flex; }
.logo i { font-style: normal; color: var(--accent); display: inline-block; transform-origin: 50% 80%; }
.nav__links { display: flex; gap: .2rem; margin-inline-start: auto; }
.nav__links a { position: relative; padding: .45rem .85rem; color: var(--muted); font-size: .95rem; font-weight: 700; transition: color .4s; }
.nav__links a::after { content: ''; position: absolute; bottom: .15rem; inset-inline: .85rem; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: right; }
.ambient { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 700; color: var(--muted); padding: .45rem .7rem; border-radius: 999px; transition: color .4s, background-color .4s; }
.ambient:hover { color: var(--ink); background: var(--accent-soft); }
.ambient[aria-pressed='true'] { color: var(--accent); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 30%; border-radius: 2px; background: currentColor; }
.is-live .eq i, [aria-pressed='true'] .eq i { animation: eq 1s var(--ease) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; place-items: center; }
.burger span { position: absolute; width: 18px; height: 1.6px; background: var(--bg); transition: transform .5s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--accent); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 40px; clip-path: circle(0 at calc(100% - 50px) 40px); transition: clip-path .9s var(--ease); }
[dir='rtl'] .menu { clip-path: circle(0 at 50px 40px); }
.menu.is-open { clip-path: circle(150% at 50px 40px); }
.menu a { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.45; width: max-content; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 60ms + 250ms); }
.menu.is-open a { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: grid; }
  .ambient__label { display: none; }
  .ambient { margin-inline-start: auto; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: 120px var(--pad) 70px; position: relative; }
.hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(3.1rem, 8.4vw, 8rem); line-height: 1.16; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title .l1 { font-weight: 300; }
.hero__title .l3 { color: var(--accent); }
.hero__lead { color: var(--muted); font-size: clamp(1.08rem, 1.4vw, 1.25rem); max-width: 560px; margin: 1.6rem 0 2.2rem; }
.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__ctas small { color: var(--muted); font-size: .95rem; font-weight: 700; }
.hero__media { position: relative; height: min(76vh, 660px); }
.arch { position: absolute; inset: 0; clip-path: inset(0 round 999px 999px 32px 32px); background: #2a1417; }
.arch video, .arch img { position: absolute; inset: 0; width: 100%; height: 115%; top: -7.5%; object-fit: cover; }
.arch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(163, 24, 58, .12), rgba(20, 17, 17, .35)); }
.now {
  position: absolute; z-index: 2; bottom: 22px; inset-inline: 22px; display: flex; align-items: center; gap: .9rem; text-align: start;
  padding: .85rem 1rem .85rem 1.2rem; padding-inline: 1.1rem .9rem; border-radius: 22px; background: rgba(251, 248, 243, .93);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); transition: transform .6s var(--ease);
}
.now:hover { transform: translateY(-4px); }
.now__play { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; }
.now__play svg { width: 16px; }
.now__play .i-pause, [data-state='playing'] > .now__play .i-play, .now[data-state='playing'] .now__play .i-play { display: none; }
.now[data-state='playing'] .now__play .i-pause { display: block; }
.now b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.4; }
.now small { color: var(--muted); font-size: .82rem; }
.now .bars { margin-inline-start: auto; display: flex; gap: 3px; align-items: center; height: 30px; }
.now .bars i { width: 3px; height: 30%; border-radius: 3px; background: var(--accent); transition: height .12s linear; }
.spin { position: absolute; z-index: 3; top: 9%; inset-inline-end: -46px; width: 140px; height: 140px; }
.spin svg { width: 100%; height: 100%; animation: rotate 18s linear infinite; }
.spin text { font-family: var(--display); font-weight: 700; font-size: 13.5px; fill: var(--ink); letter-spacing: 0; }
.spin button { position: absolute; inset: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: background-color .5s var(--ease), transform .5s var(--ease); }
.spin button:hover { background: var(--accent); transform: scale(1.08); }
.spin button svg { width: 20px; height: 20px; animation: none; }
@keyframes rotate { to { transform: rotate(-360deg); } }
.hero__cue { position: absolute; bottom: 26px; inset-inline-start: var(--pad); display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.hero__cue i { width: 1.5px; height: 40px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__cue i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 70%, 100% { transform: translateY(100%); } }

/* ============================================================
   Marquee — reacts to scroll speed and direction
   ============================================================ */
.marquee { border-block: 1px solid var(--line); padding: 1.6rem 0; overflow: hidden; user-select: none; }
.marquee__track { display: flex; width: max-content; direction: ltr; will-change: transform; }
.marquee__group { display: flex; align-items: center; direction: rtl; }
.marquee__item { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.2; padding-inline: clamp(1rem, 2vw, 2rem); white-space: nowrap; }
.marquee__item.o { color: rgba(20, 17, 17, .2); }
.marquee__star { color: var(--accent); font-size: clamp(1.4rem, 3vw, 2.4rem); }

/* ============================================================
   About + numbers
   ============================================================ */
.about__text { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.55; margin: 0; max-width: 1150px; }
.about__text .wd { transition: color .3s; }
.js .about__text .wd { color: rgba(20, 17, 17, .16); }
.js .about__text .wd.on { color: var(--ink); }
.js .about__text .wd.on.hl { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--line-2); }
.stat { padding: 1.6rem 0 0; padding-inline-end: 1.6rem; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 1.6rem; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__num small { color: var(--accent); font-size: .5em; }
.stat__label { color: var(--muted); font-weight: 700; }

/* ============================================================
   Services index with a floating preview
   ============================================================ */
.svc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.svc__row { position: relative; border-top: 1px solid var(--line-2); isolation: isolate; }
.svc__row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__btn { width: 100%; display: grid; grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: clamp(1.4rem, 2.6vw, 2.2rem) .6rem; text-align: start; transition: color .5s var(--ease); }
.svc__num { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 1rem; transition: color .5s; }
.svc__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.2; transition: transform .7s var(--ease); }
.svc__lead { color: var(--muted); font-size: 1rem; transition: color .5s; }
.svc__go { width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .5s, color .5s, box-shadow .5s; }
.svc__go svg { width: 20px; }
@media (hover: hover) {
  .svc__row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc__row:hover .svc__btn { color: #fff; }
  .svc__row:hover .svc__num, .svc__row:hover .svc__lead { color: rgba(255, 255, 255, .85); }
  .svc__row:hover .svc__title { transform: translateX(-18px); }
  .svc__row:hover .svc__go { background: #fff; color: var(--accent); box-shadow: none; transform: rotate(-45deg); }
}
.svc-float { position: fixed; top: 0; left: 0; z-index: 40; width: 250px; height: 330px; pointer-events: none; clip-path: inset(0 round 999px 999px 24px 24px); transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--ease); background: #2a1417; }
.svc-float.is-on { transform: translate(-50%, -50%) scale(1); }
.svc-float video { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Listening room — the one dark band
   ============================================================ */
.dark { background: var(--d-bg); color: var(--d-text); margin-inline: clamp(8px, 1.2vw, 18px); border-radius: clamp(28px, 4vw, 56px); transform-origin: 50% 0; }
.dark .kicker { color: var(--d-accent); }
.dark .title em { color: var(--d-accent); }
.dark .lead { color: var(--d-muted); }
.dark :focus-visible { outline-color: var(--d-accent); }
.dark .ph { border-color: var(--d-line); color: var(--d-muted); }
.panel { background: var(--d-card); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--d-line); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.3rem; align-content: start; }
.panel__tag { display: inline-flex; width: max-content; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--d-accent); background: rgba(229, 83, 122, .12); }
.panel__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.35; margin: 0; }
.panel__text { margin: 0; color: var(--d-muted); font-size: .98rem; }
.panel__note { margin: 0; color: var(--d-muted); font-size: .84rem; opacity: .8; }
.features { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }

.deck { display: flex; align-items: center; gap: 1rem; }
.play { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--d-accent); color: #fff; transition: transform .45s var(--ease), background-color .4s; }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.94); }
.play svg { width: 20px; height: 20px; }
.play .i-pause, .play[data-state='playing'] .i-play, .play[data-state='loading'] .i-play { display: none; }
.play[data-state='playing'] .i-pause { display: block; }
.play[data-state='loading'] { animation: breathe .9s var(--ease) infinite alternate; }
@keyframes breathe { to { transform: scale(.9); opacity: .7; } }
.play--sm { width: 46px; height: 46px; }
.play--sm svg { width: 16px; height: 16px; }
.wave { position: relative; flex: 1; height: 74px; cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; }
.time { font-size: .85rem; color: var(--d-muted); font-variant-numeric: tabular-nums; direction: ltr; min-width: 2.8rem; text-align: center; }
.switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; width: max-content; background: rgba(246, 241, 234, .06); box-shadow: inset 0 0 0 1px var(--d-line); }
.switch button { position: relative; z-index: 1; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--d-muted); transition: color .45s; white-space: nowrap; }
.switch button[aria-pressed='true'] { color: #fff; }
.switch__thumb { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--d-accent); transition: transform .55s var(--ease); }
.switch[data-pos='1'] .switch__thumb { transform: translateX(-100%); }
.ab { position: relative; flex: 1; height: 96px; touch-action: none; cursor: ew-resize; }
.ab canvas { width: 100%; height: 100%; }
.ab__handle { position: absolute; top: -8px; bottom: -8px; inset-inline-start: calc(var(--p, .5) * 100%); width: 2px; margin-inline-start: -1px; background: #fff; }
.ab__knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: var(--d-bg); display: grid; place-items: center; }
.ab__knob svg { width: 18px; }
.ab__labels { display: flex; justify-content: space-between; font-size: .84rem; color: var(--d-muted); }
.ab__labels b { color: #fff; font-weight: 700; }
.poem { margin-top: 14px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.poem__lines { display: grid; gap: 1rem; }
.poem__couplet { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.poem__line { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.7; margin: 0; }
.lw { opacity: .22; transition: opacity .3s, color .3s; }
.lw.on { opacity: 1; }
.lw.now { color: var(--d-accent); }

.library { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.library__bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.library__title { font-family: var(--display); font-weight: 700; font-size: 1.8rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: .5rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--d-muted); box-shadow: inset 0 0 0 1px var(--d-line); transition: background-color .4s, color .4s; }
.chip:hover { color: #fff; }
.chip[aria-pressed='true'] { background: var(--d-text); color: var(--d-bg); box-shadow: none; }
.search { position: relative; }
.search input { width: 230px; padding: .55rem 1rem; padding-inline-start: 2.4rem; border: 0; border-radius: 999px; background: rgba(246, 241, 234, .06); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-text); }
.search input::placeholder { color: var(--d-muted); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--d-accent); }
.search svg { position: absolute; top: 50%; inset-inline-start: .85rem; width: 1rem; transform: translateY(-50%); color: var(--d-muted); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work { background: var(--d-card); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--d-line); padding: 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; transition: box-shadow .5s, transform .6s var(--ease); }
.work:hover { transform: translateY(-4px); }
.work.is-playing { box-shadow: inset 0 0 0 1.5px var(--d-accent); }
.cover { --h: 350; position: relative; width: 86px; height: 86px; border-radius: 18px; overflow: hidden; flex: none; transition: border-radius .8s var(--ease);
  background: repeating-radial-gradient(circle, rgba(0, 0, 0, .2) 0 1px, transparent 1px 4px), conic-gradient(from 30deg, hsl(var(--h) 55% 22%), hsl(var(--h) 65% 48%), hsl(var(--h) 50% 18%), hsl(var(--h) 70% 42%), hsl(var(--h) 55% 22%)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: var(--d-bg); box-shadow: 0 0 0 5px rgba(246, 241, 234, .9); opacity: 0; transition: opacity .5s; }
.is-playing .cover { border-radius: 50%; animation: spin 3.4s linear infinite; }
.is-playing .cover::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.work__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; line-height: 1.4; }
.work__sub { margin: 0; color: var(--d-muted); font-size: .86rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.tag { font-size: .76rem; font-weight: 700; padding: .12rem .65rem; border-radius: 999px; color: var(--d-muted); box-shadow: inset 0 0 0 1px var(--d-line); }
.tag--hl { color: var(--d-accent); box-shadow: inset 0 0 0 1px rgba(229, 83, 122, .4); }
.empty { color: var(--d-muted); }

/* ============================================================
   Journey — cards that stack as you scroll
   ============================================================ */
.stack { display: grid; gap: 28px; }
.scard { position: sticky; top: calc(110px + var(--i) * 22px); background: var(--paper); border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line), 0 -20px 60px -40px rgba(20, 17, 17, .35);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.4rem, 3vw, 2.6rem); min-height: min(62vh, 480px); transform-origin: 50% 0; will-change: transform; }
.scard__num { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); direction: ltr; text-align: right; }
.scard__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.3; margin: .6rem 0 .6rem; }
.scard__text { color: var(--muted); margin: 0; max-width: 460px; }
.scard__media { border-radius: 24px; overflow: hidden; background: #2a1417; min-height: 240px; }
.scard__media video { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Name on the hall screen + countdown
   ============================================================ */
.yourname__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent; padding: .7rem 0; font-size: 1.1rem; border-radius: 0; transition: border-color .4s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select { appearance: none; padding-inline-end: 2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b625c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left .2rem center / 1.05rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
.note { display: flex; gap: .6rem; align-items: flex-start; margin: 1.4rem 0 0; color: var(--muted); font-size: .9rem; }
.note svg { width: 1.05rem; flex: none; margin-top: .3rem; color: var(--accent); }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #3a1219, #120608 75%); box-shadow: 0 40px 80px -40px rgba(20, 17, 17, .6); }
.screen canvas, .screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen__small { font-family: var(--display); font-weight: 600; font-size: 40px; fill: #f3dfae; opacity: .85; }
.screen__name { font-family: var(--script); font-weight: 700; font-size: 180px; fill: url(#nameGold); stroke: #f3dfae; stroke-width: 1.2; paint-order: stroke; }
.screen__name.is-empty { fill-opacity: .3; stroke-opacity: .25; }
.screen__name.draw { animation: nameDraw 1.6s var(--ease) both; }
@keyframes nameDraw { 0% { stroke-dasharray: 1400; stroke-dashoffset: 1400; fill-opacity: 0; } 60% { fill-opacity: 0; } 100% { stroke-dasharray: 1400; stroke-dashoffset: 0; fill-opacity: 1; } }
.screen__and { font-family: var(--script); font-size: 60px; fill: #d8b46a; }
.count-card { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-2); padding-top: 2.4rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.count__cell { padding-inline: .8rem; }
.count__cell + .count__cell { border-inline-start: 1px solid var(--line); }
.count__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.count__label { color: var(--muted); font-weight: 700; font-size: .9rem; }
.tl { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.tl li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: baseline; }
.tl li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.tl b { font-weight: 700; }
.tl span { color: var(--muted); font-size: .9rem; }
.tl .late b { color: var(--accent); }
.rush { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem; }

/* ============================================================
   Reels strip
   ============================================================ */
.reels__track { display: flex; gap: 16px; overflow-x: auto; padding: 10px var(--pad) 20px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.reels__track::-webkit-scrollbar { display: none; }
.reels__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.reel { display: block; flex: none; width: clamp(220px, 22vw, 300px); scroll-snap-align: start; text-align: start; }
.reel__frame { display: block; position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #2a1417; transition: transform .7s var(--ease); will-change: transform; }
.reel__frame video, .reel__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); }
.reel__cap { position: absolute; z-index: 1; bottom: 16px; inset-inline: 18px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.reel__play { position: absolute; z-index: 1; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 248, 243, .92); color: var(--ink); }
.reel__play svg { width: 14px; }
.reel:hover .reel__frame { transform: scale(.97); }

/* Stories viewer */
.viewer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(12, 10, 10, .94); opacity: 0; transition: opacity .45s var(--ease); }
.viewer.is-open { opacity: 1; }
.viewer__frame { position: relative; height: min(92dvh, 860px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 22px; overflow: hidden; background: #000; transform: scale(.94); transition: transform .6s var(--ease); touch-action: none; color: #fff; }
.viewer.is-open .viewer__frame { transform: none; }
.viewer__frame video { width: 100%; height: 100%; object-fit: cover; }
.viewer__bars { position: absolute; top: 12px; inset-inline: 12px; display: flex; gap: 4px; z-index: 3; }
.viewer__bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.viewer__bars b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: right; }
.viewer__head { position: absolute; top: 26px; inset-inline: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.viewer__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.viewer__close svg { width: 18px; }
.viewer__zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.viewer__zone--next { left: 0; }
.viewer__zone--prev { right: 0; }

/* ============================================================
   Reviews as a chat
   ============================================================ */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.phone { width: min(370px, 100%); margin-inline: auto; padding: 10px; border-radius: 3rem; background: var(--ink); box-shadow: 0 60px 120px -60px rgba(20, 17, 17, .6); }
.phone__screen { border-radius: 2.4rem; overflow: hidden; background: #ece3d6; min-height: 560px; display: flex; flex-direction: column; }
.phone__head { display: flex; align-items: center; gap: .7rem; padding: 1.4rem 1.1rem .9rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.phone__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 900; font-size: .95rem; }
.phone__name { font-weight: 800; line-height: 1.3; }
.phone__status { font-size: .75rem; color: #2e8b57; }
.chat { flex: 1; padding: 1.2rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 82%; padding: .6rem .9rem .35rem; border-radius: 1.1rem; font-size: .93rem; line-height: 1.7; }
.msg--in { align-self: flex-start; background: #fff; border-start-start-radius: .3rem; }
.msg--out { align-self: flex-end; background: #f5d8df; border-start-end-radius: .3rem; }
.msg__time { display: block; font-size: .68rem; color: var(--muted); text-align: end; direction: ltr; }
.msg--ph { color: var(--muted); font-size: .85rem; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .5); }
.voice { display: flex; align-items: center; gap: .6rem; min-width: 210px; }
.voice__btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.voice__btn svg { width: 12px; }
.voice__bars { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.voice__bars i { width: 2px; border-radius: 2px; background: rgba(20, 17, 17, .35); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: .7rem .9rem; border-radius: 1.1rem; background: #fff; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ============================================================
   Packages + FAQ
   ============================================================ */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pkg { background: var(--paper); border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(1.6rem, 2.8vw, 2.4rem); display: flex; flex-direction: column; gap: 1.2rem; transition: transform .7s var(--ease); }
.pkg:hover { transform: translateY(-8px); }
.pkg--hl { background: var(--ink); color: var(--bg); box-shadow: none; }
.pkg__top { display: flex; justify-content: space-between; align-items: center; }
.pkg__name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 0; }
.pkg__badge { font-size: .78rem; font-weight: 800; padding: .2rem .8rem; border-radius: 999px; background: var(--accent); color: #fff; }
.pkg__price { margin: 0; color: var(--muted); font-weight: 700; }
.pkg--hl .pkg__price { color: #b8ada5; }
.pkg__price b { font-family: var(--display); font-weight: 800; font-size: 2.8rem; color: inherit; margin-inline: .3rem; color: var(--ink); }
.pkg--hl .pkg__price b { color: var(--bg); }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; flex: 1; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pkg--hl ul { border-color: rgba(246, 241, 234, .15); }
.pkg li { display: flex; gap: .6rem; align-items: flex-start; }
.pkg li svg { width: 1.05rem; flex: none; margin-top: .4rem; color: var(--accent); }
.pkg--hl li svg { color: var(--d-accent); }
.pkg .btn { align-self: flex-start; }
.pkg--hl .btn--line { box-shadow: inset 0 0 0 1.5px var(--bg); color: var(--bg); }
.pkg--hl .btn--line::before { background: var(--accent); }

.faq__wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; text-align: start; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.qa__icon { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform .5s var(--ease), background-color .5s, color .5s, box-shadow .5s; }
.qa__icon svg { width: 14px; }
.qa.is-open .qa__icon { transform: rotate(45deg); background: var(--accent); color: #fff; box-shadow: none; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding-bottom: 1.4rem; color: var(--muted); max-width: 680px; }

/* ============================================================
   Final call + footer
   ============================================================ */
.final { text-align: center; }
/* Outlined Arabic shows the joins between letters, so the hover is a garnet fill sweeping in from the right. */
.final__big { position: relative; display: block; width: max-content; max-width: 100%; margin: 0 auto; font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 15vw, 14rem); line-height: 1.12; color: var(--ink); }
.final__big::after { content: attr(data-text); position: absolute; inset: 0; color: var(--accent); clip-path: inset(0 0 0 100%); transition: clip-path 1s var(--ease); }
.final__big:hover::after, .final__big:focus-visible::after { clip-path: inset(0 0 0 0); }
.final__row { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.final__note { color: var(--muted); margin-top: 1rem; }

.footer { padding: clamp(4rem, 8vw, 6rem) 0 calc(1.5rem + var(--dock-h)); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 2.5rem; }
.footer p { margin: 0; color: var(--muted); }
.footer h3 { margin: 0 0 1rem; font-size: .88rem; color: var(--muted); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer li a:hover { color: var(--accent); }
.footer .footer__word { font-family: var(--display); font-weight: 900; font-size: clamp(8rem, 30vw, 28rem); line-height: 1.05; margin: clamp(1rem, 3vw, 2rem) 0 0; text-align: center; color: var(--ink); user-select: none; }
.footer__word i { font-style: normal; color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.6rem; color: var(--muted); font-size: .88rem; }
.daf { position: relative; width: 120px; height: 120px; border-radius: 50%; justify-self: end; }
.daf svg { width: 100%; height: 100%; transition: transform .2s var(--ease); }
.daf:active svg { transform: scale(.94); }
.daf__hint { position: absolute; bottom: -1.7rem; inset-inline: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; animation: ripple 1.1s var(--ease) forwards; }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* ============================================================
   Fixed layer: player, dock, WhatsApp, toast, cursor
   ============================================================ */
.player { position: fixed; z-index: 30; left: 50%; bottom: calc(16px + var(--dock-h) + env(safe-area-inset-bottom)); width: min(760px, 100% - 24px); transform: translate(-50%, 160%); transition: transform .8s var(--ease);
  padding: 6px; border-radius: 999px; background: rgba(251, 248, 243, .86); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 24px 60px -26px rgba(20, 17, 17, .45), inset 0 0 0 1px var(--line); }
.player.is-up { transform: translate(-50%, 0); }
.player__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.4fr) auto auto; gap: .9rem; align-items: center; padding-inline-end: .5rem; }
.player .cover { width: 48px; height: 48px; border-radius: 50%; }
.player .cover::after { inset: 36%; box-shadow: 0 0 0 3px rgba(246, 241, 234, .9); }
.player__title { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.player__sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .play { background: var(--accent); }
.player .wave { height: 38px; }
.player .switch { background: var(--bg-2); box-shadow: none; }
.player .switch button { color: var(--muted); padding: .3rem .75rem; font-size: .78rem; }
.player .switch button[aria-pressed='true'] { color: #fff; }
.player .switch__thumb { background: var(--accent); }
.player__close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.player__close:hover { background: var(--accent-soft); color: var(--accent); }
.player__close svg { width: 15px; }
.dock { display: none; }
.wa { position: fixed; z-index: 30; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; box-shadow: 0 16px 34px -14px rgba(31, 157, 85, .8); transition: transform .5s var(--ease), opacity .8s; }
.wa:hover { transform: scale(1.08) rotate(-8deg); }
.wa svg { width: 28px; }
.toast { position: fixed; z-index: 75; left: 50%; bottom: calc(100px + var(--dock-h)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: .8rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .93rem; font-weight: 700; text-align: center; transition: transform .5s var(--ease), opacity .5s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cursor { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.cursor__ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, box-shadow .45s, opacity .3s; }
.cursor__ring span { color: #fff; font-size: .74rem; font-weight: 800; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-big .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); box-shadow: none; }
.cursor.is-big .cursor__ring span { opacity: 1; }
.cursor.is-big .cursor__dot { opacity: 0; }
.cursor.is-off { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } .chip { min-height: 44px; } }

/* ============================================================
   Dialogs
   ============================================================ */
dialog { border: 0; padding: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 17, 17, .55); backdrop-filter: blur(6px); }
.order { width: min(960px, 100% - 24px); margin: auto; }
.order[open] { animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.order__in { background: var(--paper); border-radius: 32px; display: grid; grid-template-rows: auto 1fr auto; max-height: min(90dvh, 860px); box-shadow: 0 60px 120px -40px rgba(20, 17, 17, .5); }
.order__head { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line); }
.order__title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0; white-space: nowrap; }
.steps { display: flex; gap: 6px; margin-inline-start: auto; }
.steps i { width: 24px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .5s, width .5s var(--ease); }
.steps i.is-done { background: rgba(163, 24, 58, .4); }
.steps i.is-now { background: var(--accent); width: 38px; }
.x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .4s, color .4s; flex: none; }
.x:hover { background: var(--ink); color: var(--bg); }
.x svg { width: 16px; }
.order__body { overflow-y: auto; padding: clamp(1.4rem, 3vw, 2.4rem); overscroll-behavior: contain; }
.pane { display: grid; gap: 1.5rem; animation: pane .6s var(--ease); }
.pane.back { animation-name: paneBack; }
@keyframes pane { from { opacity: 0; transform: translateX(-30px); } }
@keyframes paneBack { from { opacity: 0; transform: translateX(30px); } }
.pane__q { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.35; margin: 0; }
.pane__hint { margin: -.9rem 0 0; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; gap: .15rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .4s, background-color .4s, transform .5s var(--ease); }
.opt:hover { transform: translateY(-3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: #fff6f8; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__title { font-weight: 800; font-size: 1.05rem; }
.opt__sub { color: var(--muted); font-size: .86rem; }
.opt__check { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; }
.opt__check svg { width: 13px; opacity: 0; color: #fff; }
.opt:has(input:checked) .opt__check { background: var(--accent); box-shadow: none; }
.opt:has(input:checked) .opt__check svg { opacity: 1; }
.opt__sample { margin-top: .5rem; width: max-content; display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(163, 24, 58, .35); }
.opt__sample svg { width: 10px; }
.group { display: grid; gap: .7rem; }
.group__label { color: var(--muted); font-weight: 700; font-size: .9rem; }
.order .fields { margin-top: 0; }
.summary { margin: 0; }
.summary div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.order__foot { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line); }
.order__price { color: var(--muted); font-weight: 700; margin-inline-end: auto; }
.order__price b { font-family: var(--display); font-size: 1.6rem; color: var(--ink); margin-inline: .3rem; }
.reel-dlg { width: min(1100px, 100% - 24px); margin: auto; }
.reel-dlg__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; }
.reel-dlg video { width: 100%; height: 100%; object-fit: cover; }
.reel-dlg__ph { position: absolute; inset: 0; display: grid; place-content: center; gap: .4rem; text-align: center; color: #fff; background: rgba(0, 0, 0, .4); padding: 2rem; }
.reel-dlg__ph b { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.reel-dlg .x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(251, 248, 243, .9); box-shadow: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .daf { justify-self: start; }
}
@media (max-width: 899px) {
  :root { --dock-h: 78px; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; }
  .hero__media { height: 460px; order: 2; }
  .spin { inset-inline-end: 8px; top: -30px; width: 116px; height: 116px; }
  .spin button { inset: 28px; }
  .hero__cue { display: none; }
  .head--split { grid-template-columns: 1fr; }
  .svc__btn { grid-template-columns: 2.6rem 1fr auto; }
  .svc__lead { grid-column: 2 / 3; }
  .svc-float { display: none; }
  .features, .poem, .yourname__grid, .count-card, .reviews__grid, .faq__wrap { grid-template-columns: 1fr; }
  .poem__couplet { grid-template-columns: 1fr; gap: .2rem; }
  .scard { grid-template-columns: 1fr; top: calc(90px + var(--i) * 14px); min-height: 0; }
  .scard__media { min-height: 200px; aspect-ratio: 16 / 10; }
  .pkgs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .stat { padding-bottom: 1.2rem; }
  .wa { display: none; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 31; bottom: calc(10px + env(safe-area-inset-bottom)); inset-inline: 10px; height: 62px; padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: 0 20px 40px -20px rgba(20, 17, 17, .6); transition: opacity .8s; }
  .dock a, .dock button { display: flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; color: var(--bg); font-weight: 800; font-size: .92rem; }
  .dock svg { width: 18px; }
  .dock .hl { background: var(--accent); color: #fff; }
  .player { border-radius: 26px; }
  .player__in { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .player .wave, .player .switch { display: none; }
  .player::after { content: ''; position: absolute; top: 0; inset-inline: 24px; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--accent) var(--pp, 0%), transparent var(--pp, 0%)); }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .search, .search input, .filters { width: 100%; }
  .deck { flex-wrap: wrap; }
  .deck .wave, .deck .ab { flex-basis: 100%; order: 3; }
  .footer__grid { grid-template-columns: 1fr; }
  .summary div { grid-template-columns: 1fr; gap: 0; }
  .order { width: 100%; }
  .order__in { border-radius: 26px; }
  .order__head, .order__foot { padding-inline: 1.1rem; }
  .steps i { width: 14px; }
  .steps i.is-now { width: 22px; }
  .count__cell { padding-inline: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-words] .mw > span { transform: none; }
  .js .about__text .wd { color: var(--ink); }
}

/* ============================================================
   Polish pass
   ============================================================ */
.title, .hero__title, .scard__title, .pane__q, .panel__title, .svc__title, .pkg__name { text-wrap: balance; }
p, .lead, .svc__lead, .scard__text { text-wrap: pretty; }

/* Paper grain: one fixed layer that never takes clicks. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* A warm glow behind the arch gives the hero depth. */
.hero::before { content: ''; position: absolute; z-index: -1; inset-inline-end: 0; top: 5%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(163, 24, 58, .12), transparent); pointer-events: none; }
.hero { isolation: isolate; }
.hero__points { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__points svg { width: 1rem; color: var(--accent); }

/* Current section in the nav. */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* Cards catch a soft light under the cursor. */
/* .scard is already positioned (sticky), which the stacking needs. */
.work, .panel, .pkg { position: relative; }
.work::before, .panel::before, .pkg::before, .scard::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 83, 122, .13), transparent 65%);
}
.scard::before, .pkg:not(.pkg--hl)::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 24, 58, .07), transparent 65%); }
.work:hover::before, .panel:hover::before, .pkg:hover::before, .scard:hover::before { opacity: 1; }
.work > *, .panel > *, .pkg > * { position: relative; }

.pkg .pkg__price .pkg__ask { font-family: var(--display); font-size: 1.35rem; margin: 0; }
.footer__legal a { color: var(--ink); font-weight: 700; }
.footer__legal a:hover { color: var(--accent); }
