/* Orkideh Face — experience layer (phase 1).
   Loaded after the approved v46 stylesheet and inline fixes; it only adds tokens,
   typography refinements and new components. Mobile-stability rules stay in charge. */

/* ---------- Fonts: same Noto Sans Arabic (OFL), smaller WOFF2 first ---------- */
@font-face{font-family:Orkideh;src:url("../fonts/noto-sans-arabic-400.woff2") format("woff2"),url("../../v46/media/504d7407d86875acf7.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Orkideh;src:url("../fonts/noto-sans-arabic-700.woff2") format("woff2"),url("../../v46/media/ded6fc7359ca36d15d.ttf") format("truetype");font-weight:700 900;font-display:swap}

/* ---------- Design tokens ---------- */
:root{
  /* colour — derived from the existing brand (#4e2367 / #7f3b9b / lilac) */
  --of-night:#21132F; --of-night-2:#2c1a3d; --of-plum:#653A89; --of-violet:#7f3b9b;
  --of-lilac:#A879BE; --of-mist:#E8DBEF; --of-ivory:#FAF7F2; --of-paper:#fdfbfe;
  --of-ink:#26182f; --of-ink-soft:#5b4c66; --of-line:rgba(76,48,92,.14);
  --of-on-dark:#fff; --of-on-dark-soft:rgba(255,255,255,.84);
  /* spacing (4px base) */
  --of-s1:4px; --of-s2:8px; --of-s3:12px; --of-s4:16px; --of-s5:24px; --of-s6:32px; --of-s7:48px; --of-s8:72px; --of-s9:112px;
  /* radius */
  --of-r-sm:12px; --of-r-md:18px; --of-r-lg:26px; --of-r-xl:34px; --of-r-pill:999px;
  /* shadow */
  --of-sh-1:0 6px 18px rgba(48,24,66,.07); --of-sh-2:0 18px 44px rgba(48,24,66,.11); --of-sh-3:0 34px 90px rgba(20,9,30,.34);
  /* type scale */
  --of-fs-eyebrow:12px; --of-fs-body:clamp(15px,1.05vw,17px); --of-fs-h3:clamp(17px,1.4vw,21px);
  --of-fs-h2:clamp(28px,3.4vw,50px); --of-lh-fa:1.95; --of-lh-head:1.45;
  /* motion */
  --of-ease:cubic-bezier(.22,.61,.36,1); --of-ease-out:cubic-bezier(.16,1,.3,1); --of-dur-1:.18s; --of-dur-2:.36s; --of-dur-3:.7s;
}

/* ---------- Typography: Persian/Arabic script must never be letter-spaced ---------- */
html[lang="fa"] :is(h1,h2,h3,h4,.cinematic-title,.overline,.lead,p,a,button,label,dd,dt),
html[lang="ar"] :is(h1,h2,h3,h4,.cinematic-title,.overline,.lead,p,a,button,label,dd,dt){letter-spacing:0!important}
html[lang="fa"] body{font-feature-settings:"kern" 1;text-rendering:optimizeLegibility}
html[lang="fa"] .section-head h2,html[lang="fa"] .v13-head h2{font-size:var(--of-fs-h2);line-height:var(--of-lh-head);font-weight:900;color:var(--of-ink)}
html[lang="fa"] .section-head p{font-size:var(--of-fs-body);line-height:var(--of-lh-fa);color:var(--of-ink-soft);max-width:62ch}
.section-head .eyebrow,.v13-head .eyebrow{display:inline-flex;align-items:center;gap:10px;font:700 var(--of-fs-eyebrow)/1.4 Inter,system-ui,sans-serif;letter-spacing:.16em;color:var(--of-plum)}
.section-head .eyebrow::before,.v13-head .eyebrow::before{content:"";width:34px;height:1px;background:linear-gradient(90deg,var(--of-lilac),transparent)}
html[dir="rtl"] .section-head .eyebrow::before,html[dir="rtl"] .v13-head .eyebrow::before{background:linear-gradient(270deg,var(--of-lilac),transparent)}

/* Intro copy over the scroll canvas: larger, fully opaque, on a scrim — no faint small text on moving media. */
.cinematic-copy{padding:18px 20px;border-radius:22px;background:linear-gradient(180deg,rgba(14,7,20,.46),rgba(14,7,20,.18));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.cinematic-sub{color:#fff!important;font-weight:600;font-size:clamp(15px,1.6vw,20px)!important}
.cinematic-eyebrow{color:rgba(255,255,255,.9)!important}

/* Visible keyboard focus everywhere. */
:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #b07ccc;outline-offset:3px;border-radius:10px}

/* ---------- Video chapter ---------- */
.v13-videos{position:relative;isolation:isolate;margin-block:var(--of-s8);padding-block:var(--of-s8) var(--of-s7);color:var(--of-on-dark);background:
  radial-gradient(1200px 520px at 85% 0%,rgba(168,121,190,.28),transparent 60%),
  radial-gradient(900px 600px at 0% 100%,rgba(101,58,137,.42),transparent 62%),
  linear-gradient(180deg,var(--of-night) 0%,#1a0f25 100%);overflow:clip}
.v13-videos::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 120px)}
.v13-videos .container{position:relative}
.v13-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--of-s6);align-items:end;margin-bottom:var(--of-s6)}
.v13-head .eyebrow{color:#d9b8ea}
.v13-head .eyebrow::before{background:linear-gradient(90deg,#d9b8ea,transparent)!important}
html[lang="fa"] .v13-head h2{color:#fff;margin:12px 0 0}
.v13-head h2 em{font-style:normal;background:linear-gradient(100deg,#f3dcfb,#c99be0 60%,#f0c9e4);-webkit-background-clip:text;background-clip:text;color:transparent}
.v13-head p{margin:0;color:var(--of-on-dark-soft);font-size:var(--of-fs-body);line-height:var(--of-lh-fa)}
.v13-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 var(--of-s5)}
.v13-filters button{min-height:42px;padding:8px 16px;border-radius:var(--of-r-pill);border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;font:700 14px/1.4 Orkideh,Tahoma,sans-serif;cursor:pointer;transition:background var(--of-dur-1),border-color var(--of-dur-1)}
.v13-filters button:hover{background:rgba(255,255,255,.12)}
.v13-filters button[aria-pressed="true"]{background:#fff;color:var(--of-night);border-color:#fff}
.v13-reels{--gap:14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap);perspective:1400px}
.v13-reel{--in:1;position:relative;display:block;aspect-ratio:9/16;border-radius:var(--of-r-lg);overflow:hidden;background:#140b1c center/cover no-repeat;color:#fff!important;text-decoration:none!important;box-shadow:0 0 0 1px rgba(255,255,255,.12),var(--of-sh-3);transform-style:preserve-3d;
  transform:translate3d(0,calc((1 - var(--in)) * (34px + var(--i,0) * 10px)),0) rotateX(calc((1 - var(--in)) * 9deg));opacity:calc(.35 + var(--in) * .65);transition:box-shadow var(--of-dur-2) var(--of-ease)}
.v13-reel.is-feature{grid-column:span 2;grid-row:span 2}
.v13-reel[hidden]{display:none}
.v13-reel img,.v13-reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.v13-reel .v13-teaser{opacity:0;transition:opacity .45s ease}
.v13-reel .v13-teaser.is-on{opacity:1}
.v13-reel::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,6,20,0) 38%,rgba(14,6,20,.72) 72%,rgba(14,6,20,.94) 100%);pointer-events:none}
.v13-reel-info{position:absolute;z-index:2;inset-inline:14px;bottom:14px;display:grid;gap:6px}
.v13-chip{justify-self:start;padding:4px 10px;border-radius:var(--of-r-pill);background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);font-size:12px;font-weight:700;line-height:1.5;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.v13-reel-title{margin:0;font-size:16px;font-weight:900;line-height:1.7;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.45)}
.v13-reel.is-feature .v13-reel-title{font-size:clamp(18px,1.7vw,25px)}
.v13-reel-meta{font-size:13px;font-weight:600;color:rgba(255,255,255,.88)}
.v13-play{position:absolute;z-index:2;top:14px;inset-inline-end:14px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:var(--of-night);box-shadow:0 8px 24px rgba(0,0,0,.3);transition:transform var(--of-dur-2) var(--of-ease-out)}
.v13-play svg{width:18px;height:18px;margin-left:3px}
.v13-reel:hover .v13-play,.v13-reel:focus-visible .v13-play{transform:scale(1.08)}
.v13-reel:hover{box-shadow:0 0 0 1px rgba(216,168,230,.55),0 40px 100px rgba(10,4,16,.5)}
.v13-more{display:none;margin:var(--of-s5) auto 0;min-height:46px;padding:10px 22px;border-radius:var(--of-r-pill);border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;font:700 15px/1.5 Orkideh,Tahoma,sans-serif;cursor:pointer}
.v13-note{margin:var(--of-s5) 0 0;font-size:13.5px;line-height:1.9;color:rgba(255,255,255,.78)}
.v13-inline-video{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:8px 14px;border:1px solid rgba(126,76,151,.25);border-radius:var(--of-r-pill);background:#faf6ff;color:#5d2f7a!important;font-weight:800;font-size:13px;text-decoration:none!important;cursor:pointer}
.v13-inline-video::before{content:"▶";font-size:10px}
.v13-team-video{display:flex;justify-content:center;margin-top:14px}

/* Player dialog */
.v13-player{width:min(980px,96vw);max-height:94svh;padding:0;border:0;border-radius:var(--of-r-xl);background:#130a1a;color:#fff;box-shadow:var(--of-sh-3);overflow:hidden}
.v13-player::backdrop{background:rgba(12,5,18,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.v13-player-grid{display:grid;grid-template-columns:minmax(0,auto) minmax(260px,1fr);max-height:94svh}
.v13-player-media{position:relative;background:#000;display:grid;place-items:center}
.v13-player video{display:block;height:min(86svh,780px);max-width:100%;aspect-ratio:var(--ar,9/16);background:#000 center/contain no-repeat}
.v13-player-copy{padding:28px 26px;overflow:auto;display:flex;flex-direction:column;gap:12px}
.v13-player-copy h2{margin:0;font-size:clamp(20px,2vw,27px);line-height:1.6;font-weight:900;color:#fff}
.v13-player-copy p{margin:0;font-size:15.5px;line-height:2;color:rgba(255,255,255,.86)}
.v13-player-copy .v13-player-note{font-size:13px;color:rgba(255,255,255,.7);border-top:1px solid rgba(255,255,255,.14);padding-top:12px;margin-top:auto}
.v13-player-actions{display:flex;flex-wrap:wrap;gap:8px}
.v13-player-actions button,.v13-player-actions a{min-height:44px;padding:9px 16px;border-radius:var(--of-r-pill);border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.07);color:#fff!important;font:700 14px/1.5 Orkideh,Tahoma,sans-serif;text-decoration:none!important;cursor:pointer}
.v13-player-actions .v13-cta{background:#fff;color:var(--of-night)!important;border-color:#fff}
.v13-player-close{position:absolute;z-index:3;top:12px;inset-inline-start:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--of-night);font-size:24px;line-height:1;cursor:pointer}
.v13-player-error{position:absolute;inset:auto 12px 12px;padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.72);font-size:13px;line-height:1.8}

/* ---------- Before / after ---------- */
.compare{cursor:ew-resize;-webkit-user-select:none;user-select:none}
.compare .divider>span{width:44px!important;height:44px!important;font-size:18px!important;box-shadow:0 6px 20px rgba(30,12,44,.28)!important;border:2px solid var(--of-mist)}
.compare.is-dragging .divider>span{transform:translate(-50%,-50%) scale(1.08)}
.v13-gallery-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:var(--of-s5);padding:18px 22px;border-radius:var(--of-r-lg);border:1px solid var(--of-line);background:linear-gradient(120deg,#fff,#f7f0fa)}
.v13-gallery-cta p{margin:0;font-size:14.5px;line-height:1.9;color:var(--of-ink-soft)}
.v13-gallery-cta a{white-space:normal}

/* ---------- Scroll depth (desktop, motion allowed) ---------- */
@media (min-width:761px) and (prefers-reduced-motion:no-preference){
  .v13-depth{transform:translate3d(0,calc(var(--v13-p,0) * -26px),0);will-change:transform}
  .v13-depth-soft{transform:translate3d(0,calc(var(--v13-p,0) * -12px),0)}
}

/* ---------- Footer (rights sentence removed) ---------- */
.footer{gap:10px}

/* ---------- Responsive ---------- */
@media (max-width:1100px){.v13-reels{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){
  .v13-head{grid-template-columns:1fr;gap:var(--of-s3)}
  .v13-reels{grid-template-columns:repeat(3,minmax(0,1fr))}
  .v13-player-grid{grid-template-columns:1fr;overflow:auto}
  .v13-player video{height:auto;width:100%;max-height:70svh}
  .v13-player-copy{padding:18px 18px 22px}
}
@media (max-width:760px){
  .v13-videos{margin-block:var(--of-s6);padding-block:var(--of-s7) var(--of-s6)}
  .v13-reels{grid-template-columns:repeat(2,minmax(0,1fr));--gap:10px}
  .v13-reel{transform:none!important;opacity:1!important;border-radius:var(--of-r-md)}
  .v13-reel.is-feature{grid-column:1/-1;grid-row:auto;aspect-ratio:4/5}
  .v13-reels.is-collapsed .v13-reel.is-extra{display:none}
  .v13-more{display:block}
  .v13-reels:not(.is-collapsed)+.v13-more{display:none}
  .v13-reel-info{inset-inline:10px;bottom:10px}
  .v13-reel-title{font-size:14px;line-height:1.65}
  .v13-reel-meta{font-size:12px}
  .v13-chip{font-size:11px}
  .v13-play{width:40px;height:40px;top:10px;inset-inline-end:10px}
  .v13-filters{gap:6px}
  .v13-filters button{min-height:40px;padding:7px 12px;font-size:13px}
  .v13-player{width:100vw;max-width:100vw;max-height:100svh;height:100svh;border-radius:0;margin:0}
  .v13-player-grid{max-height:100svh;height:100%}
  .v13-gallery-cta{padding:14px}
}
@media (prefers-reduced-motion:reduce){
  .v13-reel{transform:none!important;opacity:1!important;transition:none}
  .v13-reel .v13-teaser{display:none}
  .v13-play{transition:none}
}

/* Petals: fade out and pause once the intro is a full screen behind (set by experience.js). */
.orchid-scroll-petals.v13-idle{opacity:0!important;transition:opacity .6s ease!important}
.orchid-scroll-petals.v13-idle .orchid-petal{animation-play-state:paused!important}
