/* SAFI — dark pack-black field lit by one gold light leak; the pack itself is the hero.
   Gold is reserved for light, the brand mark and annotation. Primary actions are pale pills. */
/* Self-hosted fonts (SIL Open Font License), trimmed to the scripts each one is used for */
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-arabic.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
    --canvas: #121309;
    --canvas-raised: #1A1C12;
    --text: #F2EDE3;
    --muted: #8D897C;
    --hair: rgba(242, 237, 227, 0.1);
    --hair-strong: rgba(242, 237, 227, 0.2);
    --gold: #C9A55C;
    --gold-bright: #E4C784;
    --gold-deep: #8E6F35;
    --notice-bg: #ECE5D2;
    --notice-text: #121309;
    --error: #F0A58F;

    --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    --mark: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --arabic: 'Amiri', 'Geeza Pro', serif;

    --gutter: clamp(16px, 4vw, 56px);
    --wide: 1320px;
    --measure: 38rem;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.age-pending body { overflow: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
/* clip (not hidden) keeps the decorative glows from widening the page without breaking sticky children */
main { flex: 1 0 auto; overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
[lang="ar"] { font-family: var(--arabic); letter-spacing: 0; }

.visually-hidden, .field-trap {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 8px; top: -100px; z-index: 200; background: var(--text); color: var(--canvas); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }

/* ---- Display type: tight grotesk, second line muted ---- */
.display { font-size: clamp(2.4rem, 5.8vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
.display > span { display: block; }
.display-muted { color: var(--muted); }
.display-small { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; }

/* ---- Light leak: decorative only ---- */
.light {
    position: absolute; z-index: 0; pointer-events: none;
    left: -20%; top: 30%;
    width: 140%; height: 46%;
    background: radial-gradient(closest-side, rgba(201, 165, 92, 0.42), rgba(201, 165, 92, 0.12) 55%, transparent);
    transform: rotate(-24deg);
    filter: blur(30px);
}
.light-soft { opacity: 0.55; }

/* ---- Pills ---- */
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px;
    border: 1px solid var(--text); border-radius: 999px;
    background: var(--text); color: var(--canvas);
    font: 500 1rem/1 var(--sans); text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.pill:disabled { opacity: 0.6; cursor: progress; }
.pill-ghost { background: transparent; color: var(--text); border-color: var(--hair-strong); }
.pill-ghost:hover { background: transparent; border-color: var(--text); }
.pill-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.pill.is-current { background: transparent; color: var(--text); }

/* ---- Health warning: deliberately outside the brand palette so it reads as a notice ---- */
.warning {
    position: relative; z-index: 5;
    margin: 0; padding: 9px var(--gutter);
    background: var(--notice-bg); color: var(--notice-text);
    font-size: 0.9rem; line-height: 1.4; text-align: center;
}

/* ---- Header: sticky; clear at the top, frosted once scrolled, hidden while scrolling down ---- */
.site-header {
    position: sticky; top: 0; z-index: 70;
    border-bottom: 1px solid transparent;
    transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
    background: rgba(18, 19, 9, 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: var(--hair);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
    max-width: var(--wide); width: 100%; margin: 0 auto;
    padding: 18px var(--gutter);
}
.mark {
    display: inline-flex; align-items: baseline; gap: 12px;
    font-family: var(--mark); font-size: 1.45rem; letter-spacing: 0.16em;
    color: var(--gold); text-decoration: none;
}
.mark [lang="ar"] { font-size: 1.35rem; }
.main-nav { display: flex; align-items: center; gap: 8px 28px; }
.nav-link { position: relative; color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 0.2s; }
.nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: none; }

/* Menu button and full-screen menu: phones only */
.menu-button {
    display: none; flex: none; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--hair-strong); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 1px; margin: 0 auto; background: var(--text); transition: transform 0.3s var(--ease); }
.menu-icon { position: relative; transform: translateY(-3px); }
.menu-icon::before { content: ''; position: absolute; left: 0; top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }
.mobile-menu {
    position: fixed; inset: 0; z-index: 65;
    display: flex; flex-direction: column; gap: 32px;
    padding: calc(var(--header-h, 80px) + 24px) var(--gutter) 32px;
    background: var(--canvas); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
    padding: 14px 0; border-bottom: 1px solid var(--hair);
    font-size: 2rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold-bright); }
.mobile-menu-contact { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu-contact a { color: var(--muted); text-decoration: none; }
.mobile-menu-warning { margin: auto 0 0; padding: 10px 14px; border-radius: 8px; background: var(--notice-bg); color: var(--notice-text); font-size: 0.85rem; }
@media (prefers-reduced-motion: no-preference) {
    .mobile-menu:not([hidden]) nav a { animation: menu-in 0.5s var(--ease) both; }
    .mobile-menu:not([hidden]) nav a:nth-child(2) { animation-delay: 0.04s; }
    .mobile-menu:not([hidden]) nav a:nth-child(3) { animation-delay: 0.08s; }
    .mobile-menu:not([hidden]) nav a:nth-child(4) { animation-delay: 0.12s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.menu-open { overflow: hidden; }

/* ---- Home hero: the brand lockup from the pack (SAFI, divider, صافي); no single product, so it suits any number of products ---- */
/* The track is what you scroll through; the stage inside it stays pinned while the particles change script.
   The description and buttons come after the track: pinned to the bottom of the screen on wide screens,
   in normal flow on phones so the word gets the whole screen while it changes. */
.hero { position: relative; }
.hero-track { position: relative; }
.hero-spacer { display: none; }
.hero-sticky {
    position: relative; isolation: isolate;
    display: grid; grid-template-rows: 1fr auto;
    min-height: max(340px, calc(100svh - 380px));
    padding: 0 var(--gutter);
    overflow: hidden;
}
.hero.is-gl { margin-top: calc(-1 * var(--chrome, 125px)); }
.hero.is-gl .hero-spacer { display: block; height: 130vh; }
.hero.is-gl .hero-sticky {
    position: sticky; top: 0; height: 100svh; min-height: 0;
    /* Under the warning bar and header at the top; room at the bottom for the pinned description and buttons */
    padding-top: var(--chrome, 125px); padding-bottom: var(--foot-h, 220px);
}
.hero.is-gl .hero-foot { position: sticky; bottom: 0; }
/* Light that follows the cursor, like light moving across foil */
.hero.is-gl .hero-sticky::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(228, 199, 132, 0.10), transparent 70%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: none; }
.hero.is-gl .hero-canvas { display: block; }
/* With the particle wordmark running, the HTML lockup stays only for search engines and screen readers */
.hero.is-gl .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }

/* Which script is showing: a gold bar that fills as the Latin name becomes the Arabic one */
.hero-scripts { display: none; }
.hero.is-gl .hero-scripts {
    grid-row: 2; position: relative; z-index: 3; justify-self: center;
    display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
    font-family: var(--mark); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--muted);
}
.hero-scripts [lang="ar"] { font-size: 1.05rem; }
.hero-scripts-track { position: relative; width: 120px; height: 1px; background: var(--hair-strong); }
.hero-scripts-bar { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--morph, 0)); }

.hero-title {
    grid-area: 1 / 1; align-self: center; justify-self: center; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    margin: 0; padding: clamp(24px, 4vh, 56px) 0; line-height: 0.8;
}
.hero-word {
    display: block;
    font-family: var(--mark); font-weight: 400;
    font-size: clamp(6.5rem, min(19vw, 30vh), 17rem);
    letter-spacing: 0.06em; margin-right: -0.06em;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The pack's divider: a hairline with a diamond at each end */
.hero-rule {
    position: relative; display: block;
    width: min(48vw, 460px); height: 1px; margin: clamp(16px, 2.5vh, 32px) 0;
    background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.hero-rule::before, .hero-rule::after {
    content: ''; position: absolute; top: -4px; width: 9px; height: 9px;
    background: var(--gold); transform: rotate(45deg);
}
.hero-rule::before { left: 6%; }
.hero-rule::after { right: 6%; }
.hero-word-ar {
    display: block;
    font-family: var(--arabic); font-weight: 400;
    font-size: clamp(3.2rem, min(7vw, 12vh), 6.5rem); line-height: 1.25;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-foot {
    position: relative; z-index: 3;
    /* Bottom room keeps the floating WhatsApp button clear of the hero actions */
    padding: 0 var(--gutter) 96px;
}
.hero-foot-inner {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
    max-width: var(--wide); margin: 0 auto;
    padding-top: 24px; border-top: 1px solid var(--hair);
}
.hero-lede { max-width: 30rem; margin: 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Pack photos have their own dark backdrop: fade the edges into the page */
.range-image img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
    mask-composite: intersect;
}

/* One orchestrated entrance, played when the page is first revealed */
@media (prefers-reduced-motion: no-preference) {
    html.js .hero-word, html.js .hero-word-ar, html.js .hero-rule, html.js .hero .light { opacity: 0; }
    html.js.is-ready .hero .light { animation: fade-in 2.4s var(--ease) 0.1s forwards; }
    html.js.is-ready .hero-word { animation: word-in 1.6s var(--ease) forwards; }
    html.js.is-ready .hero-rule { animation: rule-in 1.2s var(--ease) 0.5s forwards; }
    html.js.is-ready .hero-word-ar { animation: rise-in 1.4s var(--ease) 0.8s forwards; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes word-in { from { opacity: 0; letter-spacing: 0.22em; } to { opacity: 1; letter-spacing: 0.06em; } }
@keyframes rule-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---- Statement + steps ---- */
.statement, .questions, .prose, .range, .page-head, .product-head, .enquiry-page {
    position: relative; max-width: var(--wide); margin: 0 auto; width: 100%;
    padding-left: var(--gutter); padding-right: var(--gutter);
}
.statement { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(64px, 9vw, 120px); }
.steps {
    list-style: none; counter-reset: step;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
    margin: clamp(48px, 7vw, 96px) 0 0; padding: 0;
}
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--hair-strong); }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: 28px;
    font-size: 0.9rem; color: var(--gold); font-variant-numeric: tabular-nums;
}
.steps :is(h3, h4) { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; }
.steps p { color: var(--muted); margin: 0; max-width: 24rem; }

/* ---- FAQ ---- */
.questions {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px clamp(32px, 6vw, 96px);
    padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px);
    border-top: 1px solid var(--hair);
}
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.faq summary:hover h3 { color: var(--gold-bright); }
.faq-sign { position: relative; flex: none; width: 14px; height: 14px; }
.faq-sign::before, .faq-sign::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--text); transition: transform 0.3s var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq details[open] .faq-sign::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); max-width: var(--measure); padding-bottom: 22px; margin: 0; }

/* ---- Closing band ---- */
/* Full width so the light leak is never cut off at a container edge */
.closing {
    position: relative; isolation: isolate; overflow: hidden;
    padding-left: var(--gutter); padding-right: var(--gutter);
    padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px);
    text-align: center; border-top: 1px solid var(--hair);
}
.closing .display { position: relative; z-index: 1; margin-bottom: 40px; }
.closing p { position: relative; z-index: 1; margin: 0; }
.closing .light { top: 20%; }

/* ---- Inner page heads ---- */
.page-head { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head .display { position: relative; z-index: 1; }

/* ---- Products on the home page ---- */
.range-section { max-width: var(--wide); margin: 0 auto; width: 100%; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.range-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 40px); }
.range-section .range { padding: 0; margin-bottom: 0; }

/* ---- Product list ---- */
.range { list-style: none; margin: 0 auto clamp(64px, 9vw, 120px); }
.range-item { border-top: 1px solid var(--hair); }
.range-item:last-child { border-bottom: 1px solid var(--hair); }
.range-link {
    display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
    padding: 28px 0; text-decoration: none;
}
.range-image img { transition: transform 0.6s var(--ease); }
.range-link:hover .range-image img { transform: translateY(-6px); }
.range-text { display: flex; flex-direction: column; gap: 6px; }
.range-name { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.range-arabic { font-size: 1.5rem; color: var(--gold); text-align: left; }
.range-summary { color: var(--muted); max-width: var(--measure); }
.range-more { margin-top: 10px; text-decoration: underline; text-underline-offset: 0.22em; }
.range-link:hover .range-name { color: var(--gold-bright); }

/* ---- Product page ---- */
.product-head { isolation: isolate; padding-top: 24px; padding-bottom: clamp(64px, 8vw, 112px); }
.crumbs { position: relative; z-index: 1; display: flex; gap: 10px; color: var(--muted); font-size: 0.95rem; margin-bottom: clamp(24px, 4vw, 48px); }
.crumbs a { color: var(--muted); }
.product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.product-text h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; }
.product-arabic { font-size: 1.8rem; color: var(--gold); text-align: left; margin: 10px 0 28px; }
.answer { font-size: 1.15rem; max-width: var(--measure); }
.specs { width: 100%; max-width: var(--measure); border-collapse: collapse; margin: 32px 0 36px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--hair); }
.specs th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 16px; }
.product-actions { margin-bottom: 32px; }
.notice { max-width: var(--measure); padding: 14px 16px; border-left: 2px solid var(--notice-bg); background: var(--canvas-raised); font-size: 0.95rem; }
.updated { color: var(--muted); font-size: 0.9rem; }
.product .questions { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- Prose pages ---- */
.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-left: max(0px, calc((100vw - var(--wide)) / 2)); padding-bottom: clamp(64px, 9vw, 120px); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 1.8em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: rgba(242, 237, 227, 0.82); }
.prose a { color: var(--gold-bright); }

/* ---- Enquiry ---- */
.enquiry-page {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px);
    padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px);
}
.enquiry-intro { position: relative; isolation: isolate; }
.enquiry-intro .light { top: 10%; left: -60%; width: 180%; }
.enquiry-intro .display { position: relative; font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.intro-lede { position: relative; color: var(--muted); max-width: 26rem; margin-top: 24px; }
.intro-sub { position: relative; font-size: 1rem; color: var(--muted); font-weight: 400; margin-top: 48px; }
.steps-compact { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
.steps-compact li::before { margin-bottom: 10px; }
.steps-compact :is(h3, h4) { font-size: 1.1rem; }
.intro-wa { position: relative; margin: 28px 0 0; }

/* ---- Product photo gallery (top of product pages) ----
   Every photo sits in the same light frame, shown whole, so swiping between shapes never jumps. */
/* Desktop: thumbnails in a column beside the main photo, so they are on the first screen */
.product-grid .pg {
    position: sticky; top: 24px; min-width: 0;
    display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: start;
}
.pg-stage { grid-column: 2; grid-row: 1; }
.pg-caption { grid-column: 2; }
.pg:not(:has(.pg-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.pg:not(:has(.pg-thumbs)) > * { grid-column: 1; }
.pg-stage { position: relative; }
.pg-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 18px; background: #EEEBE4;
}
.pg-track::-webkit-scrollbar { display: none; }
.pg-track:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.pg-slide {
    flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
    aspect-ratio: 4 / 5; padding: clamp(16px, 3vw, 32px);
    display: flex; align-items: center; justify-content: center;
}
.pg-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pg-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(18, 19, 9, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: grid; place-items: center; opacity: 0; transition: opacity 0.25s;
}
.pg-stage:hover .pg-arrow, .pg-arrow:focus-visible { opacity: 1; }
.pg-arrow[hidden] { display: none; }
.pg-prev { left: 12px; }
.pg-next { right: 12px; }
.pg-arrow span { width: 9px; height: 9px; border-top: 1.5px solid var(--text); border-right: 1.5px solid var(--text); }
.pg-prev span { transform: translateX(2px) rotate(-135deg); }
.pg-next span { transform: translateX(-2px) rotate(45deg); }
.pg-caption { display: flex; gap: 12px; margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; min-height: 1.6em; }
.pg-count { color: var(--text); font-variant-numeric: tabular-nums; flex: none; }
.pg-count:empty { display: none; }
.pg-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.pg-thumb { width: 72px; }
.pg-thumb {
    aspect-ratio: 1; padding: 6px; border: 1px solid transparent; border-radius: 10px;
    background: #EEEBE4; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.pg-thumb:hover { opacity: 0.85; }
.pg-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pg-dots { display: none; }
@media (max-width: 960px) {
    .product-grid .pg { position: static; display: block; }
    /* Phones and tablets: full-width swipe with dots; thumbnails and arrows are for mouse users */
    .pg-thumbs, .pg-arrow { display: none; }
    .pg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
    .pg-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--hair-strong); transition: background 0.2s, width 0.2s; }
    .pg-dots span.is-on { width: 18px; border-radius: 3px; background: var(--gold); }
    .pg-caption { justify-content: center; text-align: center; }
    .pg-count { display: none; }
}

/* Product pages end with the form instead of the closing band */
.product-enquiry { border-top: 1px solid var(--hair); scroll-margin-top: 24px; }
.product-enquiry .enquiry-page { scroll-margin-top: 24px; }

/* ---- WhatsApp ---- */
.wa-icon { width: 20px; height: 20px; flex: none; color: #25D366; }
.pill .wa-icon { margin-right: 10px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wa-float {
    position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 20px 0 16px;
    border: 1px solid var(--hair-strong); border-radius: 999px;
    background: rgba(26, 28, 18, 0.88); color: var(--text);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    font-weight: 500; text-decoration: none;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}
.wa-float:hover { border-color: #25D366; transform: translateY(-2px); }
.wa-float .wa-icon { width: 24px; height: 24px; }
.enquiry-form-wrap { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--hair); border-radius: 20px; background: var(--canvas-raised); align-self: start; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; color: var(--muted); }
.hint { margin: -4px 0 0; font-size: 0.85rem; color: var(--muted); opacity: 0.8; }
input, select, textarea {
    width: 100%; padding: 12px 14px;
    background: var(--canvas); color: var(--text);
    border: 1px solid var(--hair-strong); border-radius: 12px;
    font: 1rem/1.4 var(--sans);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:hover, select:hover, textarea:hover { border-color: rgba(242, 237, 227, 0.35); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 0; border-color: transparent; }
[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--gold); }
.check label { color: var(--text); }
.form-error { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid var(--error); border-radius: 12px; color: var(--error); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 4px 0 0; }
.small { font-size: 0.85rem; color: var(--muted); }
.small a { color: var(--text); }
.form-done h2 { font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.form-done:focus { outline: none; }
.form-done a { color: var(--gold-bright); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--hair); padding: clamp(56px, 7vw, 88px) var(--gutter) 0; color: var(--muted); font-size: 0.95rem; }
.footer-top {
    display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px;
    max-width: var(--wide); margin: 0 auto;
}
.footer-brand p { max-width: 24rem; margin: 0; }
/* The pack's lockup, small: SAFI over a diamond-ended rule over صافي */
.footer-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px !important; }
.footer-lockup-latin { font-family: var(--mark); font-size: 1.9rem; line-height: 1; letter-spacing: 0.16em; margin-right: -0.16em; color: var(--gold); }
.footer-lockup-rule { position: relative; width: 120px; height: 1px; background: var(--gold-deep); }
.footer-lockup-rule::before, .footer-lockup-rule::after { content: ''; position: absolute; top: -3px; width: 7px; height: 7px; background: var(--gold-deep); transform: rotate(45deg); }
.footer-lockup-rule::before { left: -3px; }
.footer-lockup-rule::after { right: -3px; }
.footer-lockup-ar { font-family: var(--arabic); font-size: 1.6rem; line-height: 1.2; color: var(--gold); }
.footer-col h2 { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
    max-width: var(--wide); margin: clamp(48px, 6vw, 72px) auto 0;
    /* Bottom room so the floating WhatsApp button never covers this line */
    padding: 20px 0 96px; border-top: 1px solid var(--hair); font-size: 0.85rem;
}
.footer-bottom p { margin: 0; max-width: 46rem; }

/* ---- Age gate ---- */
.age-gate {
    position: fixed; inset: 0; z-index: 100; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: var(--gutter); background: var(--canvas);
}
.age-gate[hidden] { display: none; }
.age-gate-panel { position: relative; z-index: 1; max-width: 34rem; text-align: center; }
.age-gate-mark {
    font-family: var(--mark); font-size: clamp(4rem, 14vw, 7rem); line-height: 1; letter-spacing: 0.08em; margin: 0 -0.08em 28px 0;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.age-gate h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.age-gate p:not(.age-gate-mark):not(.age-gate-warning) { color: var(--muted); }
.age-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.age-gate-actions[hidden] { display: none; }
.age-gate-refused { margin-top: 24px; color: var(--text) !important; }
.age-gate .age-gate-warning { margin-top: 40px; padding: 10px 16px; border-radius: 8px; background: var(--notice-bg); color: var(--notice-text); font-size: 0.9rem; }
/* Hide page content behind the gate before site.js runs, so it never flashes */
html.age-pending body > :not(.age-gate) { visibility: hidden; }
html.age-pending .age-gate[hidden] { display: flex; }

/* ---- Small screens ---- */
@media (max-width: 960px) {
    .questions { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .enquiry-page { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .hero-sticky { padding-top: 24px; }
    /* Phones: same as desktop (description and buttons pinned under the word). The buttons sit left of the
       floating WhatsApp button, so they need no extra clearance below */
    .hero-foot { padding-bottom: 24px; }
    .hero.is-gl .hero-spacer { height: 100svh; }
    .hero-word { font-size: 31vw; }
    .hero-rule { width: 70vw; }
    .steps { grid-template-columns: 1fr; }
    .range-link { grid-template-columns: 96px minmax(0, 1fr); }
    .enquiry { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .nav-link { display: none; }
    .menu-button { display: block; }
    .main-nav { gap: 10px; margin-left: auto; }
    .header-inner { gap: 10px; padding-top: 14px; padding-bottom: 14px; }
    .mark { font-size: 1.25rem; gap: 8px; }
    .mark [lang="ar"] { font-size: 1.15rem; }
    /* Icon only on phones so it covers less of the page; the link keeps its accessible name */
    .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; }
    .wa-float span { display: none; }
    .wa-float .wa-icon { width: 28px; height: 28px; }
}

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

/* Headline words lit by scroll (site.js sets each word's opacity); the short fade smooths fast scrolls */
.reveal-word { transition: opacity 0.15s linear; }
