/* MoeBak Seal marketing site. Static, no build step.
   Logical properties throughout so Arabic (RTL) is native, not mirrored after the fact.
   Motion is layered on top: every effect has a still, readable fallback. */

:root {
  --russia: #F5E8E8;
  --crimson: #53001A;
  --night: #030213;
  --sand: #E0C097;
  --crimson-bright: #7A1030;
  --crimson-hover: #A3153F;
  --ink-soft: rgba(3, 2, 19, 0.72);
  --russia-soft: rgba(245, 232, 232, 0.76);
  --rule-dark: rgba(245, 232, 232, 0.16);
  --rule-light: rgba(3, 2, 19, 0.14);
  --grad-dir: to right;
  --pad: clamp(1.1rem, 4.5vw, 3.5rem);
  --max: 78rem;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --serif: "Playfair Display", "Cairo", Georgia, serif;
  --sans: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[dir="rtl"] { --grad-dir: to left; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--russia); color: var(--night);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75;
  overflow-wrap: break-word; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[id] { scroll-margin-top: 5.5rem; }

:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--crimson-bright); }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--sand); color: var(--night); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { letter-spacing: 0; font-weight: 700; }
:root[dir="rtl"] h1 { line-height: 1.3; }
:root[dir="rtl"] h2 { line-height: 1.4; }
:root[dir="rtl"] body, :root[dir="rtl"] p { line-height: 1.95; }
p { max-width: 38rem; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 34rem; }

/* ---------- Notice + header (glass) */
.notice { background: var(--crimson); color: var(--sand); font-size: .85rem; line-height: 1.4; text-align: center; padding: .4rem var(--pad); }
.site-header {
  position: sticky; top: 0; z-index: 50; color: var(--russia);
  background: rgba(3, 2, 19, .88);
  -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px);
  border-block-end: 1px solid var(--rule-dark);
  view-transition-name: site-header;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 1.6rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: .95rem; padding-block: .4rem; position: relative; opacity: .86; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
:root[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { font: inherit; font-size: .92rem; color: var(--sand); background: none; border: 1px solid rgba(224,192,151,.6); padding: .3rem .9rem; cursor: pointer; min-height: 2.25rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.lang:hover { background: var(--sand); color: var(--night); }
.menu-btn { display: none; font: inherit; color: var(--russia); background: none; border: 1px solid var(--rule-dark); padding: .3rem .9rem; min-height: 2.25rem; cursor: pointer; margin-inline-start: auto; border-radius: 999px; }
@media (max-width: 62rem) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(3,2,19,.96); border-block-end: 1px solid var(--rule-dark); padding: .5rem var(--pad) 1.2rem; }
  .nav.is-open { display: flex; animation: drop .35s var(--ease) both; }
  .nav a { padding-block: .85rem; border-block-end: 1px solid var(--rule-dark); opacity: 1; }
  .nav a::after { display: none; }
  .nav .lang { margin-block-start: .9rem; align-self: flex-start; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }

/* ---------- Buttons (sheen follows the pointer) */
.btn {
  --bx: 50%; position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.1rem; padding: .6rem 1.8rem; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(9rem circle at var(--bx) 50%, rgba(255,255,255,.55), transparent 70%); }
.btn:hover::before { opacity: .55; }
.btn:hover { transform: translateY(-2px); }
.btn-sand { background: var(--sand); color: var(--night); }
.btn-crimson { background: var(--crimson-bright); color: var(--russia); }
.btn-crimson:hover { background: var(--crimson-hover); }
.btn-line { border-color: rgba(245,232,232,.4); color: var(--russia); }
.btn-line:hover { border-color: var(--sand); color: var(--sand); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.text-link { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .35em; }

/* ---------- Atmosphere: pointer glow + grain */
.glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(38rem circle at var(--mx, 72%) var(--my, 40%), rgba(224,192,151,.13), rgba(163,21,63,.13) 38%, transparent 70%),
    radial-gradient(70rem circle at calc(100% - var(--mx, 72%)) calc(100% - var(--my, 40%)), rgba(122,16,48,.2), transparent 65%); }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; }

/* ---------- Home hero */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--russia); min-height: min(94vh, 58rem); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: -6% 0 -6% 0; z-index: -3; width: 100%; height: 112%; object-fit: cover; object-position: 78% 20%; transform: translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1.06)); will-change: transform; }
:root[dir="rtl"] .hero__img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1.06)) scaleX(-1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--grad-dir), var(--night) 8%, rgba(3,2,19,.78) 40%, rgba(3,2,19,0) 74%), linear-gradient(to top, var(--night) 0%, rgba(3,2,19,0) 40%); }
.hero .wrap { padding-block: clamp(5rem, 14vh, 9rem) clamp(3.5rem, 9vh, 6rem); transform: translate3d(0, var(--ty, 0px), 0); opacity: var(--fade, 1); }
.hero h1 span { display: block; }
.hero h1 .l2, .hero h1 .l3 { color: var(--sand); }
.hero .lede { margin-block: 1.9rem 2.2rem; color: var(--russia-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.cue { position: absolute; inset-inline-start: var(--pad); bottom: 1.4rem; width: 1px; height: 3rem; background: linear-gradient(var(--sand), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 40rem) {
  .hero { min-height: 38rem; }
  .hero__img { object-position: 74% 0%; }
  .hero::before { background: linear-gradient(to top, var(--night) 24%, rgba(3,2,19,.82) 54%, rgba(3,2,19,.12) 88%); }
  .cue { display: none; }
}

/* One orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero .lede, .hero__cta { animation: rise 1.1s var(--ease) both; }
  .hero h1 .l2 { animation-delay: .2s; } .hero h1 .l3 { animation-delay: .4s; }
  .hero .lede { animation-delay: .65s; } .hero__cta { animation-delay: .8s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.4rem); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Bands */
.band { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.band--light { background: var(--russia); color: var(--night); }
.band--dark { background: var(--night); color: var(--russia); isolation: isolate; overflow: clip; }
.band--crimson { background: var(--crimson); color: var(--russia); isolation: isolate; overflow: clip; }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.split p + p { margin-block-start: 1.2rem; }
.band--light p { color: var(--ink-soft); }
.band--dark p, .band--crimson p { color: var(--russia-soft); }
.rule-top { border-block-start: 1px solid var(--rule-light); }
.big { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.6; }

/* ---------- Expanding image: starts framed, opens to full bleed on scroll */
.expand { position: relative; height: 170vh; background: var(--night); color: var(--russia); }
.expand--short { height: 140vh; }
.expand__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-items: end; }
.expand__frame { position: absolute; inset: 0; overflow: hidden; background: var(--night);
  --i: calc((1 - var(--p, 1)) * 10%);
  clip-path: inset(var(--i) var(--i) var(--i) var(--i) round calc((1 - var(--p, 1)) * 2.2rem)); will-change: clip-path; }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(calc(1.18 - var(--p, 1) * .18)); will-change: transform; }
.expand__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,2,19,.92) 0%, rgba(3,2,19,.4) 45%, rgba(3,2,19,.15) 100%); }
.expand__text { position: relative; z-index: 2; padding-block: 0 clamp(3rem, 9vh, 6rem); opacity: var(--t, 1); transform: translate3d(0, calc((1 - var(--t, 1)) * 2rem), 0); }
.expand__text h2 { max-width: 14ch; font-size: clamp(2.2rem, 5.6vw, 5rem); }
:root[dir="rtl"] .expand__text h2 { max-width: 18ch; }
.expand__text p { margin-block-start: 1.2rem; color: var(--russia-soft); }

/* ---------- Ladder: four fluted columns that rise, each lit by the pointer */
.ladder-head { margin-block-end: clamp(2.2rem, 5vw, 4rem); }
.ladder-head p { margin-block-start: 1rem; }
.ladder { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 62rem) { .ladder { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.col {
  --h: 17rem; --x: 50%; --y: 0%;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem;
  padding: 1.6rem 1.5rem 1.7rem; min-height: var(--h);
  background-color: var(--crimson); color: var(--russia); isolation: isolate; overflow: hidden; border-radius: 4px;
  transition: translate .5s var(--ease), box-shadow .5s;
}
.col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: -2;
  background: repeating-linear-gradient(90deg, rgba(224,192,151,.26) 0 2px, rgba(224,192,151,0) 2px 15px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.col::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(18rem circle at var(--x) var(--y), rgba(224,192,151,.34), transparent 62%); }
.col:hover { translate: 0 -8px; box-shadow: 0 1.6rem 3rem -1.2rem rgba(0,0,0,.7); }
.col:hover::after { opacity: 1; }
.col--0 { --h: 17rem; background-color: #2a0010; }
.col--1 { --h: 21rem; background-color: #3b0014; }
.col--2 { --h: 25rem; }
.col--3 { --h: 29rem; background-color: var(--night); box-shadow: inset 0 0 0 1px rgba(224,192,151,.8); }
.col--3:hover { box-shadow: inset 0 0 0 1px var(--sand), 0 1.6rem 3rem -1.2rem rgba(0,0,0,.7); }
@media (max-width: 61.99rem) { .col, .col--0, .col--1, .col--2, .col--3 { --h: 0; } .col::before { height: 4rem; } }
.col h3 { font-size: 1.55rem; }
.col__price { color: var(--sand); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.col__est { color: var(--russia-soft); font-size: .875rem; font-weight: 400; margin-inline-start: .45rem; }
.col p { font-size: 1rem; line-height: 1.6; }
.col .text-link { color: var(--sand); }

/* ---------- Story stage: images crossfade as the steps scroll past */
.story { padding-block: clamp(4rem, 9vw, 7rem); }
.story__grid { display: grid; gap: clamp(1.5rem, 5vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .story__grid { grid-template-columns: 6fr 5fr; align-items: start; } }
.story__stage { position: sticky; top: 5rem; height: min(72vh, 40rem); z-index: 2; }
.story__frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: var(--crimson); box-shadow: 0 2rem 4rem -2rem rgba(0,0,0,.8); }
.story__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.story__frame img.is-on { opacity: 1; transform: scale(1); }
.story__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(3,2,19,.45), transparent 40%); }
.story__steps h2 { margin-block-end: clamp(1rem, 3vw, 2rem); }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; border-block-start: 1px solid var(--rule-dark); opacity: .32; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__n { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--sand); margin-block-end: .6rem; }
.step h3 { margin-block-end: .6rem; }
@media (max-width: 55.99rem) {
  .story__stage { top: 4.4rem; height: 36vh; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); background: linear-gradient(var(--night) 85%, transparent); padding-block-end: .8rem; }
  .step { min-height: 46vh; }
}

/* ---------- Studio band */
.studio { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 52rem) { .studio { grid-template-columns: 7fr 5fr; } }
.studio p { margin-block: 1.3rem 1.9rem; }
.studio__img { overflow: hidden; border-radius: 6px; aspect-ratio: 1; }
.studio__img img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }

/* ---------- Tier pages */
.tier-hero { position: relative; isolation: isolate; background: var(--night); color: var(--russia); overflow: hidden; }
.tier-hero__img { position: absolute; inset: -6% 0; z-index: -3; width: 100%; height: 112%; object-fit: cover; object-position: 80% 20%; transform: translate3d(0, var(--py, 0px), 0) scale(1.05); }
:root[dir="rtl"] .tier-hero__img { transform: translate3d(0, var(--py, 0px), 0) scale(1.05) scaleX(-1); }
.tier-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--grad-dir), var(--night) 10%, rgba(3,2,19,.72) 45%, rgba(3,2,19,.1) 82%); }
.tier-hero .wrap { padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5.5rem); }
.tier-hero .crumb { display: inline-block; color: var(--sand); margin-block-end: 1.6rem; font-size: .95rem; }
.tier-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 14ch; }
:root[dir="rtl"] .tier-hero h1 { max-width: 16ch; }
.tier-hero .lede { margin-block-start: 1.5rem; color: var(--russia-soft); }
.tier-name { font-family: var(--serif); color: var(--sand); font-size: 1.25rem; margin-block-end: .8rem; display: block; }
@media (max-width: 40rem) { .tier-hero::before { background: linear-gradient(to top, var(--night) 25%, rgba(3,2,19,.78) 60%, rgba(3,2,19,.3) 100%); } }

.tier-body { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .tier-body { grid-template-columns: 7fr 5fr; align-items: start; } }
.tier-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-block-end: 1.1rem; }
.tier-body section + section { margin-block-start: clamp(2.2rem, 4vw, 3.2rem); }
.rules li { padding-block: .85rem; border-block-start: 1px solid var(--rule-light); }
.rules li:last-child { border-block-end: 1px solid var(--rule-light); }
.rules--cols { display: grid; grid-template-columns: 1fr; column-gap: 2rem; }
@media (min-width: 40rem) { .rules--cols { grid-template-columns: 1fr 1fr; } .rules--cols li:nth-last-child(2) { border-block-end: 1px solid var(--rule-light); } }
.note { font-size: .95rem; margin-block-start: .9rem; }

.buy { background: linear-gradient(160deg, #0b0a24, var(--night) 60%); color: var(--russia); padding: clamp(1.6rem, 3vw, 2.4rem); position: sticky; top: 5.5rem; border-radius: 8px; box-shadow: 0 2rem 4rem -2rem rgba(3,2,19,.6), inset 0 0 0 1px rgba(224,192,151,.28); }
@media (max-width: 55.99rem) { .buy { position: static; } }
.buy .buy__price { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--sand); line-height: 1.2; }
.buy .buy__est { color: var(--russia-soft); font-size: .95rem; margin-block: .35rem 1.5rem; }
.buy .btn { width: 100%; }
.light .buy p { color: var(--russia-soft); }
.buy p { font-size: .95rem; line-height: 1.65; margin-block-start: 1rem; }
.buy .text-link { color: var(--sand); }
.msg { margin-block-start: 1rem; padding: .7rem .9rem; font-size: .95rem; border-inline-start: 3px solid var(--sand); background: rgba(224,192,151,.12); color: var(--russia); border-radius: 2px; }
.msg[hidden] { display: none; }

.cp { margin-block-end: 1rem; border-block: 1px solid rgba(224,192,151,.28); padding-block: .7rem; }
.cp summary { cursor: pointer; color: var(--sand); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cp summary::-webkit-details-marker { display: none; }
.cp summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.cp[open] summary::after { transform: rotate(45deg); }
.cp__fields { display: grid; gap: .8rem; margin-block-start: 1rem; }
.cp__fields label { display: block; font-size: .9rem; margin-block-end: .25rem; color: var(--russia-soft); }
.cp__fields input { width: 100%; font: inherit; padding: .6rem .9rem; min-height: 2.9rem; color: var(--night); background: var(--russia); border: 1px solid transparent; border-radius: 10px; }
.cp__fields input#cp-code { text-transform: uppercase; letter-spacing: .12em; direction: ltr; }
.cp__fields input#cp-email { direction: ltr; }
.cp__fields p { margin: 0; font-size: .85rem; }

/* ---------- Access page */
.form { max-width: 28rem; display: grid; gap: 1rem; margin-block-start: 2rem; }
.form label { font-weight: 600; display: block; margin-block-end: .3rem; }
.form input { width: 100%; font: inherit; padding: .7rem 1rem; min-height: 3.1rem; color: var(--night); background: #fff; border: 1px solid var(--rule-light); border-radius: 10px; }
.form input[type="text"] { letter-spacing: .3em; }
.light .msg { color: var(--night); border-color: var(--crimson-bright); background: rgba(83,0,26,.08); }
.links { display: grid; gap: .8rem; margin-block-start: 1.5rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Footer */
.site-footer { position: relative; isolation: isolate; background: var(--night); color: var(--russia); padding-block: clamp(3.5rem, 8vw, 6rem) 2rem; overflow: hidden; }
.foot-logo { display: inline-block; margin-block-end: 1.4rem; }
.foot-logo img { height: 1.5rem; width: auto; }
.site-footer .persona { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; max-width: 28rem; }
.site-footer .persona .p2 { color: var(--sand); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.disc { color: var(--russia-soft); font-size: .9rem; line-height: 1.7; max-width: 44rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-block-start: 1.4rem; font-size: .95rem; }
.foot-links a { color: var(--sand); }
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-block-start: 1rem; }
.foot-social a { color: var(--sand); display: inline-flex; opacity: .85; }
.foot-social a:hover { opacity: 1; color: var(--russia); }
.fine { margin-block-start: 2.5rem; padding-block-start: 1.2rem; border-block-start: 1px solid var(--rule-dark); font-size: .875rem; color: var(--russia-soft); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl { margin-block-start: 2rem; max-width: 28rem; }
.nl__h { font-family: var(--serif); font-size: 1.15rem; color: var(--russia); margin-block-end: .7rem; }
:root[dir="rtl"] .nl__h { font-weight: 700; }
.nl__row { display: flex; gap: .6rem; }
.nl__row input { flex: 1; min-width: 0; font: inherit; padding: .6rem 1.1rem; min-height: 3.1rem; color: var(--night); background: var(--russia); border: 1px solid transparent; border-radius: 999px; direction: ltr; text-align: start; }
:root[dir="rtl"] .nl__row input { text-align: right; }
.nl__row input::placeholder { color: rgba(3,2,19,.55); }
.nl__row .btn { flex: none; padding-inline: 1.3rem; }
.nl__note { margin-block-start: .7rem; font-size: .85rem; color: var(--russia-soft); }
.nl .msg { margin-block-start: .8rem; }
@media (max-width: 30rem) { .nl__row { flex-direction: column; } .nl__row .btn { width: 100%; } }

/* ---------- Scroll reveals (only when JS has marked the page) */
.js .rv { opacity: 0; transform: translate3d(0, 1.6rem, 0); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Seamless page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .38s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(1rem); } }
/* Fallback for browsers without cross-document view transitions */
.vt-fallback main, .vt-fallback .site-footer { animation: page-in .7s var(--ease) both; }
.vt-fallback.is-leaving main, .vt-fallback.is-leaving .site-footer { opacity: 0; transform: scale(.985); filter: blur(4px); transition: opacity .32s var(--ease), transform .32s var(--ease), filter .32s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(1rem); } }

/* ---------- Motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; filter: none; }
  .expand, .expand--short { height: auto; }
  .expand__pin { position: relative; height: 70vh; }
  .expand__frame { clip-path: none; }
  .expand__frame img { transform: none; }
  .story__frame img { opacity: 0; } .story__frame img:first-child { opacity: 1; transform: none; }
  .step { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .site-header, .notice, .glow, .grain::after { display: none; } .expand { height: auto; } .expand__pin { position: relative; height: 60vh; } }


/* Round two pages and cookie banner (merged from extra.css) */
/* Round two: the problem shown, customers, FAQ, order, account and guide pages.
   Loaded after site.css. Uses the same tokens. */

/* The hidden attribute must win over any display rule below. */
[hidden] { display: none !important; }

/* ---------- Landing: six touchpoints that settle into one decision */
.drift { margin-block-start: clamp(2.5rem, 6vw, 4.5rem); }
.drift__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-block-end: 1.6rem; }
.drift__title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.2; margin: 0; max-width: none; color: var(--night); }
:root[dir="rtl"] .drift__title { font-weight: 700; }
.drift__title .t2 { display: none; color: var(--crimson-bright); }
.drift.is-one .drift__title .t1 { display: none; }
.drift.is-one .drift__title .t2 { display: inline; }
.drift__toggle { display: inline-flex; border: 1px solid var(--rule-light); border-radius: 999px; padding: .2rem; background: rgba(255,255,255,.5); }
.drift__toggle button { font: inherit; font-size: .95rem; border: 0; background: none; padding: .4rem 1.15rem; border-radius: 999px; cursor: pointer; color: var(--night); transition: background-color .3s, color .3s; }
.drift__toggle button.is-active { background: var(--night); color: var(--russia); }
.drift__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 2vw, 1.3rem); }
@media (max-width: 40rem) { .drift__grid { grid-template-columns: repeat(2, 1fr); } }

.dr-card {
  --rot: 0deg; --dx: 0rem; --dy: 0rem; --cr: 10px; --ff: Georgia, serif;
  --a: #2b7a78; --s1: #2b7a78; --s2: #f4a261; --s3: #e63946; --lr: 50%;
  list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem;
  aspect-ratio: 4 / 3; padding: clamp(.8rem, 2vw, 1.2rem); background: #fff; border: 1px solid var(--rule-light); border-radius: var(--cr);
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); transition: transform 1s var(--ease), border-radius 1s var(--ease), border-color 1s;
}
.dr-card:nth-child(1) { --rot: -4deg; --dy: .5rem; --cr: 3px; --a: #2b7a78; --lr: 50%; --ff: "Courier New", monospace; }
.dr-card:nth-child(2) { --rot: 3deg; --dy: -.6rem; --cr: 22px; --a: #d9534f; --s1: #6a4c93; --s2: #1d3557; --s3: #f4a261; --lr: 0; --ff: Georgia, serif; }
.dr-card:nth-child(3) { --rot: -2deg; --dy: .7rem; --cr: 8px; --a: #6a4c93; --lr: 30% 70% 60% 40%; --ff: "Brush Script MT", cursive; }
.dr-card:nth-child(4) { --rot: 5deg; --dy: -.4rem; --cr: 0; --a: #f4a261; --s1: #e63946; --s2: #2b7a78; --s3: #6a4c93; --lr: 20%; --ff: "Arial Black", Impact, sans-serif; }
.dr-card:nth-child(5) { --rot: -3deg; --dy: .3rem; --cr: 16px; --a: #1d3557; --lr: 50% 0 50% 0; --ff: "Trebuchet MS", sans-serif; }
.dr-card:nth-child(6) { --rot: 2deg; --dy: -.5rem; --cr: 5px; --a: #e63946; --s1: #f4a261; --s2: #6a4c93; --s3: #2b7a78; --lr: 50%; --ff: "Times New Roman", serif; }
.drift.is-one .dr-card {
  --rot: 0deg; --dx: 0rem; --dy: 0rem; --cr: 12px; --ff: var(--serif); --a: var(--crimson-bright); --s1: var(--crimson-bright); --s2: var(--sand); --s3: var(--night); --lr: 50%;
  border-color: var(--sand);
}
.dr-art { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 0; }
.dr-label { font-size: .85rem; color: rgba(3,2,19,.6); line-height: 1.3; }
.dr-logo { width: clamp(2rem, 6vw, 3.2rem); aspect-ratio: 1; background: var(--a); border-radius: var(--lr); transition: border-radius 1s var(--ease), background-color 1s; }
.dr-sw { width: clamp(1.4rem, 4vw, 2.2rem); aspect-ratio: 1; border-radius: 50%; transition: background-color 1s; }
.dr-sw.s1 { background: var(--s1); }
.dr-sw.s2 { background: var(--s2); }
.dr-sw.s3 { background: var(--s3); }
.dr-aa { font-family: var(--ff); font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1; color: var(--a); transition: color 1s; }
.dr-post, .dr-page, .dr-site { display: flex; flex-direction: column; gap: .3rem; width: 70%; max-width: 8rem; }
.dr-post i, .dr-site i, .dr-page i { display: block; background: var(--a); transition: background-color 1s; }
.dr-post i { height: 1.6rem; border-radius: calc(var(--cr) / 2); }
.dr-page i { height: .5rem; width: 55%; }
.dr-site i { height: .35rem; width: 100%; }
.dr-site u { display: block; height: 1.1rem; background: var(--s2); text-decoration: none; transition: background-color 1s; }
.dr-post b, .dr-page b, .dr-site b { display: block; height: .22rem; background: rgba(3,2,19,.18); border-radius: 2px; }
.dr-post b:last-child, .dr-page b:last-child, .dr-site b:last-child { width: 60%; }

/* ---------- Landing: customers */
.tm-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: 1fr; margin-block-start: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 52rem) { .tm-grid { grid-template-columns: 1fr 1fr; } }
.tm-card { list-style: none; background: #fff; border-radius: 12px; padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid rgba(3,2,19,.07); box-shadow: 0 1.4rem 2.6rem -2rem rgba(3,2,19,.45); position: relative; }
.tm-card::before { content: "\201C"; position: absolute; inset-block-start: .4rem; inset-inline-start: 1.2rem; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--sand); }
:root[dir="rtl"] .tm-card::before { content: "\201D"; }
.tm-q { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--night); max-width: none; padding-block-start: 2.2rem; }
:root[dir="rtl"] .tm-q { font-family: var(--sans); font-weight: 600; line-height: 1.9; }
.tm-by { margin-block-start: 1.2rem; display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; color: rgba(3,2,19,.66); max-width: none; }
.tm-by strong { color: var(--crimson-bright); font-size: 1.05rem; }

/* ---------- Landing: FAQ */
.faq { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .faq { grid-template-columns: 4fr 8fr; align-items: start; } .faq h2 { position: sticky; top: 6rem; } }
.faq-list { border-block-start: 1px solid var(--rule-dark); }
.faq-item { border-block-end: 1px solid var(--rule-dark); }
.faq-item summary { cursor: pointer; list-style: none; padding-block: 1.15rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.35; }
:root[dir="rtl"] .faq-item summary { font-family: var(--sans); font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 1.6rem; line-height: 1; color: var(--sand); transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--sand); }
.faq-a { padding-block-end: 1.3rem; max-width: 40rem; animation: faq-in .45s var(--ease) both; }
.faq-a p { color: var(--russia-soft); }
.faq-a p + p { margin-block-start: .8rem; }
.faq-a .text-link { color: var(--sand); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-.4rem); } }

/* ---------- Order page */
.order-box { color: var(--russia); }
.order-box .buy__h { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--sand); margin: 0 0 .9rem; }
:root[dir="rtl"] .order-box .buy__h { font-weight: 700; }
.order-box .form { max-width: none; margin-block-start: .6rem; }
.order-box .form label { color: var(--russia); }
.order-box .hint { color: var(--russia-soft); font-size: .85rem; margin: 0; }
.order-box .auth-form h3 { color: var(--russia); }
.o-name { font-size: 1.6rem; margin-block-end: .3rem; }
.o-price { font-weight: 600; color: var(--crimson-bright); margin-block-end: 1rem; max-width: none; }
.o-price small { color: rgba(3,2,19,.6); font-weight: 400; margin-inline-start: .4rem; }
.o-sub { font-weight: 600; margin: 1.2rem 0 .4rem; max-width: none; color: var(--night); }
.o-steps { display: grid; gap: .2rem; }
.o-step { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; align-items: start; padding-block: 1rem; border-block-start: 1px solid var(--rule-light); }
.o-step .o-n { grid-row: span 2; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--crimson-bright); }
.o-step h3 { font-size: 1.2rem; margin: 0; }
.o-step p { margin: .15rem 0 0; font-size: .98rem; }
.pick { display: flex; flex-wrap: wrap; gap: .8rem; max-width: none; }

/* ---------- Sign in and create account */
.auth { max-width: 28rem; }
.acct .auth { margin-block-start: 2rem; }
.auth .msg { margin-block: 0 1rem; }
.auth-tabs { display: flex; gap: .4rem; margin-block-end: .4rem; }
.auth-tabs button { font: inherit; font-weight: 600; border: 1px solid var(--rule-light); background: none; color: inherit; border-radius: 999px; padding: .4rem 1.2rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.order-box .auth-tabs button { border-color: var(--rule-dark); color: var(--russia); }
.auth-tabs button.is-active { background: var(--crimson-bright); border-color: var(--crimson-bright); color: var(--russia); }
.auth-form h3 { font-size: 1.4rem; }
.auth-form p { max-width: none; }
.auth-link { margin: 0; }
.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--crimson-bright); text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.order-box .linklike { color: var(--sand); }
.btn-line-dark { border-color: var(--rule-light); color: var(--night); }
.btn-line-dark:hover { border-color: var(--crimson-bright); color: var(--crimson-bright); }
.acct__who { max-width: none; margin-block-end: 1.4rem; }
.acct__h { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-block-end: 1rem; }
.hist { display: grid; gap: .8rem; max-width: 46rem; }
.hist li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; background: #fff; border-radius: 12px; border: 1px solid rgba(3,2,19,.07); padding: 1rem 1.2rem; }
.hist__name { font-family: var(--serif); font-size: 1.25rem; }
:root[dir="rtl"] .hist__name { font-family: var(--sans); font-weight: 700; }
.hist__meta { grid-column: 1; color: rgba(3,2,19,.62); font-size: .92rem; max-width: none; }
.hist .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 34rem) { .hist li { grid-template-columns: 1fr; } .hist .btn { grid-column: 1; grid-row: auto; margin-block-start: .6rem; } }

/* ---------- Guide */
.guide section { margin-block-start: clamp(2rem, 5vw, 3.2rem); }
.guide h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-block-end: 1rem; }
.g-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: 1fr; margin-block-start: clamp(2rem, 5vw, 3.2rem); }
@media (min-width: 56rem) { .g-grid { grid-template-columns: 1fr 1fr; } }
.guide .g-grid .g-card { margin-block-start: 0; background: #fff; border-radius: 12px; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid rgba(3,2,19,.07); box-shadow: 0 1.4rem 2.6rem -2rem rgba(3,2,19,.45); }
.g-steps { counter-reset: g; display: grid; gap: .8rem; }
.g-steps li { counter-increment: g; position: relative; padding-inline-start: 2.4rem; }
.g-steps li::before { content: counter(g); position: absolute; inset-inline-start: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--crimson-bright); color: var(--russia); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.guide .note { margin-block-start: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .dr-card, .dr-logo, .dr-sw, .dr-aa { transition: none; }
}

/* Legal pages (31 October 2026). Each page holds an English and an Arabic block. */
.l-ar { display: none; }
html[lang="ar"] .l-ar { display: block; }
html[lang="ar"] .l-en { display: none; }
.legal { max-width: 46rem; padding-block-end: clamp(2rem, 5vw, 4rem); }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
.legal p { margin: .6rem 0; line-height: 1.7; }
.legal ul { padding-inline-start: 1.3rem; margin: .6rem 0; list-style: disc; }
.legal h2, .legal p, .legal li, .legal .tw { opacity: 1 !important; transform: none !important; transition: none !important; }
.legal li { margin: .4rem 0; line-height: 1.6; }
.legal .tw { overflow-x: auto; margin: .8rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: .65rem .7rem; border-bottom: 1px solid var(--rule-light); }
.legal th { font-weight: 600; }
.consent { font-size: .9rem; margin-block-start: .9rem; }
.consent a { text-decoration: underline; }
.consent-box { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-block-start: .6rem; text-align: start; }
.consent-box input { margin-block-start: .25rem; flex: none; }

/* Early access box on the Foundation and System pages */
.buy .buy__tag { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 0 0 .5rem; }
.buy .ea { margin-block-start: 1rem; max-width: none; }
.buy .ea .nl__row { flex-direction: column; }
.buy .ea .consent-box { color: var(--russia-soft); }
.buy .ea .consent-box a { color: var(--sand); text-decoration: underline; }
.buy .ea .consent-box input { accent-color: var(--sand); }
.buy .ea .btn { margin-block-start: 1rem; }
.buy .ea .nl__note { margin-block-start: .8rem; }

/* Cookie banner, shown only when analytics is switched on */
.ck { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; width: 100%; max-width: none; margin: 0; padding: .6rem max(1rem, calc((100% - 62rem) / 2)); box-sizing: border-box; background: rgba(11,10,36,.6); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); color: var(--russia); border-radius: 0; box-shadow: inset 0 1px 0 rgba(245,232,232,.25); display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ck { background: rgba(11,10,36,.9); } }
.ck p { margin: 0; flex: 1 1 16rem; font-size: .78rem; line-height: 1.5; }
.ck p a { color: var(--sand); text-decoration: underline; }
.ck__row { display: flex; gap: .4rem; flex: none; }
.ck .btn { padding: .35rem .85rem; min-height: 2rem; font-size: .78rem; }
@media (max-width: 30rem) { .ck__row { width: 100%; } .ck__row .btn { flex: 1; } }
.ck .btn-line { background: transparent; color: var(--russia); box-shadow: inset 0 0 0 1px rgba(245,232,232,.4); }
.ck .btn-line:hover { background: rgba(245,232,232,.12); }
