:root {
  color-scheme: dark;
  --night: #07101f;
  --night-soft: #0d1930;
  --ink: #f7f3e8;
  --muted: #b9c2d2;
  --cyan: #7fe2ee;
  --white-energy: #f8fbff;
  --gold: #d9b86d;
  --green: #2ed17f;
  --red: #f25c67;
  --terracotta: #b95f4c;
  --cedar: #1e7657;
  --line: rgba(255, 255, 255, .15);
  --surface: rgba(13, 25, 48, .76);
  --radius: 1.6rem;
  --shadow: 0 1.6rem 5rem rgba(0, 0, 0, .36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(46, 209, 127, .08), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(242, 92, 103, .08), transparent 25rem),
    var(--night);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 0 1px, transparent 1.5px);
  background-size: 4.7rem 4.7rem;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 99; padding: .8rem 1rem; color: var(--night); background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: .2rem solid var(--cyan); outline-offset: .25rem; }
.shell { width: min(74rem, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(7, 16, 31, .82);
  backdrop-filter: blur(1rem);
}
.header-inner { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { position: relative; width: 2.45rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; box-shadow: inset 0 0 1rem rgba(127,226,238,.25), 0 0 1.4rem rgba(127,226,238,.18); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 50%; width: .32rem; height: .32rem; border-radius: 50%; transform: translateY(-50%); }
.brand-mark::before { left: -.12rem; background: var(--green); box-shadow: 0 0 .7rem var(--green); }
.brand-mark::after { right: -.12rem; background: var(--red); box-shadow: 0 0 .7rem var(--red); }
.brand-mark span { position: absolute; inset: .42rem; border: 1px solid var(--gold); border-radius: inherit; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a, .motion-control { border: 1px solid transparent; border-radius: 999px; padding: .55rem .8rem; color: var(--muted); background: transparent; font-size: .84rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"], .motion-control:hover { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.06); }
.motion-control { cursor: pointer; }

.hero { position: relative; min-height: 43rem; display: grid; align-items: center; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(7,16,31,.98) 0%, rgba(7,16,31,.86) 40%, rgba(7,16,31,.12) 74%), var(--hero-image) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 10rem; z-index: -1; background: linear-gradient(transparent, var(--night)); }
.hero-content { width: min(43rem, 93%); padding-block: 7rem 10rem; }
.eyebrow { margin: 0 0 1rem; color: var(--cyan); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 450; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 6.9rem); line-height: .91; letter-spacing: -.065em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 1.55rem; line-height: 1.1; }
.lede { max-width: 57ch; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .75rem 1.15rem; color: var(--ink); background: rgba(255,255,255,.08); font-weight: 780; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.button.primary { border-color: rgba(255,255,255,.72); color: #101522; background: linear-gradient(120deg, #fff, #d6f5f8 55%, #f3dfae); box-shadow: 0 0 2rem rgba(127,226,238,.2); }
.button.primary:hover { box-shadow: 0 0 2.8rem rgba(127,226,238,.38); }
.heritage-glyph { display: inline-flex; align-items: center; gap: .42rem; margin-top: 2rem; color: rgba(255,255,255,.6); font-size: .78rem; }
.heritage-glyph .crescent { color: var(--gold); font-size: 1rem; }
.hero-kicker { max-width: 32ch; margin: 1.15rem 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2.25rem); line-height: 1.2; }
.portal-search { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; width: min(43rem, 100%); margin-top: 1.8rem; padding: .45rem; border: 1px solid rgba(255,255,255,.3); border-radius: 1.1rem; background: rgba(7,16,31,.72); box-shadow: 0 1rem 3rem rgba(0,0,0,.28); backdrop-filter: blur(.75rem); }
.portal-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.portal-search select, .portal-search input { min-width: 0; border: 0; border-radius: .75rem; padding: .85rem; color: var(--ink); background: rgba(255,255,255,.08); font: inherit; }
.portal-search select { color: var(--cyan); font-weight: 760; }
.portal-search option { color: var(--night); }
.portal-search input::placeholder { color: #aeb9ca; }
.portal-search button { border: 0; border-radius: .75rem; padding: .8rem 1rem; color: #101522; background: linear-gradient(120deg, #fff, #d6f5f8); font-weight: 850; cursor: pointer; }
.portal-search select:focus-visible, .portal-search input:focus-visible { outline: .18rem solid var(--cyan); outline-offset: .08rem; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-heading { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.glass-card { position: relative; overflow: hidden; min-height: 17rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.glass-card::before { content: ""; position: absolute; width: 10rem; height: 10rem; right: -5rem; top: -5rem; border: 1px solid rgba(127,226,238,.22); border-radius: 50%; box-shadow: 0 0 2rem rgba(127,226,238,.08); }
.card-index { display: block; margin-bottom: 4.6rem; color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.glass-card p { color: var(--muted); line-height: 1.62; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.35rem; background: rgba(255,255,255,.045); }
.product-visual { min-height: 13rem; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--product-color) 45%, transparent), transparent 52%), linear-gradient(145deg, rgba(255,255,255,.09), transparent); }
.product-orb { width: 5.5rem; aspect-ratio: 1; border: .13rem solid var(--product-color); border-radius: 50%; box-shadow: 0 0 2.2rem color-mix(in srgb, var(--product-color) 60%, transparent), inset 0 0 1.5rem color-mix(in srgb, var(--product-color) 25%, transparent); }
.product-copy { padding: 1.1rem; }
.product-copy small { color: var(--cyan); font-weight: 760; }
.product-copy h3 { margin-top: .35rem; font-size: 1.22rem; }
.product-copy p { margin: .55rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.page-intro { padding-block: clamp(4rem, 9vw, 7rem) 3rem; }
.page-intro h1 { max-width: 12ch; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.2rem; align-items: start; padding-bottom: 6rem; }
.feed-stream { display: grid; gap: 1rem; }
.feed-card, .profile-panel, .side-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.post-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; }
.avatar-orb { display: grid; place-items: center; flex: 0 0 2.7rem; width: 2.7rem; aspect-ratio: 1; border: .1rem solid var(--avatar-color, var(--cyan)); border-radius: 50%; color: white; background: rgba(255,255,255,.06); box-shadow: 0 0 1rem color-mix(in srgb, var(--avatar-color, var(--cyan)) 35%, transparent); font-weight: 850; }
.post-head strong, .post-head small { display: block; }
.post-head small { color: var(--muted); }
.post-art { min-height: 24rem; display: grid; place-items: center; background: radial-gradient(circle at 50% 44%, rgba(248,251,255,.32), transparent 12%), radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--post-color, var(--cyan)) 45%, transparent), transparent 42%), linear-gradient(145deg, #0d1b31, #111527); }
.post-art::before { content: ""; width: 10rem; aspect-ratio: 1; border: .14rem solid var(--post-color, var(--cyan)); border-radius: 50%; box-shadow: 0 0 2.5rem color-mix(in srgb, var(--post-color, var(--cyan)) 48%, transparent), inset 0 0 2rem rgba(255,255,255,.13); }
.post-copy { padding: 1.1rem; }
.post-copy p { color: var(--muted); line-height: 1.55; }
.post-actions { display: flex; gap: .55rem; padding: 0 1.1rem 1.1rem; }
.post-actions button { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .75rem; color: var(--ink); background: transparent; cursor: pointer; }
.side-panel { position: sticky; top: 5.8rem; padding: 1.2rem; }
.side-panel ul { padding-left: 1.1rem; color: var(--muted); line-height: 1.8; }
.profile-panel { overflow: hidden; }
.profile-cover { min-height: 14rem; background: radial-gradient(circle at 72% 30%, rgba(46,209,127,.25), transparent 18%), radial-gradient(circle at 78% 34%, rgba(242,92,103,.2), transparent 29%), linear-gradient(135deg, #101f39, #090f1e); }
.profile-main { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: end; padding: 0 clamp(1rem,4vw,2rem) 2rem; }
.profile-main .avatar-orb { width: 7rem; margin-top: -3.5rem; font-family: Georgia, serif; font-size: 2.2rem; background: var(--night-soft); }
.profile-main p { margin: .45rem 0 0; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.profile-stats div { padding: 1.2rem; text-align: center; }
.profile-stats div + div { border-left: 1px solid var(--line); }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats span { color: var(--muted); font-size: .78rem; }

.video-feature { display: grid; grid-template-columns: minmax(18rem, .86fr) 1.14fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.video-art { position: relative; border: 1px solid rgba(255,255,255,.18); border-radius: 2.4rem; overflow: hidden; box-shadow: 0 2rem 7rem rgba(0,0,0,.45); }
.video-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.video-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .45rem rgba(7,16,31,.32); pointer-events: none; }
.signal { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--muted); font-size: .83rem; }
.signal::before, .signal::after { content: ""; width: .45rem; height: .45rem; border-radius: 50%; }
.signal::before { background: var(--green); box-shadow: 0 0 .8rem var(--green); }
.signal::after { background: var(--red); box-shadow: 0 0 .8rem var(--red); }

.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.levels li { min-width: 0; text-align: center; }
.level-ring { display: grid; place-items: center; width: clamp(3rem, 7vw, 5.5rem); aspect-ratio: 1; margin: 0 auto .8rem; border: .16rem solid var(--ring); border-radius: 50%; color: var(--ring); box-shadow: 0 0 1rem color-mix(in srgb, var(--ring) 45%, transparent), inset 0 0 1rem color-mix(in srgb, var(--ring) 20%, transparent); }
.level-ring::after { content: ""; width: 28%; aspect-ratio: 1; border-radius: 50%; background: currentColor; box-shadow: 0 0 .7rem currentColor; opacity: .86; }
.levels strong { display: block; font-size: .78rem; line-height: 1.25; }
.levels small { color: var(--muted); font-size: .7rem; }

.story-card { min-height: 34rem; display: grid; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 2.2rem; background: linear-gradient(90deg, rgba(7,16,31,.96), rgba(7,16,31,.76) 46%, rgba(7,16,31,.1)), var(--story-image) center/cover no-repeat; box-shadow: var(--shadow); }
.story-card-content { width: min(35rem, 91%); padding: clamp(2rem, 6vw, 5rem); }
.story-card p { color: #d6d8de; line-height: 1.7; }

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.selector { min-height: 100vh; display: grid; place-items: center; padding-block: 4rem; }
.selector-panel { width: min(60rem, 100%); border: 1px solid var(--line); border-radius: 2rem; padding: clamp(1.5rem, 5vw, 4rem); background: rgba(13,25,48,.82); box-shadow: var(--shadow); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.market-card { min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.4rem; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.market-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.market-card.fr { background: linear-gradient(145deg, rgba(46,209,127,.12), rgba(13,25,48,.5)); }
.market-card.us { background: linear-gradient(145deg, rgba(127,226,238,.11), rgba(242,92,103,.08)); }
.market-card strong { font-family: Georgia, serif; font-size: 2rem; }
.market-card span { color: var(--muted); }

.morocco-page { --gold: #ddb86a; --green: #48b183; --red: #d77965; }
.morocco-hero { --hero-image: url("images/escale-maroc.png"); }
.morocco-page .zellige-band { height: .5rem; background: repeating-linear-gradient(45deg, var(--cedar) 0 1rem, #e6d5a8 1rem 2rem, var(--terracotta) 2rem 3rem, #172b4e 3rem 4rem); opacity: .75; }
.quote { max-width: 54rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem); border-left: .18rem solid var(--gold); color: #efe5cf; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.35; }

[data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
html[data-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] { scroll-behavior: auto; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding-block: .65rem; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
  .nav a { flex: 0 0 auto; white-space: nowrap; }
  .motion-control { display: none; }
  .hero { min-height: 39rem; }
  .hero::before { background: linear-gradient(90deg, rgba(7,16,31,.96), rgba(7,16,31,.63)), var(--hero-image) 62% center/cover no-repeat; }
  .section-heading, .video-feature { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .glass-card { min-height: 14rem; }
  .card-index { margin-bottom: 2rem; }
  .levels { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 1.2rem, 74rem); }
  .brand > span:last-child { font-size: .92rem; }
  .hero-content { padding-block: 6rem 8rem; }
  .market-grid { grid-template-columns: 1fr; }
  .portal-search { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .profile-main { grid-template-columns: 1fr; align-items: start; }
  .profile-main .avatar-orb { margin-top: -3.8rem; }
  .story-card { min-height: 38rem; background-position: 66% center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
