/* ==========================================================================
   Yennayer.ma — ⵢⵏⵏⴰⵢⵔ
   Identity: indigo night · saffron sun · henna red · Atlas green · raw wool
   Motifs: yaz (ⵣ), carpet triangles, lozenges and zigzags
   ========================================================================== */

:root {
  /* Palette */
  --night-950: #070A22;
  --night-900: #0B1030;
  --night-800: #121A48;
  --night-700: #1B2666;
  --night-600: #27348A;
  --saffron: #F5B82E;
  --saffron-300: #FFD772;
  --saffron-600: #DE9A10;
  --henna: #C5432A;
  --henna-600: #B93D25;
  --henna-700: #9A2E1A;
  --atlas: #1F7A5A;
  --atlas-300: #58B892;
  --wool: #F8F1E2;
  --wool-200: #EFE4CC;
  --paper: #FFFDF7;
  --ink: #1A1530;
  --ink-soft: #49425F;

  /* Type */
  --font-latin-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-display: var(--font-latin-display);
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tfng: "Noto Sans Tifinagh", "Ebrima", "Noto Sans", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-hover: translate .25s var(--ease-out), rotate .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s, background-color .25s, color .25s;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(76px, 11vw, 150px);
  --bar-h: 96px;

  /* Patterns */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44' viewBox='0 0 120 44'%3E%3Crect width='120' height='44' fill='%231A1530'/%3E%3Cpath d='M0 0h120v3H0zM0 41h120v3H0z' fill='%23F5B82E'/%3E%3Cpath d='M30 9l15 13-15 13-15-13z' fill='none' stroke='%23F5B82E' stroke-width='3'/%3E%3Cpath d='M30 16l7 6-7 6-7-6z' fill='%23C5432A'/%3E%3Cpath d='M76 10h28L90 22zM76 34h28L90 22z' fill='%23F8F1E2'/%3E%3Ccircle cx='60' cy='22' r='3.2' fill='%2358B892'/%3E%3Ccircle cy='22' r='3.2' fill='%2358B892'/%3E%3Ccircle cx='120' cy='22' r='3.2' fill='%2358B892'/%3E%3C/svg%3E");
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='144' viewBox='0 0 96 144'%3E%3Cpath d='M48 0l48 72-48 72L0 72z' fill='none' stroke='%231A1530' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E");
  --lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='144' viewBox='0 0 96 144'%3E%3Cpath d='M48 0l48 72-48 72L0 72z' fill='none' stroke='%23ffffff' stroke-opacity='.035' stroke-width='2'/%3E%3C/svg%3E");
}

html[lang="ar"] {
  --font-display: "Alexandria", "Noto Kufi Arabic", system-ui, sans-serif;
  --font-body: "Alexandria", "Noto Sans Arabic", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.9; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus, var(--saffron)); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--saffron); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.tfng { font-family: var(--font-tfng); font-style: normal; letter-spacing: .04em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ic--dir { transform: scaleX(-1); }
.yz { width: 1em; height: 1em; flex: none; }

.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--saffron); color: var(--ink); font-weight: 600;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  /* --accent-sm: accent variant that keeps 4.5:1 at small sizes; falls back to the section accent */
  color: var(--accent-sm, var(--accent, var(--henna)));
}
.eyebrow .tfng { font-size: 1.2rem; letter-spacing: .12em; text-transform: none; font-weight: 400; }
.eyebrow i { width: 7px; height: 7px; background: currentColor; rotate: 45deg; flex: none; }
.eyebrow--center { justify-content: center; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
  margin-block: 18px 22px;
}
.h2 em { font-style: italic; font-weight: 500; color: var(--accent, var(--henna)); }
.h2--xl { font-size: clamp(2.5rem, 7vw, 5.6rem); }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.32; font-weight: 700; }
html[lang="ar"] em { font-style: normal; }

.lead { font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.6; text-wrap: pretty; }
html[lang="ar"] .lead { line-height: 1.95; }

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: .8em 1.55em;
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: var(--t-hover);
}
.btn:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--btn-shadow); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn--sm { min-height: 44px; padding: .55em 1.2em; font-size: .95rem; }
.btn--primary { background: var(--saffron); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn--ghost:active { box-shadow: none; }
.btn--dark { background: var(--ink); color: var(--wool); --btn-shadow: var(--saffron); }
.btn--line { background: transparent; color: var(--ink); box-shadow: none; }
.btn--line:hover { background: rgba(26, 21, 48, .07); box-shadow: none; }
.btn--line:active { box-shadow: none; }
.on-dark .btn--primary, .hero .btn--primary, .nav .btn--primary { --btn-shadow: var(--henna); border-color: var(--saffron); }
.hero .btn--ghost { background: rgba(7, 10, 34, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out) calc(var(--d, 0) * 90ms), transform .8s var(--ease-out) calc(var(--d, 0) * 90ms), var(--t-hover);
}
.js [data-reveal="zoom"] { transform: translateY(24px) scale(.93); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Carpet band ---------- */
.band { height: 44px; overflow: hidden; background: var(--ink); }
.band::before {
  content: ""; display: block; height: 100%; width: calc(100% + 240px);
  background: var(--band) 0 0 / 120px 44px repeat-x;
  animation: band-run 9s linear infinite;
}
.band--rev::before { animation-direction: reverse; }
@keyframes band-run { to { transform: translateX(-120px); } }

/* Triangle "fringe" hanging from the previous section */
.edge { position: relative; }
.edge::before {
  content: ""; position: absolute; inset-inline: 0; top: -1px; height: 18px; z-index: 2;
  background: conic-gradient(from -45deg at 50% 100%, var(--edge) 90deg, transparent 0) center top / 36px 18px repeat-x;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 100; color: var(--wool); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(9, 13, 42, .8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transition: opacity .35s;
}
.nav.is-stuck::before { opacity: 1; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; transition: height .35s var(--ease-out); }
.nav.is-stuck .nav__in { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; position: relative; z-index: 2; }
.brand__mark { width: 46px; height: 46px; flex: none; transition: rotate .9s var(--ease-out); }
.brand:hover .brand__mark { rotate: 90deg; }
.brand__text { display: grid; line-height: 1; direction: ltr; }
.brand__name { font: 700 1.32rem/1 var(--font-latin-display); letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.brand__name i { font-style: normal; color: var(--saffron); }
.brand__tfng { font-size: .68rem; letter-spacing: .36em; color: var(--saffron-300); margin-top: 6px; }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 30px); }
.nav__links a {
  position: relative; padding: 12px 2px; font-size: .97rem; font-weight: 500; text-decoration: none;
  opacity: .84; transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 5px; height: 6px;
  background: conic-gradient(from 135deg at 50% 0, var(--saffron) 90deg, transparent 0) 0 0 / 12px 6px repeat-x;
  transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; }
.lang button {
  min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; opacity: .78;
  transition: background-color .2s, color .2s, opacity .2s;
}
.lang button[lang="ar"] { font-family: "Alexandria", system-ui, sans-serif; letter-spacing: 0; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { background: var(--wool); color: var(--ink); opacity: 1; }

.nav__m-cta { display: none; }
.nav__burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; inset-inline: 11px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 27px; }
.nav.is-open .nav__burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 6px;
    background: var(--night-950) var(--lattice-light);
    opacity: 0; visibility: hidden; translate: 0 -16px;
    transition: opacity .3s, translate .4s var(--ease-out), visibility 0s .4s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s, translate .4s var(--ease-out); }
  .nav__links a { font: 600 clamp(1.8rem, 7vw, 2.6rem)/1.2 var(--font-display); opacity: 1; padding: 8px 12px; }
  .nav__links a::after { display: none; }
  .nav__links .nav__m-cta {
    display: inline-flex; margin-top: 18px; padding: 12px 30px; border-radius: 999px;
    background: var(--saffron); color: var(--ink); font: 600 1.15rem/1.2 var(--font-body); box-shadow: 4px 4px 0 var(--henna);
  }
}
@media (max-width: 420px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.12rem; }
  .brand__tfng { display: none; }
  .lang button { min-width: 34px; padding: 0 7px; }
  .nav__tools { gap: 4px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-pin { position: relative; background: var(--night-950); }
.hero {
  --p: 0; --mx: 0; --my: 0;
  --sun-off: clamp(0px, 940px - 100svh, 130px);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 620px);
  display: flex; flex-direction: column; align-items: center;
  color: var(--wool);
  background: linear-gradient(180deg, #060920 0%, #0B1136 30%, #18206A 55%, #43318C 71%, #8E4476 83%, #E0764A 93%, #F8B24A 100%);
}
@media (max-width: 700px) {
  .hero { min-height: max(100svh, 730px); --sun-off: clamp(0px, (800px - 100svh) * .6, 80px); }
}
/* Pin the hero while the sun rises — only where the whole composition fits the screen */
@media (min-height: 620px) and (min-width: 701px), (min-height: 730px) {
  .js .hero-pin { height: 185svh; }
  .js .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
}

.hero__dawn {
  position: absolute; inset: 0; z-index: 0; opacity: var(--p);
  background: linear-gradient(180deg, #1A2B86 0%, #3D55C2 28%, #9A7FD0 52%, #F2A17B 71%, #FFC56B 87%, #FFE09A 100%);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: calc(1 - var(--p) * 1.3); }
.hero__glyphs { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(1 - var(--p) * 1.5); }
.hero__glyphs span {
  position: absolute; left: var(--x); top: var(--y);
  font-size: var(--s); color: var(--c); opacity: var(--o); line-height: 1;
  transform: translate(calc(var(--mx) * var(--dp) * 1px), calc(var(--my) * var(--dp) * 1px));
}
.hero__glyphs b { display: block; font-weight: 400; animation: floaty var(--t) ease-in-out var(--dl) infinite alternate; }
@keyframes floaty { from { transform: translateY(-10px) rotate(-7deg); } to { transform: translateY(12px) rotate(7deg); } }

/* Scene */
.hero__scene {
  position: absolute; inset-inline: 0; bottom: calc(var(--bar-h) - 34px); z-index: 2;
  height: clamp(min(300px, 38svh), 36.11vw, 48svh); pointer-events: none;
}
.scene { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; aspect-ratio: 1440 / 520; max-width: none; translate: -50% 0; overflow: visible; }
.scene__sunrise { animation: sunrise 2.8s var(--ease-out) .15s both; }
@keyframes sunrise { from { transform: translateY(170px); opacity: .4; } to { transform: none; opacity: 1; } }
.scene__sun { transform: translate(720px, calc(372px + var(--sun-off) - var(--p) * (var(--rise, 120px) + var(--sun-off)))) scale(calc(1 + var(--p) * .06)); }
.scene__rays { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene__far   { transform: translate(calc(var(--mx) * -5px),  calc(var(--p) * 12px)); }
.scene__mid   { transform: translate(calc(var(--mx) * -11px), calc(var(--p) * 24px)); }
.scene__near  { transform: translate(calc(var(--mx) * -19px), calc(var(--p) * 38px)); }
.scene__front { transform: translate(calc(var(--mx) * -28px), calc(var(--p) * 30px)); }
.scene__windows rect { animation: flicker 3.4s ease-in-out infinite alternate; }
.scene__windows rect:nth-child(2n) { animation-delay: -1.2s; animation-duration: 4.6s; }
.scene__windows rect:nth-child(3n) { animation-delay: -2.4s; animation-duration: 2.7s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 60% { opacity: .9; } 78% { opacity: .65; } }

/* Content */
.hero__content {
  position: relative; z-index: 3; text-align: center;
  width: min(100% - 2 * var(--gutter), 980px);
  padding-top: clamp(86px, 13svh, 150px);
  opacity: calc(1 - (var(--p) - .12) * 3.2);
  transform: translateY(calc(var(--p) * -70px));
}
.hero.is-dawn .hero__content { visibility: hidden; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .06);
  font-size: .82rem; font-weight: 500; letter-spacing: .08em;
  animation: rise .9s var(--ease-out) .1s both;
}
.hero__eyebrow .tfng { color: var(--saffron-300); font-size: 1rem; letter-spacing: .1em; }
.hero__eyebrow i { width: 6px; height: 6px; background: var(--saffron); rotate: 45deg; }
html[lang="ar"] .hero__eyebrow { letter-spacing: 0; font-size: .92rem; }

.hero__title { margin-top: clamp(10px, 2svh, 22px); }
.hero__tfng {
  display: flex; justify-content: center; direction: ltr;
  font-family: var(--font-tfng); font-weight: 400;
  font-size: clamp(4.2rem, min(24vw, 25svh), 12rem);
  line-height: 1.02; letter-spacing: .03em;
  color: #FFF6E0; -webkit-text-stroke: .03em #FFF6E0;
  text-shadow: 0 0 .45em rgba(245, 184, 46, .38);
}
.hero__tfng span {
  display: inline-block; cursor: default;
  animation: letter-in 1.15s var(--ease-out) both; animation-delay: calc(.3s + var(--i) * 95ms);
  transition: translate .35s var(--ease-spring), color .3s, -webkit-text-stroke-color .3s;
}
.hero__tfng span:hover { translate: 0 -.07em; color: var(--saffron); -webkit-text-stroke-color: var(--saffron); }
@keyframes letter-in { from { opacity: 0; transform: translateY(.45em) rotate(9deg) scale(.82); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.hero__latin {
  display: flex; align-items: center; justify-content: center; gap: 16px; direction: ltr;
  margin-top: clamp(6px, 1.4svh, 14px);
  font: 500 clamp(.92rem, 1.5vw, 1.2rem)/1 var(--font-body); letter-spacing: .52em; text-transform: uppercase; text-indent: .52em;
  animation: rise .9s var(--ease-out) .95s both;
}
.hero__latin::before, .hero__latin::after { content: ""; width: clamp(24px, 6vw, 72px); height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.hero__latin::after { transform: scaleX(-1); }
.hero__latin b { font-weight: 600; color: var(--saffron); }
.hero__lead {
  max-width: 35em; margin: clamp(14px, 2.6svh, 26px) auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: rgba(255, 246, 224, .92); text-wrap: balance;
  text-shadow: 0 1px 14px rgba(7, 10, 34, .85), 0 0 3px rgba(7, 10, 34, .6);
  animation: rise .9s var(--ease-out) 1.1s both;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(18px, 3.2svh, 32px); animation: rise .9s var(--ease-out) 1.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Dawn greeting (appears as the sun rises) */
.hero__greet {
  position: absolute; inset-inline: 0; top: clamp(84px, 11svh, 132px); z-index: 3; text-align: center; pointer-events: none;
  opacity: calc((var(--p) - .5) * 3.2);
  transform: translateY(calc((1 - var(--p)) * 70px));
  color: #FFF8E6;
}
.hero__greet-tfng { direction: ltr; font-size: clamp(2.3rem, min(8vw, 11svh), 6.6rem); line-height: 1.1; -webkit-text-stroke: .022em currentColor; text-shadow: 0 4px 30px rgba(20, 30, 110, .45); }
.hero__greet-lat { font: italic 500 clamp(1.5rem, min(3.6vw, 5svh), 3rem)/1.2 var(--font-latin-display); font-variation-settings: "SOFT" 100; margin-top: 8px; text-shadow: 0 2px 18px rgba(20, 30, 110, .5); }
.hero__greet-sub { margin-top: 12px; font-size: clamp(.9rem, 1.4vw, 1.1rem); letter-spacing: .3em; text-transform: uppercase; opacity: .92; }
html[lang="ar"] .hero__greet-sub { letter-spacing: 0; font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

/* Mascot in hero */
.hero__insi {
  position: absolute; z-index: 5; right: clamp(8px, 5vw, 90px); bottom: calc(var(--bar-h) - 12px);
  width: clamp(118px, 15vw, 214px);
  animation: pop-in 1s var(--ease-spring) 1.6s both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(60px) scale(.6); } to { opacity: 1; transform: none; } }

/* Countdown bar */
.cdbar {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(7, 10, 34, .78), rgba(7, 10, 34, .96));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cdbar::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 8px;
  background: conic-gradient(from 135deg at 50% 0, var(--saffron) 90deg, transparent 0) center / 16px 8px repeat-x;
  transform: scaleY(-1);
}
.cdbar__in { min-height: var(--bar-h); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3.2vw, 46px); }
.cdbar__cap, .cdbar__date { font-size: .84rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(248, 241, 226, .78); white-space: nowrap; }
.cdbar__date { display: inline-flex; align-items: center; gap: 10px; color: var(--saffron-300); }
html[lang="ar"] .cdbar__cap, html[lang="ar"] .cdbar__date { letter-spacing: 0; font-size: 1rem; }
.cdbar__today { font: italic 600 clamp(1.2rem, 2.6vw, 1.9rem)/1.2 var(--font-display); color: var(--saffron-300); text-align: center; }
.countdown { display: flex; align-items: stretch; gap: clamp(6px, 1vw, 12px); direction: ltr; }
.cd {
  min-width: clamp(64px, 7vw, 86px); padding: 8px 6px 9px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .055);
}
.cd__num {
  display: block; font: 600 clamp(1.7rem, 3vw, 2.35rem)/1 var(--font-latin-display);
  font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "SOFT" 100; color: #FFF6E0;
}
.cd__num.tick { animation: tick .45s var(--ease-out); }
@keyframes tick { from { transform: translateY(-.28em); opacity: .2; } to { transform: none; opacity: 1; } }
.cd__lab { display: block; margin-top: 5px; font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 241, 226, .62); }
html[lang="ar"] .cd__lab { letter-spacing: 0; font-size: .8rem; }

@media (max-width: 860px) {
  :root { --bar-h: 132px; }
  .cdbar__in { flex-wrap: wrap; gap: 8px 18px; padding-block: 12px; }
  .countdown { order: -1; flex-basis: 100%; justify-content: center; }
  .cdbar__cap, .cdbar__date { font-size: .72rem; letter-spacing: .1em; }
  .hero__insi { right: 6px; }
}
@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 100%; max-width: 320px; }
  .hero__lead { font-size: 1.02rem; }
  .hero__eyebrow { gap: 8px; padding: 6px 13px; font-size: .74rem; letter-spacing: .04em; white-space: nowrap; }
  .hero__eyebrow .tfng { font-size: .86rem; letter-spacing: .04em; }
  html[lang="ar"] .hero__eyebrow { font-size: .8rem; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--saffron); color: var(--ink);
  border-block: 3px solid var(--ink);
  padding-block: clamp(14px, 2vw, 22px);
}
.marquee__track { display: flex; width: max-content; }
.js .marquee__track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); padding-inline-end: clamp(22px, 3vw, 40px); flex: none; }
.marquee__group span { font: italic 600 clamp(1.4rem, 3vw, 2.4rem)/1.15 var(--font-latin-display); font-variation-settings: "SOFT" 100; white-space: nowrap; }
.marquee__group .tfng { font: 400 clamp(1.35rem, 2.8vw, 2.2rem)/1.15 var(--font-tfng); -webkit-text-stroke: .025em currentColor; }
.marquee__group .ar { font: 700 clamp(1.25rem, 2.6vw, 2.05rem)/1.4 "Alexandria", system-ui, sans-serif; }
.marquee__group .yz { width: clamp(20px, 2.2vw, 30px); height: clamp(20px, 2.2vw, 30px); color: var(--henna-700); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-pad); }
.section__head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__head .lead { max-width: 36em; margin-inline: auto; }

/* ---------- About ---------- */
.about { background: var(--wool) var(--lattice); color: var(--ink); --accent: var(--henna); --accent-sm: var(--henna-600); --focus: var(--henna); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__text p { color: var(--ink-soft); }
.about__text p + p { margin-top: 18px; }
.about__text strong { color: var(--henna-600); font-weight: 700; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); padding: 8px 10px 26px; }
.tile {
  position: relative; overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.2vw, 26px) clamp(30px, 3vw, 40px);
  border: 2px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink);
  min-height: clamp(170px, 19vw, 230px); display: flex; flex-direction: column; justify-content: flex-end;
}
.tile::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 12px; height: 8px; opacity: .4;
  background: conic-gradient(from 135deg at 50% 0, currentColor 90deg, transparent 0) 0 0 / 16px 8px repeat-x;
}
.tile:hover { translate: -3px -5px; box-shadow: 10px 12px 0 var(--ink); }
.tile:nth-child(1) { rotate: -2deg; }
.tile:nth-child(2) { rotate: 1.6deg; translate: 0 22px; }
.tile:nth-child(2):hover { translate: -3px 17px; }
.tile:nth-child(3) { rotate: 1.2deg; }
.tile:nth-child(4) { rotate: -1.6deg; translate: 0 22px; }
.tile:nth-child(4):hover { translate: -3px 17px; }
.tile--henna { background: var(--henna); color: #FFF4DE; }
.tile--night { background: var(--night-800); color: var(--saffron-300); }
.tile--saffron { background: var(--saffron); color: var(--ink); }
.tile--atlas { background: var(--atlas); color: #F4FBEF; }
.tile__tfng { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 1.05rem; opacity: .7; }
.tile__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: .04em .14em; font: 700 clamp(2.7rem, 6.2vw, 4.9rem)/.95 var(--font-latin-display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "SOFT" 100; }
.tile__num small { font: 600 .3em/1.1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .tile__num small { font-size: .36em; letter-spacing: 0; }
.tile__lab { margin-top: 10px; font-size: .95rem; line-height: 1.35; font-weight: 500; opacity: .92; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- Traditions ---------- */
.traditions { background: var(--night-900) var(--lattice-light); color: var(--wool); --accent: var(--saffron); }
.traditions .lead { color: rgba(248, 241, 226, .78); }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.tcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
}
.tcard:hover { translate: 0 -8px; border-color: color-mix(in srgb, var(--tone) 70%, white 10%); box-shadow: 0 26px 60px -30px var(--tone); }
.tcard__art {
  position: relative; display: grid; place-items: center; aspect-ratio: 200 / 124; padding: 14px 20px 0;
  background: radial-gradient(120% 95% at 50% 105%, color-mix(in srgb, var(--tone) 62%, transparent), transparent 72%);
}
.tcard__art svg { width: min(78%, 250px); overflow: visible; transition: transform .6s var(--ease-spring); }
.tcard:hover .tcard__art svg { transform: scale(1.07) rotate(-2deg); }
.tcard__body { padding: 20px 26px 28px; }
.tcard__tfng { color: var(--saffron-300); font-size: 1rem; letter-spacing: .12em; }
.tcard h3 { font: 600 1.5rem/1.15 var(--font-display); font-variation-settings: "SOFT" 100; margin-block: 6px 10px; }
html[lang="ar"] .tcard h3 { line-height: 1.5; font-size: 1.35rem; }
.tcard p { color: rgba(248, 241, 226, .76); font-size: 1rem; line-height: 1.6; }

/* Illustration micro-animations */
.a-steam path { opacity: .5; animation: steam 3.2s ease-in-out infinite; }
.a-steam path:nth-child(2) { animation-delay: -1.1s; }
.a-steam path:nth-child(3) { animation-delay: -2.1s; }
@keyframes steam { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: .6; } 100% { transform: translateY(-10px); opacity: 0; } }
.a-bubbles circle { animation: bubble 2.6s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.a-bubbles circle:nth-child(2) { animation-delay: -.9s; }
.a-bubbles circle:nth-child(3) { animation-delay: -1.7s; }
@keyframes bubble { 0% { transform: translateY(12px) scale(.4); opacity: 0; } 35% { opacity: .9; } 100% { transform: translateY(-16px) scale(1.1); opacity: 0; } }
.a-pulse circle { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.a-pulse circle:nth-child(2) { animation-delay: -1s; }
@keyframes pulse { from { transform: scale(.96); opacity: .9; } to { transform: scale(1.42); opacity: 0; } }
.a-notes path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite alternate; }
.a-notes path:nth-child(2) { animation-delay: -.5s; }
.a-notes path:nth-child(3) { animation-delay: -1s; }
.a-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.1s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1, .94) skewX(-2.5deg); } to { transform: scale(.97, 1.06) skewX(3deg); } }
.a-sparks text { animation: spark 3.4s ease-out infinite; }
.a-sparks text:nth-child(2) { animation-delay: -1.2s; }
.a-sparks text:nth-child(3) { animation-delay: -2.3s; }
@keyframes spark { 0% { transform: translateY(26px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.a-twinkle path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.9s ease-in-out infinite alternate; }
.a-twinkle path:nth-child(2) { animation-delay: -.7s; }
.a-twinkle path:nth-child(3) { animation-delay: -1.3s; }
@keyframes twinkle { from { transform: scale(.55) rotate(-12deg); opacity: .45; } to { transform: scale(1.1) rotate(10deg); opacity: 1; } }
.a-veg { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }

@media (max-width: 980px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tgrid { grid-template-columns: 1fr; } }

/* ---------- Mission ---------- */
.mission { background: var(--henna-600); color: #FFF4DE; --accent: #FFE08A; --accent-sm: #FFE9A8; --edge: var(--night-900); --focus: #FFF4DE; overflow: hidden; }
.mission__yaz { position: absolute; inset-inline-end: -7%; top: -4%; width: min(62vw, 640px); height: min(62vw, 640px); color: rgba(255, 255, 255, .075); animation: sway 14s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg) scale(1); } to { transform: rotate(5deg) scale(1.05); } }
.mission__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.mission .lead { color: rgba(255, 244, 222, .9); }
.mission .lead em { font-family: var(--font-display); color: #FFE08A; font-weight: 600; }
.pillars { display: grid; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding-block: 24px; border-top: 2px dashed rgba(255, 244, 222, .3); }
.pillar:last-child { border-bottom: 2px dashed rgba(255, 244, 222, .3); }
.pillar__n { font: italic 500 clamp(2.2rem, 4vw, 3.2rem)/.95 var(--font-latin-display); font-variation-settings: "SOFT" 100; color: #FFE08A; min-width: 1.6em; }
.pillar h3 { font: 600 1.42rem/1.2 var(--font-display); font-variation-settings: "SOFT" 100; margin-bottom: 6px; }
.pillar p { color: rgba(255, 244, 222, .93); }

.neutral {
  position: relative; margin-top: clamp(48px, 7vw, 86px);
  display: flex; align-items: center; gap: clamp(18px, 3.4vw, 46px);
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px);
  background: var(--wool); color: var(--ink); border: 2px solid var(--ink); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink); rotate: -.8deg; --focus: var(--henna);
}
.stamp { width: clamp(104px, 13vw, 164px); flex: none; overflow: visible; direction: ltr; }
.stamp__spin { transform-origin: 100px 100px; animation: spin 36s linear infinite; }
.stamp__txt { font: 700 14.5px var(--font-body); letter-spacing: 1.6px; fill: var(--ink); }
.stamp__txt .tfng { font-family: var(--font-tfng); font-weight: 400; font-size: 15.5px; letter-spacing: 1.6px; stroke: var(--ink); stroke-width: .5px; }
.neutral__title { font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1.15 var(--font-display); font-variation-settings: "SOFT" 100; margin-bottom: 16px; }
html[lang="ar"] .neutral__title { line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; padding-inline: 11px 15px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .95rem;
}
.chips .ic { color: var(--atlas); }
.chips li:last-child { background: var(--saffron); }
.chips li:last-child .ic { color: var(--ink); }

@media (max-width: 900px) { .mission__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .neutral { flex-direction: column; align-items: flex-start; rotate: 0deg; } }

/* ---------- Ideas ---------- */
.ideas { background: var(--wool) var(--lattice); color: var(--ink); --accent: var(--henna); --accent-sm: var(--henna-600); --edge: var(--henna-600); --focus: var(--henna); }
.ideas__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.ideas .lead { color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.filter {
  min-height: 44px; padding: 0 17px; border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .94rem; cursor: pointer; touch-action: manipulation;
  transition: var(--t-hover);
}
.filter:hover { background: rgba(26, 21, 48, .08); translate: 0 -2px; }
.filter.is-on { background: var(--ink); color: var(--wool); box-shadow: 3px 3px 0 var(--saffron); }

.deck { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
.deck__back { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 30px; transition: rotate .5s var(--ease-spring), translate .5s var(--ease-spring); }
.deck__back--1 { background: var(--saffron); rotate: -5deg; translate: -12px 10px; }
.deck__back--2 { background: var(--henna); rotate: 4deg; translate: 14px 8px; }
.deck.is-shuffling .deck__back--1 { rotate: -9deg; translate: -22px 4px; }
.deck.is-shuffling .deck__back--2 { rotate: 8deg; translate: 24px 2px; }
.idea {
  position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 360px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink);
  transition: transform .34s var(--ease-out), opacity .3s;
}
.idea.is-out { transform: translateX(46%) rotate(13deg); opacity: 0; }
[dir="rtl"] .idea.is-out { transform: translateX(-46%) rotate(-13deg); }
.idea.is-pre { transform: translateY(26px) scale(.93); opacity: 0; transition: none; }
.idea__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idea__cat { padding: 6px 14px; border-radius: 999px; background: var(--night-800); color: var(--wool); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .idea__cat { letter-spacing: 0; font-size: .9rem; }
.idea__n { font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); direction: ltr; }
.idea__text { flex: 1; font: 500 clamp(1.4rem, 2.5vw, 2rem)/1.28 var(--font-display); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] .idea__text { line-height: 1.7; letter-spacing: 0; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.idea__foot { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) { .ideas__grid { grid-template-columns: 1fr; } }

/* ---------- Tifinagh ---------- */
.tfn { background: var(--night-950) var(--lattice-light); color: var(--wool); --accent: var(--saffron); --edge: var(--wool); }
.tfn__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 84px); align-items: start; }
.tfn .lead { color: rgba(248, 241, 226, .78); }
.writer { margin-top: 34px; }
.writer__label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-300); }
html[lang="ar"] .writer__label { letter-spacing: 0; font-size: .95rem; }
.writer__input {
  width: 100%; min-height: 62px; padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, .26); border-radius: 18px; background: rgba(255, 255, 255, .06);
  color: var(--wool); font: 500 1.3rem/1.2 var(--font-body);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.writer__input::placeholder { color: rgba(248, 241, 226, .42); }
.writer__input:focus { outline: none; border-color: var(--saffron); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(245, 184, 46, .22); }
.writer__out {
  display: flex; flex-wrap: wrap; align-items: center; gap: .04em; min-height: 1.5em; margin-top: 20px;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.15; color: var(--saffron);
  -webkit-text-stroke: .02em currentColor; overflow-wrap: anywhere;
}
.writer__out.is-ghost { color: rgba(255, 255, 255, .16); }
[dir="rtl"] .writer__out { justify-content: flex-end; }
.writer__out span { display: inline-block; animation: glyph-pop .5s var(--ease-spring) both; }
@keyframes glyph-pop { from { opacity: 0; transform: translateY(.3em) scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
.writer__note { margin-top: 6px; font-size: .9rem; color: rgba(248, 241, 226, .55); }
.writer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tfn .btn--primary { --btn-shadow: var(--henna); border-color: var(--saffron); }

.alpha { padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; background: rgba(255, 255, 255, .035); }
.alpha__title { margin-bottom: 16px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(248, 241, 226, .7); }
html[lang="ar"] .alpha__title { letter-spacing: 0; font-size: .95rem; }
.alpha__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.alpha__grid button {
  display: grid; place-items: center; gap: 0; aspect-ratio: 1; padding: 4px;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .045);
  font-size: 1.6rem; line-height: 1; cursor: pointer; touch-action: manipulation;
  transition: var(--t-hover), transform .25s var(--ease-spring);
}
.alpha__grid button small { font: 500 .72rem/1 var(--font-body); letter-spacing: .02em; opacity: .62; }
.alpha__grid button:hover, .alpha__grid button:focus-visible { background: var(--saffron); border-color: var(--saffron); color: var(--ink); transform: translateY(-4px) rotate(-4deg); }
.alpha__grid button:active { transform: scale(.92); }

@media (max-width: 900px) { .tfn__grid { grid-template-columns: 1fr; } }

/* ---------- Mascot ---------- */
.mascot { background: var(--saffron); color: var(--ink); --accent: var(--henna-700); --accent-sm: #8A2614; --edge: var(--night-950); --focus: var(--ink); overflow: hidden; }
.mascot__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.mascot .lead { color: #3A2E12; }
.mascot__stage { position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.mascot__burst {
  position: absolute; inset: -4%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 190, .85) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 70%); mask: radial-gradient(circle, #000 34%, transparent 70%);
  animation: spin 70s linear infinite;
}
.mascot__hint { position: absolute; bottom: 2%; inset-inline: 0; text-align: center; font-size: .86rem; font-weight: 500; color: #5A430A; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.facts li { padding: 14px 18px 16px; background: var(--wool); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); font-size: .98rem; line-height: 1.4; }
.facts li:hover { translate: -2px -3px; box-shadow: 7px 8px 0 var(--ink); }
.facts strong { display: block; margin-bottom: 3px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--henna-700); }
html[lang="ar"] .facts strong { letter-spacing: 0; font-size: .88rem; }

/* Insi — shared mascot behaviour */
.insi-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.insi-btn--big { width: min(80%, 400px); }
.insi { width: 100%; height: auto; overflow: visible; }
.insi__body { animation: bob 3.2s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.insi__shadow { transform-box: fill-box; transform-origin: center; animation: shadow 3.2s ease-in-out infinite alternate; }
@keyframes shadow { from { transform: scaleX(1); } to { transform: scaleX(.9); } }
.insi__wave { transform-origin: 76px 206px; animation: wave 1.5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-9deg); } to { transform: rotate(16deg); } }
.insi__eye { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.insi__pupil { transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); transition: transform .12s linear; }
.insi__lantern { transform-origin: 215px 206px; animation: swing 2.4s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.insi__glow { transform-box: fill-box; transform-origin: center; animation: glow 1.8s ease-in-out infinite alternate; }
@keyframes glow { from { transform: scale(.86); opacity: .75; } to { transform: scale(1.12); opacity: 1; } }
.insi__flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame .7s ease-in-out infinite alternate; }
.insi-btn.is-hi .insi { animation: hop .7s var(--ease-out); }
@keyframes hop { 0% { transform: none; } 30% { transform: translateY(-9%) rotate(-5deg) scale(1.03, .98); } 60% { transform: translateY(0) scale(.98, 1.02); } 100% { transform: none; } }
.insi-btn.is-hi .insi__wave { animation-duration: .22s; }
.bubble {
  position: absolute; z-index: 2; top: -4%; inset-inline-start: -10%;
  padding: 5px 14px 6px; background: var(--wool); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px;
  font-size: clamp(.95rem, 1.6vw, 1.3rem); white-space: nowrap; direction: ltr;
  opacity: 0; scale: .5; transform-origin: 100% 100%; transition: opacity .25s, scale .4s var(--ease-spring);
  pointer-events: none;
}
.insi-btn.is-hi .bubble { opacity: 1; scale: 1; }
.insi-btn--big .bubble { top: 2%; inset-inline-start: -6%; font-size: clamp(1.2rem, 2.4vw, 1.8rem); padding: 8px 20px 10px; box-shadow: 4px 4px 0 var(--ink); }

@media (max-width: 900px) {
  .mascot__grid { grid-template-columns: 1fr; }
  .mascot__stage { max-width: 380px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Join ---------- */
.join { background: radial-gradient(90% 70% at 50% 0%, #1B2470 0%, var(--night-900) 62%); color: var(--wool); --accent: var(--saffron); text-align: center; overflow: hidden; }
.join__in { display: flex; flex-direction: column; align-items: center; }
.join__sun { width: clamp(100px, 12vw, 152px); margin-bottom: 26px; overflow: visible; filter: drop-shadow(0 0 40px rgba(245, 184, 46, .45)); }
.join__rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
.join .lead { max-width: 38em; color: rgba(248, 241, 226, .8); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.tag {
  min-height: 48px; padding: .4em 1.05em; border: 1.5px solid rgba(245, 184, 46, .55); border-radius: 999px; background: transparent;
  color: var(--saffron-300); font: italic 500 clamp(1.1rem, 2.2vw, 1.6rem)/1.2 var(--font-latin-display); font-variation-settings: "SOFT" 100;
  cursor: pointer; touch-action: manipulation; direction: ltr; transition: var(--t-hover);
}
.tag.tfng { font: 400 clamp(1.05rem, 2vw, 1.5rem)/1.2 var(--font-tfng); }
.tag:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); rotate: -2deg; translate: 0 -3px; }
.tag:nth-child(even):hover { rotate: 2deg; }
.tags__hint { margin-top: 14px; font-size: .86rem; color: rgba(248, 241, 226, .5); }
.join__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.join .btn--primary { --btn-shadow: var(--henna); border-color: var(--saffron); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--night-950); color: rgba(248, 241, 226, .78); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); padding-block: clamp(46px, 6vw, 76px) 34px; align-items: start; }
.footer .brand { color: var(--wool); }
.footer__statement { margin-top: 18px; max-width: 34em; font-size: .96rem; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.footer__nav a { padding: 7px 0; text-decoration: none; font-weight: 500; transition: color .2s; }
.footer__nav a:hover { color: var(--saffron); }
.footer__thanks { text-align: end; }
.footer__tfng { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; color: var(--saffron); -webkit-text-stroke: .02em currentColor; direction: ltr; }
.footer__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 20px 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: rgba(248, 241, 226, .58); }
.footer__giant {
  margin: 0 0 -.2em; text-align: center; direction: ltr; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(5rem, 23vw, 22rem); line-height: .9; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .15);
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__thanks { text-align: start; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200; max-width: calc(100% - 32px);
  padding: 12px 22px; border: 2px solid var(--saffron); border-radius: 999px; background: var(--ink); color: var(--wool);
  font-weight: 600; font-size: .95rem; text-align: center;
  opacity: 0; transform: translate(-50%, 24px); pointer-events: none;
  transition: opacity .25s, transform .4s var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Without JavaScript: hide the parts that need it ---------- */
html:not(.js) .countdown, html:not(.js) .cdbar__cap, html:not(.js) .alpha, html:not(.js) .writer, html:not(.js) .filters, html:not(.js) .idea__foot, html:not(.js) .lang, html:not(.js) .nav__burger { display: none; }

/* ---------- Reduced motion ---------- */
/* Add ?motion=on to the URL to preview the full experience on a device that asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html:not(.motion-on).js .hero-pin { height: auto; }
  html:not(.motion-on).js .hero { position: relative; height: auto; min-height: max(100svh, 730px); }
  html:not(.motion-on).js .marquee__track, html:not(.motion-on) .band::before { animation: none; }
}
