/* ==========================================================================
   aboalimousa.com · design v3 "النور في الخيمة" — light inside the tent
   Night ground, lantern amber, Cairo display + Readex Pro text.
   ========================================================================== */

@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(fonts/cairo-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(fonts/cairo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Readex"; font-weight: 160 700; font-display: swap; src: url(fonts/readex-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 160 700; font-display: swap; src: url(fonts/readex-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0c0b;
  --bg-2: #0f1210;
  --surface: #151916;
  --surface-2: #1c211d;
  --line: rgb(242 235 223 / .10);
  --line-2: rgb(242 235 223 / .18);
  --text: #f2ebdf;
  --muted: #b3ab9c;
  --ember: #ffb35c;
  --ember-2: #f08a2c;
  --ember-ink: #1b1005;
  --red: #e5503f;
  --wa: #1a7f45;
  --glow: 0 0 0 1px rgb(255 179 92 / .35), 0 18px 60px -12px rgb(240 138 44 / .55);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --hdr: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Readex", system-ui, "Segoe UI", Tahoma, sans-serif;
  --display: "Cairo", "Readex", system-ui, sans-serif;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
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(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.8; font-weight: 350; overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.65; }
img, svg, canvas, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.35; margin: 0 0 .5em; text-wrap: balance; }
html[lang="en"] :is(h1, h2, h3) { line-height: 1.12; letter-spacing: -.02em; }
.h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.6rem); }
.h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ember); color: var(--ember-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--ember); color: var(--ember-ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ember); font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px 2px rgb(255 179 92 / .7); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* split/rise entrances: hidden only while script is about to animate them (head.js + main.js) */
.js:not(.ready):not(.reduced) :is([data-rise], [data-split], [data-portrait]) { opacity: 0; }
.split-line { overflow: clip; padding-block: .06em; margin-block: -.06em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { --b: var(--surface-2); --c: var(--text); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--b); color: var(--c); font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); border-color: var(--text); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ember { --c: var(--ember-ink); border: 0; background: linear-gradient(135deg, #ffd08a, var(--ember) 40%, var(--ember-2)); box-shadow: 0 10px 30px -10px rgb(240 138 44 / .7); font-weight: 600; }
.btn--ember::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: inherit; filter: blur(14px); opacity: 0; transition: opacity .35s; }
.btn--ember:hover { box-shadow: var(--glow); }
.btn--ember:hover::after { opacity: .6; }
.btn--wa { --b: var(--wa); --c: #fff; border-color: transparent; }
.btn--wa:hover { --b: #15703c; border-color: transparent; }
.btn--ghost { --b: rgb(242 235 223 / .04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { --b: rgb(242 235 223 / .1); }
.btn--sm { min-height: 42px; padding: 6px 16px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.magnet { display: inline-block; }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 100; inset-inline: 0; top: 14px; display: flex; justify-content: center; padding-inline: var(--gut); pointer-events: none; transition: transform .5s var(--ease); }
.hdr.is-hidden { transform: translateY(-140%); }
.hdr__bar { pointer-events: auto; display: flex; align-items: center; gap: 14px; width: min(100%, var(--wrap)); min-height: 60px; padding: 8px 8px 8px 8px; padding-inline-start: 10px; border-radius: 999px; background: rgb(15 18 16 / .55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px -20px rgb(0 0 0 / .8); }
.hdr.is-solid .hdr__bar { background: rgb(15 18 16 / .85); }
.hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; margin-inline-end: auto; }
.hdr__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 179 92 / .5); }
.hdr__nav { display: flex; align-items: center; gap: 2px; }
.hdr__nav a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .96rem; transition: color .2s, background .2s; }
.hdr__nav a:hover { color: var(--text); background: rgb(242 235 223 / .06); }
.hdr__nav a[aria-current="page"] { color: var(--text); }
.hdr__nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ember); }
.hdr__lang { border: 1px solid var(--line); margin-inline-start: 6px; }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; position: relative; }
.hdr__burger span { position: absolute; inset-inline: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.hdr__burger span:first-child { top: 18px; } .hdr__burger span:last-child { top: 26px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1020px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-block; }
}
@media (max-width: 520px) { .hdr__cta span { display: none; } .hdr__cta { width: 46px; padding: 0; } }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 110px var(--gut) 40px; background: radial-gradient(120% 70% at 50% 0%, rgb(240 138 44 / .18), transparent 60%), rgb(10 12 11 / .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--display); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.35; text-decoration: none; color: var(--text); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; transition-delay: calc(var(--i) * 50ms + 100ms); }
.menu nav a[aria-current="page"] { color: var(--ember); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--hdr) + 40px) 0 80px; overflow: hidden; isolation: isolate; background: radial-gradient(90% 60% at 50% -10%, rgb(240 138 44 / .16), transparent 70%), var(--bg); }
.hero__rays { position: absolute; inset: 0; z-index: -1; opacity: .95; }
.hero__rays > * { position: absolute; inset: 0; }
.hero__grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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"); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-weight: 900; font-size: clamp(2.6rem, .9rem + 6.2vw, 6.4rem); line-height: 1.15; margin: 0 0 .35em; letter-spacing: 0; }
html[lang="en"] .hero__title { line-height: 1; letter-spacing: -.035em; }
.hero__title em { font-style: normal; display: block; background: linear-gradient(100deg, #ffe0b0, var(--ember) 45%, var(--ember-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title em .split-word { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--muted); max-width: 46ch; margin-bottom: 34px; }
.hero__portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px 28px 28px; box-shadow: 0 40px 120px -30px rgb(240 138 44 / .45), 0 0 0 1px rgb(255 179 92 / .25); }
.hero__portrait::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 999px 999px 40px 40px; border: 1px solid rgb(255 179 92 / .25); }
.hero__badge { position: absolute; inset-inline-start: -24px; bottom: 28px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: rgb(15 18 16 / .7); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .9rem; line-height: 1.4; }
.hero__badge b { font-family: var(--display); font-size: 1rem; }
.hero__badge span { color: var(--muted); }
.hero__scroll { position: absolute; inset-inline-start: 50%; bottom: 26px; width: 28px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); translate: -50% 0; }
html[dir="rtl"] .hero__scroll { translate: 50% 0; }
.hero__scroll span { position: absolute; inset-inline-start: 50%; top: 9px; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 4px; background: var(--ember); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--hdr) + 28px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; width: min(62%, 300px); }
  .hero__badge { inset-inline-start: auto; inset-inline-end: -30%; bottom: 14px; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) { .hero .btn-row .magnet, .hero .btn-row .btn { width: 100%; } .hero .magnet > * , .hero .magnet .btn { width: 100%; } }

/* ---------- marquee (React Bits ScrollVelocity) ---------- */
.marquee { padding: 34px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; direction: ltr; }
.marquee .rb-parallax, .marquee .parallax { position: relative; overflow: hidden; }
.marquee .rb-scroller, .marquee .scroller { display: flex; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem); line-height: 1.2; letter-spacing: 0; filter: none; }
.marquee .scroller span { flex-shrink: 0; padding-inline-end: .4em; }
.marquee section > div:nth-child(2) .scroller { color: transparent; -webkit-text-stroke: 1px rgb(255 179 92 / .55); }
.marquee__fallback { margin: 0; text-align: center; font-family: var(--display); font-size: clamp(1.6rem, 1rem + 3vw, 3rem); color: var(--ember); direction: rtl; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(64px, 9vw, 120px) 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: grid; gap: 6px; padding: 10px clamp(16px, 3vw, 40px); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 1.2rem + 5vw, 6rem); line-height: 1; direction: ltr; text-align: start; unicode-bidi: isolate; background: linear-gradient(180deg, var(--text), #c9bfae); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .stat__num { text-align: end; }
.stat__num * { -webkit-text-fill-color: var(--text); }
.stat__label { color: var(--muted); font-size: 1rem; }
@media (max-width: 720px) { .numbers__grid { grid-template-columns: 1fr; gap: 28px; } .stat { border: 0; padding: 0; } }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 860px; }
.sec-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.sec-head .h2, .hgal__head .h2, .stack .h2 { margin: 0; }

/* ---------- featured appeal (GSAP grows the frame) ---------- */
.feature { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.feature__head { margin-bottom: 32px; }
.feature__head .h2 { max-width: 24ch; font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); }
.feature__frame { position: relative; display: block; width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; aspect-ratio: 16 / 9; max-height: 86svh; border-radius: var(--radius); overflow: hidden; text-decoration: none; transform-origin: 50% 0; }
.feature__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__frame:hover img { transform: scale(1.03); }
.feature__shade { position: absolute; inset: 0; background: radial-gradient(40% 50% at 50% 50%, rgb(0 0 0 / .35), transparent 70%); }
.feature__cta { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.feature__cta > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feature__cta b { display: block; font-family: var(--display); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); }
.feature__cta small { color: rgb(255 255 255 / .8); font-size: .95rem; }
.feature__play { width: clamp(58px, 6vw, 86px); height: clamp(58px, 6vw, 86px); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffd08a, var(--ember-2)); color: var(--ember-ink); box-shadow: 0 0 0 10px rgb(255 179 92 / .18); transition: transform .4s var(--ease); flex: none; }
.feature__play svg { width: 40%; height: 40%; }
html[dir="rtl"] .feature__play svg, html[dir="rtl"] .player__btn svg, html[dir="rtl"] .vcard__play svg { transform: scaleX(-1); }
.feature__frame:hover .feature__play { transform: scale(1.08); }

/* ---------- horizontal gallery ---------- */
.hgal { position: relative; padding: clamp(56px, 7vw, 100px) 0; }
.hgal__pin { overflow: hidden; }
.hgal__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.hgal__viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; padding-inline: max(var(--gut), (100vw - var(--wrap)) / 2); }
.hgal__viewport::-webkit-scrollbar { display: none; }
.hgal__track { display: flex; gap: 22px; width: max-content; padding-bottom: 8px; }
.hgal__track > * { scroll-snap-align: center; }
.is-pinned .hgal__viewport { overflow: visible; scroll-snap-type: none; }
.vcard--lg { width: clamp(280px, 30vw, 440px); }
.hgal__more { width: clamp(220px, 20vw, 300px); display: grid; place-content: center; text-align: center; gap: 8px; border-radius: var(--radius); border: 1px dashed var(--line-2); text-decoration: none; transition: border-color .3s, background .3s; }
.hgal__more span { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--ember); direction: ltr; }
.hgal__more:hover { border-color: var(--ember); background: rgb(255 179 92 / .06); }

/* ---------- video cards ---------- */
.vcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.vcard:hover { transform: translateY(-6px); border-color: rgb(255 179 92 / .4); box-shadow: 0 30px 60px -30px rgb(240 138 44 / .45); }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.92); }
.vcard:hover .vcard__media img { transform: scale(1.06); filter: saturate(1.05); }
.vcard__play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 179 92 / .95); color: var(--ember-ink); opacity: 0; transform: scale(.7); transition: opacity .35s, transform .5s var(--ease); }
.vcard__play svg { width: 24px; height: 24px; }
.vcard:hover .vcard__play { opacity: 1; transform: scale(1); }
.vcard__dur { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; padding: 2px 9px; border-radius: 8px; background: rgb(0 0 0 / .72); color: #fff; font-size: .8rem; direction: ltr; font-variant-numeric: tabular-nums; }
.vcard__tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; }
.vcard__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.vcard__title { font-weight: 500; font-size: 1.04rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__excerpt { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__meta { color: var(--muted); font-size: .86rem; display: flex; gap: 6px; flex-wrap: wrap; }
.vgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- stacking cards ---------- */
.stack { padding: clamp(56px, 7vw, 110px) 0; }
.stack__cards { display: grid; gap: 28px; }
.scard { position: sticky; top: calc(var(--hdr) + 40px + var(--k, 0) * 18px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: min(62svh, 520px); padding: clamp(22px, 3vw, 44px); border-radius: 30px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: 0 -30px 60px -40px rgb(0 0 0 / .9); transform-origin: 50% 0; }
.scard:nth-child(1) { --k: 0; } .scard:nth-child(2) { --k: 1; } .scard:nth-child(3) { --k: 2; } .scard:nth-child(4) { --k: 3; }
.scard__n { font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(255 179 92 / .7); display: block; margin-bottom: 18px; direction: ltr; text-align: start; }
html[dir="rtl"] .scard__n { text-align: end; }
.scard h3 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }
.scard p { color: var(--muted); font-size: 1.08rem; max-width: 42ch; margin: 0; }
.scard__media { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.scard__media:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .scard { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; } }

/* ---------- cases bento ---------- */
.cases { padding: clamp(56px, 7vw, 110px) 0; }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, 26vh); }
.bento__item { min-width: 0; }
.bento__item--1 { grid-column: span 2; grid-row: span 2; }
.bento__item--4, .bento__item--5, .bento__item--6 { grid-column: span 2; }
.bento__item > .spotlight-card, .bento__item > .case { height: 100%; }
.spotlight-card { padding: 0 !important; border-radius: var(--radius) !important; height: 100%; }
.case { position: relative; display: flex; align-items: flex-end; height: 100%; min-height: 220px; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.case__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.5) blur(2px); transform: scale(1.04); transition: opacity .6s, transform 1.2s var(--ease), filter .6s; }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgb(10 12 11 / .92)); }
.case:hover .case__bg { opacity: .5; transform: scale(1.08); filter: grayscale(0) blur(0); }
.case__body { position: relative; z-index: 1; display: grid; gap: 4px; padding: clamp(18px, 2vw, 28px); }
.case__count { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); line-height: 1; color: var(--ember); direction: ltr; text-align: start; }
html[dir="rtl"] .case__count { text-align: end; }
.case b { font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); }
.case__body > span:last-child { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); } .bento__item--1 { grid-row: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__item--1, .bento__item--4 { grid-column: auto; } }

/* ---------- shorts (React Bits CircularGallery) ---------- */
.shorts { padding: clamp(56px, 7vw, 110px) 0 clamp(24px, 4vw, 40px); }
.shorts__hint { color: var(--muted); margin: 0; }
.shorts__stage { position: relative; height: clamp(460px, 78svh, 760px); }
.shorts__stage > :not(.shorts__fallback) { position: absolute; inset: 0; }
.shorts__fallback { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gut) 12px; height: auto; scroll-snap-type: x mandatory; }
.shorts__fallback .vcard { flex: 0 0 260px; scroll-snap-align: start; }

/* ---------- winter (21st.dev Rain Glass) ---------- */
.winter { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.winter__glass { position: absolute; inset: 0; z-index: -1; }
.winter__glass .rain-glass, .winter__glass > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.winter__glass > img { filter: blur(6px) brightness(.55); transform: scale(1.06); }
.rain-glass { overflow: hidden; touch-action: pan-y; user-select: none; background: #14181b; cursor: crosshair; }
.rain-glass__fog { display: none; color: #121619; }
.rain-glass__layer { position: absolute; inset: 0; pointer-events: none; }
.rain-glass__canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease-out; }
.rain-glass__content { display: none; }
.winter::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(10 12 11 / .85), rgb(10 12 11 / .25) 60%, transparent), linear-gradient(transparent 50%, rgb(10 12 11 / .9)); }
html[dir="rtl"] .winter::after { background: linear-gradient(270deg, rgb(10 12 11 / .85), rgb(10 12 11 / .25) 60%, transparent), linear-gradient(transparent 50%, rgb(10 12 11 / .9)); }
.winter__content { padding: 160px 0 clamp(56px, 8vw, 110px); pointer-events: none; }
.winter__content a, .winter__content .magnet { pointer-events: auto; }
.winter__title { font-size: clamp(2.2rem, 1rem + 4.6vw, 5rem); max-width: 14ch; line-height: 1.2; text-shadow: 0 4px 40px rgb(0 0 0 / .6); }
.winter__lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); max-width: 44ch; color: #e6dfd2; text-shadow: 0 2px 20px rgb(0 0 0 / .8); margin-bottom: 30px; }
.winter__hint { margin: 26px 0 0; display: inline-flex; gap: 10px; align-items: center; color: rgb(242 235 223 / .75); font-size: .92rem; }
.winter__hint::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; box-shadow: inset 0 0 0 6px rgb(255 255 255 / .06); animation: wipe 2.4s var(--ease) infinite; }
@keyframes wipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }

/* ---------- mission (React Bits ScrollReveal) ---------- */
.mission { padding: clamp(90px, 14vw, 200px) 0; text-align: start; }
.mission__text, .mission .scroll-reveal-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1rem + 3.4vw, 4.2rem); line-height: 1.45; margin: 0; max-width: 24ch; }
.mission .scroll-reveal { margin: 0; }
.mission__sign { margin-top: 36px; color: var(--ember); font-family: var(--display); font-size: 1.2rem; }
.mission__sign::before { content: "— "; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 7vw, 110px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--hdr) + 40px); }
.faq__side .muted { margin-bottom: 22px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.qa[open] { border-color: rgb(255 179 92 / .35); background: var(--surface-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 500; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(45deg); transition: transform .4s var(--ease); margin-top: -6px; }
.qa[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.qa p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* ---------- footer ---------- */
.ftr { position: relative; padding: clamp(72px, 9vw, 120px) 0 28px; border-top: 1px solid var(--line); background: radial-gradient(80% 60% at 50% 120%, rgb(240 138 44 / .22), transparent 70%), var(--bg); overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.ftr__line { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.4; max-width: 22ch; margin-bottom: 28px; }
.ftr__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ftr__cols h2 { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.ftr__cols div { display: grid; gap: 6px; align-content: start; }
.ftr__cols a { text-decoration: none; color: var(--text); padding: 4px 0; transition: color .2s; }
.ftr__cols a:hover { color: var(--ember); }
.ftr__mark { margin: clamp(48px, 7vw, 90px) 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 1rem + 12vw, 13rem); line-height: 1.3; padding-bottom: .1em; text-align: center; white-space: nowrap; background: linear-gradient(180deg, rgb(242 235 223 / .16), rgb(242 235 223 / .02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.ftr__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.ftr__social a:hover { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); }
@media (max-width: 860px) { .ftr__top { grid-template-columns: 1fr; } }

/* ---------- mobile dock ---------- */
.dock { position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgb(15 18 16 / .8); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateY(160%); transition: transform .5s var(--ease); }
.dock.is-on { transform: none; }
@media (max-width: 760px) { .dock { display: grid; } body { padding-bottom: 84px; } }

/* ---------- inner pages ---------- */
.phero { position: relative; padding: calc(var(--hdr) + 80px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.phero__glow { position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 30%, rgb(240 138 44 / .22), transparent 70%); pointer-events: none; }
.phero__title { font-size: clamp(2.2rem, 1rem + 4.4vw, 5rem); margin: 0 0 .3em; max-width: 20ch; }
.phero__lead { color: var(--muted); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ember); }
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.page__h { margin: clamp(56px, 7vw, 96px) 0 28px; font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .95rem var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); }
.chip small { opacity: .7; font-size: .82em; }
.search { position: relative; display: flex; align-items: center; margin-inline-start: auto; min-width: min(100%, 280px); }
.search .icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 8px 46px; font: inherit; font-size: .96rem; }
.search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgb(255 179 92 / .15); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }
.empty.is-visible { display: block; }
.more { display: flex; justify-content: center; margin-top: 36px; }

.watch { position: relative; padding: calc(var(--hdr) + 56px) 0 clamp(64px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.watch__main > * + * { margin-top: 26px; }
.watch__side { position: sticky; top: calc(var(--hdr) + 40px); }
.watch__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.5; }
.related__h { margin: clamp(56px, 7vw, 90px) 0 24px; }
@media (max-width: 1020px) { .watch__grid { grid-template-columns: 1fr; } .watch__side { position: static; } }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted); font-size: .94rem; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tagpill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(255 179 92 / .4); color: var(--ember); text-decoration: none; font-size: .86rem; }
a.tagpill:hover { background: rgb(255 179 92 / .1); }
.cover { border-radius: var(--radius); }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 100px -40px rgb(240 138 44 / .4), 0 0 0 1px var(--line); }
.player--short { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.player__link { position: absolute; inset: 0; display: block; }
.player__link img { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffd08a, var(--ember-2)); color: var(--ember-ink); box-shadow: 0 0 0 12px rgb(255 179 92 / .2); transition: transform .4s var(--ease), box-shadow .4s; }
.player__link:hover .player__btn { transform: scale(1.07); box-shadow: 0 0 0 18px rgb(255 179 92 / .14); }
.player__btn svg { width: 32px; height: 32px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.panel { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.panel .eyebrow { margin: 0; }
.panel__text { color: var(--muted); margin: 0 0 6px; }
.panel__note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .86rem; margin: 4px 0 0; }

.prose { font-size: 1.08rem; overflow-wrap: anywhere; }
.prose--lg { font-size: 1.14rem; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose a { color: var(--ember); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ember); }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 18px; background: var(--surface); border-inline-start: 3px solid var(--ember); font-family: var(--display); font-size: 1.2em; line-height: 1.7; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose img { border-radius: 18px; margin-block: 1.4em; }
.prose .tag { color: var(--muted); }
.desc.is-clamped { max-height: 360px; overflow: hidden; position: relative; }
.desc.is-clamped::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { color: var(--muted); font-size: .92rem; margin-inline-end: 6px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .3s var(--ease), border-color .2s; }
.share a:hover, .share button:hover { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); transform: translateY(-2px); }
.share .is-copied { background: var(--wa); border-color: var(--wa); color: #fff; }

.storylink { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 18px; background: rgb(255 179 92 / .08); border: 1px solid rgb(255 179 92 / .3); text-decoration: none; transition: background .3s; }
.storylink:hover { background: rgb(255 179 92 / .14); }
.storylink .icon { width: 28px; height: 28px; color: var(--ember); }
.storylink b { display: block; }
.storylink span span { color: var(--muted); font-size: .94rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; font-size: .96rem; line-height: 1.6; transition: border-color .3s, transform .4s var(--ease); }
.pager a:hover { border-color: var(--ember); transform: translateY(-3px); }
.pager small { display: block; color: var(--ember); font-size: .8rem; }
.pager .next { text-align: end; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: start; } }

.about { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__side { position: sticky; top: calc(var(--hdr) + 40px); display: grid; gap: 18px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px 24px 24px; box-shadow: 0 30px 90px -30px rgb(240 138 44 / .45); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } .about__side { position: static; max-width: 420px; } }

.ways { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .ways { grid-template-columns: 1fr; } }
.way { min-width: 0; }
.way > .spotlight-card { height: 100%; }
.way__in { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.spotlight-card .way__in { background: transparent; border: 0; }
.way__in p { color: var(--muted); margin: 0; }
.way__in ul { margin: 0; padding-inline-start: 1.1em; flex: 1; }
.way__in li::marker { color: var(--ember); }
.way__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgb(255 179 92 / .12); color: var(--ember); }
.way__icon .icon { width: 28px; height: 28px; }
.way__icon--wa { background: rgb(26 127 69 / .2); color: #4cd585; }
.needs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.need { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.need .scard__n { font-size: 3rem; margin-bottom: 10px; }
.need h3 { font-size: 1.2rem; }
.need p { color: var(--muted); margin: 0; }

.contacts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: transform .4s var(--ease), border-color .3s; }
.contact:hover { transform: translateY(-4px); border-color: var(--c); }
.contact__icon { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; }
.contact__icon .icon { width: 26px; height: 26px; }
.contact__txt { min-width: 0; }
.contact b { display: block; font-weight: 500; }
.contact__txt > span { display: block; color: var(--muted); font-size: .9rem; direction: ltr; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="ltr"] .contact__txt > span { text-align: start; }
.notice { display: flex; gap: 10px; align-items: center; margin-top: 28px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scard { position: relative; top: auto; }
}
