/* Yalla iGV Morocco — modern pass (2026-10-13, after Ali's review: "looks like old HTML / slop").
   Identity = the banner, the 9 illustrations and the cut-out characters. The UI around them stays quiet:
   soft cards, no outlines, no zellige frames, one warm serif for headlines, one clean sans for everything else.
   Palette from the banner: Moroccan red, flag green, sand, warm off-white, night charcoal, a touch of gold. */
[hidden] { display: none !important; } /* card/grid display rules must not beat the filters' hidden flag */
:root {
  --terra: #C1121F; --terra-d: #9A0E18; --terra-l: #FDECEA;
  --cream: #FBF8F3; --paper: #F5EEE4; --sand: #E9D6BD; --sand-l: #F3EADF; --white: #FFFFFF;
  --ink: #1C1714; --ink-2: #2A221D; --muted: #6B625A; --line: #ECE3D8;
  --green: #006233; --green-d: #004D28; --green-l: #E3F2E9; --gold: #E3B23C; --gold-l: #FBF1D9;
  --warn: #8A4B00; --warn-l: #FBEACB;
  --radius: 20px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(28,23,20,.05), 0 8px 24px -8px rgba(28,23,20,.14);
  --shadow-lg: 0 2px 6px rgba(28,23,20,.06), 0 24px 48px -16px rgba(28,23,20,.24);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: var(--sans); --serif: var(--display);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 50, "opsz" 96; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { background: var(--sand-l); padding: 0 .3em; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.small { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }
.kicker, .eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.kicker { color: var(--green); margin-bottom: .9em; display: inline-flex; align-items: center; gap: .55em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 12px 0 0 var(--green); margin-right: 12px; }
.lead { font-size: 1.15rem; max-width: 60ch; color: #4A413A; }

/* reveal on scroll (app.js adds .rv/.in) — slow and calm */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* header: dark glass bar, logo, quiet nav */
.site-head { background: rgba(28,23,20,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.06); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 50px; width: auto; display: block; margin: 6px 0; }
@media (max-width: 520px) { .brand-logo { height: 44px; } }
.menu-btn { display: none; font: 600 .95rem var(--sans); background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: .55em 1.1em; color: #fff; cursor: pointer; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.78); padding: .5em .85em; border-radius: 999px; font: 500 .95rem var(--sans); transition: color .2s, background .2s; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.12); }
.site-nav a.nav-cta { background: var(--terra); color: #fff; margin-left: 8px; font-weight: 600; }
.site-nav a.nav-cta:hover { background: #D81A28; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8em .9em; font-size: 1.05rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* buttons: flat, rounded, gentle lift */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 .97rem/1.2 var(--sans); padding: .85em 1.4em; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; text-align: center; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 16px -6px rgba(193,18,31,.55); }
.btn-primary:hover { background: #D81A28; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ECC055; color: var(--ink); }
.btn-ghost { background: rgba(28,23,20,.06); color: var(--ink); }
.btn-ghost:hover { background: rgba(28,23,20,.1); color: var(--ink); }
.sec.red .btn-ghost, .sec.green .btn-ghost, .sec.night .btn-ghost, .hero .btn-ghost { background: rgba(255,255,255,.14); color: #fff; }
.sec.red .btn-ghost:hover, .sec.green .btn-ghost:hover, .sec.night .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { font-size: 1.02rem; padding: 1em 1.7em; }
.btn-small { font-size: .85rem; padding: .55em 1em; background: rgba(28,23,20,.06); color: var(--ink); margin: .4em 0 1em; box-shadow: none; }
.btn[disabled], .btn:disabled { background: #E6E0D9; color: #8A817A; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.done { background: var(--green); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }

/* page heroes: soft colour field, big type, a character on the right */
.hero { position: relative; padding: 72px 0 64px; background: linear-gradient(135deg, var(--terra) 0%, #A80F1B 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(227,178,60,.35), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.86); }
.hero .kicker { color: var(--gold-l); } .hero .kicker::before { background: var(--gold); box-shadow: 12px 0 0 #fff; }
.hero a:not(.btn) { color: #fff; }
.hero .small { color: rgba(255,255,255,.75); }
.hero-sm { padding: 64px 0 56px; }
.hero-green { background: linear-gradient(135deg, var(--green) 0%, #00482A 100%); }
.hero-night { background: linear-gradient(135deg, #2A211C 0%, var(--ink) 100%); }
.hero-partner { background: linear-gradient(135deg, var(--green) 0%, #00482A 100%); }
.hero-overlap { padding-bottom: 120px; }
.notice { background: rgba(255,255,255,.12); color: inherit; padding: 12px 16px; border-radius: var(--r-sm); max-width: 70ch; font-size: .94rem; backdrop-filter: blur(6px); }
.sec .notice, .plan .notice { background: var(--gold-l); color: var(--ink); }
.draft-tag { display: inline-block; background: var(--gold-l); color: #6B4E00; font: 600 .78rem var(--sans); padding: .3em .75em; border-radius: 999px; }
.hero .draft-tag { background: rgba(255,255,255,.16); color: #fff; }

/* home: banner + search card */
.hero-banner { position: relative; background: var(--ink); line-height: 0; overflow: hidden; }
.hero-banner img { width: 100%; height: min(78vh, 50vw); min-height: 280px; object-fit: cover; object-position: 50% 42%; animation: kb 40s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero-banner img { animation: none; } }
.hero-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, rgba(251,248,243,1)); pointer-events: none; }
.riad { position: relative; z-index: 2; margin: -120px auto 0; max-width: 980px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-radius: 32px; padding: 40px 32px 28px; box-shadow: var(--shadow-lg); text-align: center; }
.riad .kicker { justify-content: center; }
.riad h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 20ch; margin: 0 auto .3em; }
.riad .lead { margin: 0 auto 1.2em; font-size: 1.06rem; }
.big-search { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 1fr; text-align: left; background: var(--cream); border-radius: 22px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.big-search > div:first-child { grid-column: 1 / -1; }
.big-search .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .big-search { grid-template-columns: 2.2fr 1fr 1fr 1fr auto; border-radius: 999px; padding: 8px 8px 8px 14px; } .big-search > div:first-child, .big-search .btn { grid-column: auto; } }
.big-search label { font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px 12px; }
.big-search input, .big-search select { min-height: 44px; border: 0; background: transparent; font-size: 1rem; padding: .3em .75em; box-shadow: none; }
.big-search select { background: var(--white); border-radius: 14px; }
@media (min-width: 900px) { .big-search select { background: transparent; border-left: 1px solid var(--line); border-radius: 0; } }
.big-search input:focus, .big-search select:focus { box-shadow: none; outline: none; }
.big-search:focus-within { box-shadow: inset 0 0 0 2px var(--terra), 0 0 0 4px rgba(193,18,31,.10); }
.big-search .btn { min-height: 54px; align-self: stretch; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.quick a { text-decoration: none; font: 500 .9rem var(--sans); color: var(--ink); background: var(--sand-l); padding: .45em .95em; border-radius: 999px; transition: background .2s, color .2s; }
.quick a:hover { background: var(--terra-l); color: var(--terra-d); }
.stamps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; }
@media (min-width: 760px) { .stamps { grid-template-columns: repeat(4, 1fr); } }
.stamp { --c: var(--terra); padding: 14px 10px; text-align: center; background: var(--cream); border-radius: 18px; }
.stamp:nth-child(2n) { --c: var(--green); }
.stamp dd, .stamp b { display: block; margin: 0; font: 600 2.3rem/1 var(--display); color: var(--c); letter-spacing: -.02em; }
.stamp dt, .stamp span { font: 500 .85rem/1.2 var(--sans); color: var(--muted); display: block; margin-top: 6px; }
.stats-note { grid-column: 1 / -1; text-align: center; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.stats { margin: 0; }

/* sections */
.sec { padding: 88px 0; position: relative; }
.sec.alt { background: var(--paper); }
.sec.red { background: linear-gradient(135deg, var(--terra), #A80F1B); color: #fff; } .sec.red h2, .sec.red h3 { color: #fff; } .sec.red a:not(.btn) { color: #fff; } .sec.red .small, .sec.red .muted { color: rgba(255,255,255,.78); }
.sec.green { background: linear-gradient(135deg, var(--green), #00482A); color: #fff; } .sec.green h2, .sec.green h3 { color: #fff; } .sec.green a:not(.btn) { color: #fff; } .sec.green .small { color: rgba(255,255,255,.78); }
.sec.night { background: var(--ink); color: rgba(255,255,255,.82); } .sec.night h2, .sec.night h3 { color: #fff; } .sec.night a:not(.btn) { color: var(--gold); } .sec.night .small, .sec.night .muted { color: rgba(255,255,255,.6); }
.sec.red .kicker, .sec.green .kicker, .sec.night .kicker { color: var(--gold-l); }
.sec.red .kicker::before, .sec.green .kicker::before, .sec.night .kicker::before { background: var(--gold); box-shadow: 12px 0 0 #fff; }
.band { background: var(--ink); color: #fff; padding: 28px 0; }
.band h2 { color: #fff; font-size: 1.6rem; }
.home-search { display: flex; gap: 8px; flex-wrap: wrap; }
.home-search input { flex: 1 1 240px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { margin: 0; }
.sec-head > a { font: 600 .95rem var(--sans); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sec-head > a::after { content: "→"; transition: transform .2s; }
.sec-head > a:hover::after { transform: translateX(3px); }
.two { display: grid; gap: 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.toolkit, .contacts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* project posters (home) */
.posters { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1000px) { .posters { grid-template-columns: repeat(6, 1fr); } .posters .poster { grid-column: span 2; } .posters .poster:nth-child(1), .posters .poster:nth-child(2) { grid-column: span 3; } }
.poster { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.poster:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.poster figure { margin: 0; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--sand); position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.poster:hover img { transform: scale(1.04); }
.poster .p-body { padding: 16px 20px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.poster h3 { margin: 0 0 2px; font-size: 1.35rem; }
.poster .p-meta { font: 500 .85rem var(--sans); color: var(--muted); }
.poster .p-n { flex: none; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: var(--terra-l); color: var(--terra-d); font: 600 1.1rem var(--sans); }
.poster:nth-child(2n) .p-n { background: var(--green-l); color: var(--green-d); }
.poster .p-sdg { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(28,23,20,.72); backdrop-filter: blur(6px); color: #fff; font: 600 .75rem var(--sans); letter-spacing: .06em; padding: .35em .7em; border-radius: 999px; }
.p-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.p-anim.on { opacity: 1; }
.poster:has(.p-anim) figure::after { content: "● Live"; position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.9); color: var(--terra); font: 600 .72rem var(--sans); letter-spacing: .06em; padding: .35em .7em; border-radius: 999px; }

/* arches (cities): arch is a shape, not a frame */
.arches { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.arch { text-decoration: none; color: inherit; text-align: center; }
.arch-win { aspect-ratio: 3 / 4; border-radius: 999px 999px 20px 20px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow); transition: transform .4s; }
.arch-win img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.arch:hover .arch-win { transform: translateY(-4px); } .arch:hover .arch-win img { transform: scale(1.05); }
.arch b { display: block; font: 600 1.35rem/1.1 var(--display); margin-top: 14px; }
.arch span { font: 500 .85rem var(--sans); color: var(--terra-d); }
.sec.night .arch b { color: #fff; } .sec.night .arch span { color: var(--gold); }

/* journey */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: j; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.journey li { counter-increment: j; position: relative; background: rgba(255,255,255,.1); border-radius: 18px; padding: 60px 18px 20px; backdrop-filter: blur(4px); }
.journey li::before { content: counter(j); position: absolute; top: 16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--terra); display: grid; place-items: center; font: 700 1rem var(--sans); }
.journey b { display: block; font: 600 1.2rem var(--display); color: #fff; margin-bottom: 4px; }

/* EP photo strip */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: mq 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.marquee a { flex: none; width: 200px; height: 250px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.marquee a:nth-child(3n+1) { border-radius: 999px 999px 22px 22px; }
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.marquee a:hover img { transform: scale(1.05); }

/* Morocco tiles */
.mtiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mtile { display: block; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.mtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.mtile b { display: block; font: 600 1.25rem/1.2 var(--display); margin-bottom: 4px; }
.mtile span { color: var(--muted); font-size: .94rem; }
.mtile i { font-style: normal; font-size: 1.5rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand-l); margin-bottom: 14px; }

/* opportunity cards */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card.opp:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: .2em 0 .15em; font-size: 1.3rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--terra-d); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.card.opp:hover .card-img img { transform: scale(1.04); }
.img-none { width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand-l), var(--sand)); }
.eyebrow { color: var(--green); margin: 0; font-size: .72rem; }
.org { color: var(--muted); margin: 0 0 .6em; font-size: .93rem; }
.facts { list-style: none; padding: 0; margin: .4em 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.facts li { padding: 8px 10px; display: flex; flex-direction: column; background: var(--cream); border-radius: 12px; }
.facts span { font: 500 .72rem var(--sans); color: var(--muted); }
.facts b { font-size: .93rem; font-weight: 600; }
.when { font-size: .9rem; margin: .5em 0; color: #4A413A; }
.sdg-name { font-size: .85rem; color: var(--green); margin: 0 0 .3em; font-weight: 500; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-actions .btn { flex: 1 1 auto; font-size: .9rem; padding: .7em 1em; }
.chip { position: absolute; left: 12px; top: 12px; background: rgba(28,23,20,.72); backdrop-filter: blur(6px); color: #fff; font: 600 .72rem var(--sans); letter-spacing: .06em; padding: .35em .7em; border-radius: 999px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: .2em 0 .4em; }
.badge { font-size: .74rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--green-l); color: var(--green-d); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.feat { background: var(--terra-l); color: var(--terra-d); }
.verified { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--green); font-weight: 500; margin: .3em 0; }
.verified.tiny { font-size: .76rem; }
.verified .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px var(--green-l); }
.pick { display: flex; align-items: center; gap: 8px; background: var(--green-l); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--terra); min-height: 0; }
.opp.is-picked { box-shadow: 0 0 0 3px var(--terra), var(--shadow-lg); }

/* tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.tile b { font: 600 1.15rem var(--display); }
.tile span { font-size: .9rem; color: var(--muted); }
.tile .n { color: var(--terra-d); font-weight: 600; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.steps { padding-left: 1.2em; } .steps li { margin-bottom: .4em; }
.lc-list { padding-left: 1.2em; }
details { background: var(--white); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--muted); transition: transform .25s; }
details[open] > summary::after { transform: rotate(45deg); }
details p { margin: .7em 0 .2em; }

/* filters */
.filters { background: var(--white); border-radius: 28px; padding: 18px; margin: -72px 0 28px; box-shadow: var(--shadow-lg); position: relative; z-index: 3; }
label, .lab { display: block; font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
input, select, textarea { width: 100%; font: 1rem var(--sans); padding: .65em .85em; border: 0; border-radius: 14px; background: var(--cream); color: var(--ink); min-height: 48px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--terra), 0 0 0 4px rgba(193,18,31,.10); }
textarea { min-height: 0; resize: vertical; }
.f-search { margin-bottom: 12px; }
.f-search input { min-height: 58px; font-size: 1.08rem; padding-left: 48px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B625A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") 16px 50% no-repeat; }
.f-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.f-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 2px; scrollbar-width: none; }
.f-quick::-webkit-scrollbar { display: none; }
.f-quick button { flex: none; font: 500 .9rem var(--sans); color: var(--ink); background: var(--sand-l); border: 0; padding: .55em 1em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.f-quick button:hover { background: var(--terra-l); }
.f-quick button[aria-pressed="true"] { background: var(--ink); color: #fff; } .f-quick button[aria-pressed="true"] .muted { color: rgba(255,255,255,.65); }
.f-more { border: 0; padding: 0; margin: 2px 0 0; background: none; box-shadow: none; }
.f-more > summary { display: inline-flex; gap: 8px; font: 600 .9rem var(--sans); padding: .55em 1em; border-radius: 999px; background: rgba(28,23,20,.06); }
.f-more > summary::after { content: "▾"; font-size: .9rem; }
.f-more[open] > summary::after { transform: rotate(180deg); }
.f-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 14px; }
.f-grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 12px; }
.fee-pair { display: flex; gap: 6px; }
.f-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.count { margin: 0; font-size: 1rem; color: var(--muted); }
.count b { font: 600 1.5rem var(--display); color: var(--ink); }
.empty { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.empty-line { color: var(--muted); font-style: italic; }
.err { color: #A3261B; font-weight: 600; margin: .3em 0; }

/* partner builder */
.builder { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; position: sticky; top: 84px; z-index: 10; box-shadow: var(--shadow-lg); }
.builder input { max-width: 420px; }
.builder-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.builder-bar p { margin: 0 8px 0 0; }
.builder-bar .btn-small { margin: 0; }
@media (max-width: 700px) { .builder { position: static; } }
.inquiry textarea { margin-bottom: 10px; }

/* detail page: colour field + floating title card */
.project-art { position: relative; background: var(--ink); line-height: 0; }
.project-art img { width: 100%; height: min(68vh, 54vw); min-height: 260px; object-fit: cover; display: block; }
.art-note { position: absolute; right: 14px; top: 14px; line-height: 1; font: 600 .72rem var(--sans); letter-spacing: .06em; color: #fff; background: rgba(28,23,20,.6); padding: .45em .75em; border-radius: 999px; }
.detail-head { padding: 40px 0 44px; background: var(--cream); position: relative; overflow: hidden; }
.detail-head::before { content: ""; position: absolute; inset: 0 0 42% 0; background: linear-gradient(135deg, var(--terra), #A80F1B); }
.detail-head .wrap { position: relative; z-index: 2; }
.plate { position: relative; background: var(--white); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-lg); }
.plate h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.detail-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.2fr 1fr; } }
.detail-photo { margin: 0; }
.detail-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.detail-img { border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.org-lg { font-size: 1.15rem; color: var(--muted); }
.url-line { word-break: break-all; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 0 0 16px; }
.keyfacts div { background: var(--white); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.keyfacts dt { font: 500 .8rem var(--sans); color: var(--muted); }
.keyfacts dd { margin: 4px 0 0; font: 600 1.2rem/1.25 var(--display); }
.keyfacts div:first-child dd { color: var(--terra); }
.logi { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.logi li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.logi div { display: flex; flex-direction: column; }
.logi small { color: var(--muted); }
.lg-ic { width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 2px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .78rem; }
.lg-yes .lg-ic { background: var(--green); } .lg-yes .lg-ic::after { content: "\2713"; }
.lg-no .lg-ic { background: #9A918A; } .lg-no .lg-ic::after { content: "\2715"; }
.lg-unknown .lg-ic { background: var(--warn); } .lg-unknown .lg-ic::after { content: "?"; }
.lg-unknown { background: var(--warn-l) !important; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); margin-bottom: 12px; }
.narrow-t { max-width: 420px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--paper); color: var(--muted); font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
tbody th { font-weight: 600; }
tr.is-closed td { color: var(--muted); }
tr.is-open td:last-child { color: var(--green); font-weight: 600; }
.weeks { padding-left: 0; list-style: none; }
.weeks > li { margin-bottom: 12px; }
.weeks ul { margin: 4px 0 0; padding-left: 1.2em; }
.share h2 { margin-bottom: .7em; }
.share-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .share-grid { grid-template-columns: 1fr 220px; } }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qr-fig { margin: 0; text-align: center; background: var(--white); border-radius: 18px; padding: 16px; align-self: start; box-shadow: var(--shadow); }
.qr { display: flex; justify-content: center; min-height: 160px; }
.qr img, .qr canvas { width: 160px; height: 160px; }
.qr-fig figcaption { font-size: .85rem; margin-top: 8px; }
.gen { margin-top: 1.2em; }
.apply-bar { display: none; }
@media (max-width: 760px) {
  .apply-bar { display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 25; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px -12px rgba(28,23,20,.3); }
  .apply-bar .btn { flex: 1; }
}

/* discover */
.city-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.city-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.city-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sand); }
.city-card div { padding: 18px 20px 20px; }
.city-card h3 { font-size: 1.5rem; }
.city-card .n { color: var(--terra-d); font: 600 .9rem var(--sans); }
.points li { margin-bottom: .4em; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* plan, stories, morocco */
.plan-nav { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 76px; z-index: 5; padding: 8px 0; background: linear-gradient(var(--cream) 70%, transparent); }
.plan-nav::-webkit-scrollbar { display: none; }
.plan-nav a { flex: none; background: var(--white); padding: .55em 1.1em; border-radius: 999px; text-decoration: none; color: var(--ink); font: 500 .92rem var(--sans); box-shadow: var(--shadow); transition: background .2s, color .2s; }
.plan-nav a:hover { background: var(--ink); color: #fff; }
.plan article { background: var(--white); border-radius: 24px; padding: 30px 30px 18px; margin-bottom: 20px; scroll-margin-top: 140px; box-shadow: var(--shadow); position: relative; }
.plan article h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.check { padding-left: 0; list-style: none; margin: 0 0 1em; }
.check li { margin-bottom: .85em; padding-left: 34px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23006233' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.5l2.6 2.6L10 3.5'/%3E%3C/svg%3E") 50% 50% no-repeat; }
.sec.red .check li::before, .sec.green .check li::before { background-color: rgba(255,255,255,.9); }
.vcat { margin: 28px 0; scroll-margin-top: 96px; }
.video { margin: 0 0 18px; background: var(--white); border-radius: var(--radius); overflow: hidden; max-width: 720px; box-shadow: var(--shadow); }
.vframe { aspect-ratio: 16 / 9; } .vframe iframe { width: 100%; height: 100%; border: 0; }
.video figcaption { padding: 12px 14px; }
.templates { background: var(--paper); border-radius: var(--radius); padding: 22px; margin-top: 32px; }
.res-list li { margin-bottom: .4em; }
.facts-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; }
.facts-strip div { background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.facts-strip dt { font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts-strip dd { margin: 4px 0 0; font-weight: 500; font-size: .95rem; }
.m-sec { display: grid; gap: 24px 48px; align-items: start; scroll-margin-top: 140px; }
@media (min-width: 900px) { .m-sec { grid-template-columns: 1fr 1.7fr; } .m-sec h2 { position: sticky; top: 140px; } }
.tipbox { background: var(--gold-l); border-radius: 18px; padding: 18px 20px; margin: 4px 0 12px; }
.tipbox ul { margin: 0; padding-left: 1.1em; }
.phrases { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: 4px 0 12px; }
.phrases li { background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); color: var(--muted); font-size: .92rem; }
.phrases b { display: block; font: 600 1.2rem var(--display); color: var(--terra); }
.sources { font-size: .78rem; color: var(--muted); word-break: break-word; }
.sources a { color: var(--muted); }

/* costs */
.costs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.cost { background: var(--white); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.cost b { display: block; font: 600 1.8rem/1.1 var(--display); color: var(--terra); margin: 6px 0 4px; letter-spacing: -.01em; }
.cost .rng { font-size: .85rem; color: var(--muted); }
.cost .what { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* collection */
.coll-head { padding: 44px 0 30px; background: var(--paper); }
.coll-opp { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; display: grid; gap: 18px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .coll-opp { grid-template-columns: 1fr 200px; } }
.coll-opp img.cover { border-radius: 14px; aspect-ratio: 21 / 9; object-fit: cover; width: 100%; margin-bottom: 12px; }
.coll-opp .facts { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.coll-opp textarea { font-size: .9rem; }

/* footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 44px; position: relative; overflow: hidden; }
.site-foot a { color: rgba(255,255,255,.9); display: block; margin-bottom: 8px; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .small { color: rgba(255,255,255,.55); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand-foot { font: 600 1.6rem/1.2 var(--display); color: #fff; margin-bottom: .4em; }
.foot-logo { height: 76px; width: auto; margin-bottom: 14px; }
.foot-h { color: var(--gold); font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

/* EP photos & videos */
.ep-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ep-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.mosaic-all { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 18px; }
.mosaic a { display: block; border-radius: 16px; overflow: hidden; background: var(--sand-l); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img, .mosaic a:focus-visible img { transform: scale(1.05); }
.clip { margin: 0; }
.clip video { width: 100%; height: auto; border-radius: 18px; background: #000; display: block; }
.clip.tall video { max-height: 560px; object-fit: contain; }
.clip figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.clips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-items: start; }
.clips .clip.wide { grid-column: span 2; }
@media (max-width: 520px) { .clips .clip.wide { grid-column: auto; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(20,16,12,.9); backdrop-filter: blur(4px); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 14px; display: block; }
dialog.lightbox .lb-bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
dialog.lightbox .btn-ghost { background: rgba(255,255,255,.14); color: #fff; }

/* Getting to Morocco */
.arrive { background: var(--white); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg); margin-top: -80px; position: relative; z-index: 3; }
.arrive h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.arrive label { margin: 10px 0 6px; }
.arrive select { max-width: 460px; min-height: 56px; font-size: 1.05rem; }
.arrive-out { display: grid; gap: 14px; margin: 20px 0 8px; }
@media (min-width: 860px) { .arrive-out { grid-template-columns: 1fr 1fr; } }
.arrive-card { background: var(--paper); border-radius: 20px; padding: 20px 22px; }
.arrive-card h3 { font-size: 1.35rem; }
.arrive-out[data-status="free"] .arrive-card:first-child { background: var(--green-l); }
.arrive-out[data-status="consulate"] .arrive-card:first-child { background: var(--terra-l); }
.arrive-out[data-status="evisa"] .arrive-card:first-child, .arrive-out[data-status="eta"] .arrive-card:first-child { background: var(--gold-l); }
.vlists { margin-top: 22px; }
.vlist { font-size: .9rem; line-height: 1.75; color: var(--muted); }

/* stories feed (Stories page) */
.feed { max-width: 560px; margin: 0 auto; display: grid; gap: 28px; }
.post { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.post-ava { width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--terra), #E3672B, var(--green), var(--terra)); flex: none; }
.post-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: var(--ink); border: 2px solid #fff; }
.post-who { line-height: 1.25; } .post-who b { display: block; font-size: .95rem; } .post-who span { font-size: .8rem; color: var(--muted); }
.post-media { background: #000; line-height: 0; position: relative; }
.post-media img, .post-media video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #111; }
.post-media .mute { position: absolute; right: 12px; bottom: 12px; line-height: 1; background: rgba(28,23,20,.7); color: #fff; border: 0; border-radius: 999px; padding: .5em .8em; font: 600 .8rem var(--sans); cursor: pointer; }
.post-bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px; }
.post-bar button { background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; line-height: 0; color: var(--ink); transition: transform .15s, background .2s; }
.post-bar button:hover { background: rgba(28,23,20,.06); }
.post-bar button svg { width: 26px; height: 26px; }
.post-bar .like[aria-pressed="true"] { color: var(--terra); } .post-bar .like[aria-pressed="true"] svg { fill: var(--terra); }
.post-bar .like.pop { transform: scale(1.25); }
.post-tag { padding: 0 18px 16px; font-size: .92rem; } .post-tag a { color: var(--green); text-decoration: none; font-weight: 600; }
.feed-end { text-align: center; color: var(--muted); padding: 10px 0 0; }

/* print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .no-print, .site-head, .site-foot, .share-btns, .btn, .cta-row, .builder, .filters, .crumbs, .plan-nav, .apply-bar, .project-art, .char { display: none !important; }
  .hero::before, .detail-head::before { display: none; }
  .hero, .detail-head, .coll-head, .sec.alt { background: #fff !important; color: #000; padding: 8px 0; }
  .hero h1, .hero .lead { color: #000; }
  .plate { box-shadow: none; padding: 0; }
  .sec { padding: 10px 0; }
  .card, .coll-opp, .keyfacts div, .logi li, .qr-fig, .table-wrap { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
  textarea { border: 1px solid #ccc; height: auto; overflow: visible; }
  a { color: #000; }
  .detail-img { max-height: 60mm; }
  .rv { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* home hero (v3): split layout — text + search left, banner card right, guide pointing at the search */
.home-hero { position: relative; padding: 56px 0 40px; overflow: hidden; background:
  radial-gradient(600px 400px at 92% 8%, rgba(193,18,31,.10), transparent 70%),
  radial-gradient(520px 380px at 8% 92%, rgba(0,98,51,.09), transparent 70%),
  radial-gradient(420px 300px at 55% 0%, rgba(227,178,60,.14), transparent 70%), var(--cream); }
.hh-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hh-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; } }
.hh-text h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; margin-bottom: .35em; }
.hh-text h1 em { font-style: italic; color: var(--terra); font-variation-settings: "SOFT" 100, "opsz" 144; }
.hh-text .lead { margin-bottom: 1.4em; }
.hh-search { background: var(--white); box-shadow: var(--shadow-lg); border-radius: 24px; padding: 10px; grid-template-columns: 1fr 1fr 1fr !important; }
.hh-search .hh-q, .hh-search .btn { grid-column: 1 / -1 !important; }
.hh-search .hh-q input { font-size: 1.05rem; min-height: 50px; padding-left: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B625A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") 14px 50% no-repeat; }
.hh-search select { background: var(--cream) !important; border: 0 !important; border-radius: 14px !important; }
.hh-search label { margin-left: 10px; }
.hh-text .quick { justify-content: flex-start; }
.hh-visual { position: relative; }
.hh-img { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; background: var(--ink); }
.hh-img img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; animation: kb 40s ease-in-out infinite alternate; }
.hh-badge { position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font: 500 .85rem var(--sans); color: var(--muted); display: flex; align-items: center; gap: 8px; animation: fl 7s ease-in-out infinite alternate; }
.hh-badge b { font: 600 1.5rem/1 var(--display); color: var(--terra); }
.hh-b1 { top: -14px; right: 22px; } .hh-b2 { bottom: 26px; right: -10px; animation-delay: -3s; } .hh-b2 b { color: var(--green); }
@keyframes fl { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hh-badge, .hh-img img { animation: none; } }
.hh-visual .hh-char { left: -46px !important; right: auto !important; bottom: -24px !important; height: clamp(110px, 13vw, 170px) !important; z-index: 3; }
.hh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 44px 0 0; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 760px) { .hh-stats { grid-template-columns: repeat(4, 1fr); } }
.hh-stats div { background: var(--white); padding: 18px 20px; }
.hh-stats dd { margin: 0; font: 600 2rem/1.1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.hh-stats div:nth-child(odd) dd { color: var(--terra); } .hh-stats div:nth-child(even) dd { color: var(--green); }
.hh-stats dt { font: 500 .85rem var(--sans); color: var(--muted); margin-top: 4px; }
.home-hero .stats-note { text-align: left; margin-top: 10px; }
@media (max-width: 979px) { .hh-visual { order: -1; } .hh-b2 { right: 10px; } .hh-visual .hh-char { left: -6px !important; } }
@media (max-width: 600px) {
  .hh-search { grid-template-columns: 1fr 1fr !important; }
  .hh-search > div:nth-child(4) { grid-column: 1 / -1; }
  .hh-b1 { top: -12px; right: 12px; } .hh-b2 { bottom: 12px; left: 12px; right: auto; }
  .hh-stats dd { font-size: 1.6rem; }
}

/* feed v2: profile sidebar, 4:5 posts, captions */
.feed-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .feed-layout { grid-template-columns: minmax(0, 560px) 320px; justify-content: center; gap: 40px; } }
.feed { max-width: 560px; width: 100%; margin: 0 auto; }
.feed-side { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 999px) { .feed-side { position: static; order: -1; } .feed-side .side-card.side-cta { display: none; } }
.side-card { background: var(--white); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.side-prof { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.side-prof .post-ava { width: 64px; height: 64px; }
.side-prof b { display: block; font: 600 1.1rem var(--display); }
.side-prof span { font-size: .85rem; color: var(--muted); }
.side-nums { display: flex; gap: 18px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); } .side-nums b { color: var(--ink); font-size: 1.05rem; margin-right: 3px; }
.feed-filter { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 999px) { .feed-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.feed-filter button { flex: none; font: 500 .88rem var(--sans); border: 0; background: var(--sand-l); color: var(--ink); padding: .5em .95em; border-radius: 999px; cursor: pointer; }
.feed-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.post-head { padding: 12px 14px; }
.post-who b { font-size: .92rem; } .post-who span { font-size: .78rem; }
.post-more { margin-left: auto; font: 600 .74rem var(--sans); color: var(--green); background: var(--green-l); padding: .3em .7em; border-radius: 999px; }
.post-media { aspect-ratio: 4 / 5; }
.post-media img, .post-media video { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.post-media.vid-wide { aspect-ratio: 16 / 9; } .post-media.vid-wide video { object-fit: contain; }
.post-bar { padding: 8px 8px 0; }
.post-cap { padding: 2px 18px 18px; font-size: .95rem; line-height: 1.5; margin: 0; }
.post-cap b { font-weight: 700; margin-right: 6px; }
.post-cap .tag { color: var(--green); font-weight: 600; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.post-heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.post-heart svg { width: 96px; height: 96px; fill: #fff; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); transform: scale(.6); }
.post-heart.show { animation: heart .9s ease forwards; }
@keyframes heart { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.post-heart.show svg { animation: heartpop .9s ease forwards; }
@keyframes heartpop { 0% { transform: scale(.4); } 25% { transform: scale(1.1); } 40% { transform: scale(.95); } 100% { transform: scale(1); } }
.feed-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .feed-layout { grid-template-columns: minmax(0, 560px) 320px; } }
.feed, .post { min-width: 0; }
.feed-side, .side-card { min-width: 0; } .feed-filter { max-width: 100%; }
/* responsive audit 2026-10-13: grid children may shrink; long words wrap; tap targets >= 40px */
.two > *, .grid > *, .detail-grid > *, .share-grid > *, .m-sec > *, .hh-grid > * { min-width: 0; }
h1, h2, h3, .weeks, .weeks li, .post-cap, td, th { overflow-wrap: anywhere; }
.quick a, .f-quick button, .feed-filter button, .plan-nav a { min-height: 40px; display: inline-flex; align-items: center; }
.btn-small { min-height: 40px; }
.post-media .mute { min-height: 36px; padding: .55em .95em; }

/* About Morocco v2 (photos) */
.m-hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.m-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 40s ease-in-out infinite alternate; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,23,20,.05) 30%, rgba(28,23,20,.82) 100%); }
.m-hero-in { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.m-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 12ch; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.m-hero .lead { color: rgba(255,255,255,.9); max-width: 58ch; }
.m-hero .kicker { color: var(--gold-l); } .m-hero .kicker::before { background: var(--gold); box-shadow: 12px 0 0 #fff; }
.m-hero-credit { position: absolute; right: 14px; bottom: 10px; z-index: 2; margin: 0; font-size: .7rem; color: rgba(255,255,255,.7); }
.m-hero-credit a { color: rgba(255,255,255,.85); }
.m-sec2 { scroll-margin-top: 130px; }
.m-row { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .m-row { grid-template-columns: 1.15fr 1fr; } .m-row.m-flip > :first-child { order: 2; } .m-row.m-noimg { grid-template-columns: minmax(0, 760px); } }
.m-text .kicker { margin-bottom: .6em; }
.m-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.m-wide { max-width: 760px; }
.mfig { margin: 0; }
.mfig img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.mfig.solo img { aspect-ratio: 4 / 3; }
.mfig figcaption { font-size: .7rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.mfig figcaption a { color: var(--muted); }
.mmosaic { display: grid; gap: 14px; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.mmosaic .m-big { grid-row: span 2; } .mmosaic .m-big img { aspect-ratio: 3 / 4; }
.mmosaic .m-sm img { aspect-ratio: 1; border-radius: 20px; }
.mmosaic:has(.m-sm:only-of-type) .m-sm img { aspect-ratio: 3 / 4.1; }
@media (max-width: 560px) { .mmosaic { grid-template-columns: 1fr 1fr; } .mmosaic .m-big { grid-column: 1 / -1; grid-row: auto; } .mmosaic .m-big img { aspect-ratio: 4 / 3; } }
.mcities { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 28px; }
.mcity { position: relative; display: block; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); color: #fff; text-decoration: none; }
.mcity img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.mcity:hover img { transform: scale(1.06); }
.mcity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(28,23,20,.8)); }
.mcity span { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-size: .9rem; color: rgba(255,255,255,.85); }
.mcity b { display: block; font: 600 1.7rem/1.1 var(--display); color: #fff; }
.mcity:hover { color: #fff; }
.m-hero-sm { min-height: min(62vh, 560px); } .m-hero-sm h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* free motion for posters without a video loop: slow drift + zoom across the illustration (hover, or in view on touch screens) */
.poster:not(:has(.p-anim)) img { transform-origin: 30% 40%; }
.poster:not(:has(.p-anim)):hover img, .poster.drift img { animation: drift 9s ease-in-out infinite alternate; }
.poster:nth-child(3n):not(:has(.p-anim)) img { transform-origin: 75% 35%; }
.poster:nth-child(3n+1):not(:has(.p-anim)) img { transform-origin: 50% 70%; }
@keyframes drift { 0% { transform: scale(1.02) translate(0, 0); } 100% { transform: scale(1.14) translate(-2.5%, -1.5%); } }
@media (prefers-reduced-motion: reduce) { .poster img { animation: none !important; } }
.f-quick button { gap: 6px; }

/* Team section (commission brief): Montserrat for headings/names, faint zellige texture, portraits 4:5 */
.team-sec { position: relative; background: var(--paper); overflow: hidden; }
.team-sec::before { content: ""; position: absolute; inset: 0; background: url(zellige.svg) 0 0 / 56px 56px; opacity: .045; pointer-events: none; }
.team-sec .wrap { position: relative; }
.team-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.team-head .kicker { justify-content: center; }
.team-head h2 { font-family: "Montserrat", var(--sans); font-weight: 900; letter-spacing: -.02em; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.team-head .lead { margin: 0 auto .6em; }
.team-tag { font: 700 .95rem "Montserrat", var(--sans); color: var(--terra); margin: 0; }
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .team-grid > * { grid-column: span 2; } .team-grid > :nth-child(4) { grid-column: 2 / span 2; } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .team-grid > *, .team-grid > :nth-child(4) { grid-column: auto; } }
@media (max-width: 759px) { .team-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; } }
.t-card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.t-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1s ease; }
.t-card:hover .t-photo img { transform: scale(1.05); }
.t-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t-body:empty { display: none; }
.t-name { font: 700 1.1rem/1.2 "Montserrat", var(--sans); margin: 0; letter-spacing: -.01em; }
.t-role { font: 600 .82rem var(--sans); color: var(--green); margin: 0; }
.t-bio { font: 400 .9rem/1.5 "Montserrat", var(--sans); color: var(--muted); margin: 6px 0 0; }
.t-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.t-contact { padding: .65em 1.1em; font-size: .9rem; }
.t-icons { display: flex; gap: 6px; }
.t-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-l); color: var(--ink); transition: background .2s, color .2s; }
.t-ic:hover { background: var(--ink); color: #fff; }
.t-ic svg { width: 18px; height: 18px; }
.team-cta { margin-top: 40px; background: linear-gradient(135deg, var(--green), #00482A); color: #fff; border-radius: 28px; padding: 28px 30px; display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.team-cta h3 { color: #fff; font: 900 1.5rem/1.2 "Montserrat", var(--sans); margin: 0 0 6px; }
.team-cta p { margin: 0; color: rgba(255,255,255,.85); max-width: 62ch; }
.team-sec-sm .team-grid-sm { max-width: 980px; margin: 0 auto; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 14px; }
.team-sec-sm .team-grid-sm > * { grid-column: auto !important; max-width: none !important; }
@media (max-width: 600px) { .team-sec-sm .team-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.t-compact { border-radius: 18px; }
