/* Nailux — nailux.com */
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url(../fonts/amiri-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'Amiri'; font-weight: 700; font-display: swap; src: url(../fonts/amiri-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'Amiri'; font-weight: 400 700; font-display: swap; src: url(../fonts/amiri-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 300; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url(../fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url(../fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 400; font-display: swap; src: url(../fonts/cinzel-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url(../fonts/cinzel-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url(../fonts/cinzel-latin-600-normal.woff2) format('woff2'); }

:root {
  --marble: #F9F8F6;       /* page ground: the white of the Venia pages */
  --stone: #EFEAE2;        /* travertine panel */
  --vein: #DDD5C8;         /* rules, dividers */
  --ink: #111111;          /* the bottle black */
  --ink-2: #4E463E;        /* secondary text, 7.9:1 on marble */
  --gold: #B89750;         /* laurel ornament, never small text */
  --gold-text: #7A6126;    /* readable gold */
  --wine: #580109;
  --shade: #D7A9A6;        /* the live shade, set by the visitor */
  --display: 'Amiri', 'Cinzel', Georgia, serif;
  --text: 'Plex Arabic', 'Open Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
html[lang="en"] { --display: 'Cinzel', Georgia, serif; --text: 'Open Sans', 'Plex Arabic', system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 17px/1.75 var(--text); overflow-x: hidden; }
html[lang="en"] body { font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 400; letter-spacing: .02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
html[lang="ar"] .en-only, html[lang="en"] .ar-only { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2622; }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; }
.btn:active { transform: scale(.98); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vein); background: var(--marble); cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.round:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav.solid { background: rgba(249, 248, 246, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--vein); }
.nav-logo img { width: 118px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-size: 15px; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px; transition: background-size .3s var(--ease); }
html[dir="rtl"] .nav-links a { background-position: 100% 100%; }
.nav-links a:hover { background-size: 100% 1px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--vein); background: transparent; border-radius: 999px; height: 38px; min-width: 46px; padding: 0 12px; cursor: pointer; font: 500 14px 'Open Sans', 'Plex Arabic', sans-serif; }
.bag { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 14px; }
.bag b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--shade); color: var(--ink); font: 600 12px/22px 'Open Sans', sans-serif; text-align: center; padding: 0 5px; transition: background .4s; }
.bag.pulse b { animation: pulse .6s var(--ease); }
@keyframes pulse { 40% { transform: scale(1.35); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px var(--gutter) 90px; overflow: hidden; background: radial-gradient(120% 90% at 30% 60%, #FFFFFF 0%, var(--marble) 55%, #F1EDE6 100%); }
html[dir="ltr"] .hero { background: radial-gradient(120% 90% at 70% 60%, #FFFFFF 0%, var(--marble) 55%, #F1EDE6 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.hero-fallback { position: absolute; inset-inline-end: 6%; bottom: 8%; width: min(36vw, 420px); }
.hero-copy { position: relative; z-index: 2; max-width: 600px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-title { font-size: clamp(56px, 7.8vw, 118px); line-height: 1.32; font-weight: 700; }
html[lang="en"] .hero-title { font-size: clamp(46px, 6.6vw, 96px); line-height: 1.04; }
.hero-title .dot { display: inline-block; width: .2em; height: .2em; margin-inline-start: .08em; background: var(--shade); border-radius: 50% 0 50% 50%; transform: rotate(135deg) translateY(-.02em); transition: background .5s var(--ease); vertical-align: baseline; }
.hero-lede { margin-top: 30px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-pick { margin-top: 42px; display: flex; align-items: center; gap: 14px; pointer-events: auto; flex-wrap: wrap; }
.hero-pick-label { font-size: 14px; color: var(--ink-2); }
.hero-drops { display: flex; gap: 8px; }
.hero-code { font: 600 13px 'Open Sans', sans-serif; text-decoration: underline; text-underline-offset: 4px; min-width: 3em; }
.hero-hint { position: absolute; bottom: 26px; inset-inline-end: var(--gutter); font-size: 13px; color: var(--ink-2); z-index: 2; }

/* the drop: a teardrop with a gloss, used everywhere a shade appears */
.drop { --c: #ccc; position: relative; width: 26px; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0 7%, rgba(255,255,255,0) 24%), radial-gradient(circle at 60% 70%, rgba(0,0,0,.14), rgba(0,0,0,0) 60%), var(--c); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); box-shadow: 0 3px 5px rgba(60, 40, 20, .22); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.drop:hover { transform: rotate(-45deg) scale(1.12); }
.drop[aria-pressed="true"], .drop[aria-selected="true"] { box-shadow: 0 0 0 2px var(--marble), 0 0 0 3.5px var(--ink); }

/* ---------- origin ---------- */
.origin { background: var(--marble); }
.origin-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 6vw, 96px); padding: 100px var(--gutter); }
.origin-art { margin: 0; height: min(78svh, 760px); overflow: hidden; clip-path: inset(8% 8% 8% 8%); }
.origin-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.15); }
.origin-line { font-size: clamp(38px, 5.4vw, 84px); line-height: 1.2; }
html[lang="en"] .origin-line { font-size: clamp(32px, 4.2vw, 62px); }
.origin-line .w { display: inline-block; opacity: .14; transition: opacity .2s linear; }
.origin-body { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.origin-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--vein); }
.origin-facts div { margin: 0; }
.origin-facts dt { font-size: 13px; color: var(--ink-2); }
.origin-facts dd { margin: 4px 0 0; font: 700 24px/1.3 var(--display); }
html[lang="en"] .origin-facts dd { font-weight: 400; font-size: 21px; }

/* ---------- shade lab ---------- */
.lab { position: relative; background: var(--stone); overflow: hidden; }
.lab-ink { position: absolute; inset: 0; z-index: 0; }
.lab-ink canvas { display: block; }
.lab-inner { position: relative; z-index: 1; padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.sec-head { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 64px); }
.sec-head p { margin-top: 12px; color: var(--ink-2); max-width: 36em; margin-inline: auto; }
.sec-head-start { justify-content: space-between; text-align: start; align-items: flex-end; }
.sec-head-start p { margin-inline: 0; }
.laurel { width: 46px; height: auto; flex: none; }
.lab-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab { border: 1px solid var(--vein); background: rgba(249, 248, 246, .7); border-radius: 999px; min-height: 42px; padding: 0 18px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.tab small { font: 600 12px 'Open Sans', sans-serif; color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-selected="true"] small { color: #d9d2c6; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 26px 14px; padding: 28px; background: rgba(249, 248, 246, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cell { display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cell .drop { width: 44px; pointer-events: none; }
.cell:hover .drop { transform: rotate(-45deg) scale(1.12) translateY(-2px); }
.cell code { font: 600 13px 'Open Sans', sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.cell[aria-selected="true"] .drop { box-shadow: 0 0 0 2px var(--marble), 0 0 0 3.5px var(--ink); }
.cell.in-bag code::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-start: 5px; vertical-align: middle; }
.lab-focus { position: sticky; top: 96px; background: var(--marble); padding: 34px 28px 28px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.focus-shot { position: relative; width: 100%; max-width: 240px; aspect-ratio: 4 / 5; margin: -10px 0 10px; background: #F2F0EC; overflow: hidden; isolation: isolate; }
.focus-shot > img, .hand, .hand > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the stone hand: plain nails in the photo, recoloured live with the chosen shade (multiply keeps the stone's light and shadow), gloss laid back on top */
.hand-nails { background: var(--shade); -webkit-mask: url('../img/hand-mask.png') center / cover no-repeat; mask: url('../img/hand-mask.png') center / cover no-repeat; mix-blend-mode: multiply; transition: background-color .45s var(--ease); }
.hand-gloss { opacity: .8; pointer-events: none; }
.bottle-shot, .focus-shot .focus-drop { visibility: hidden; }
.focus-shot.view-bottle .hand { visibility: hidden; }
.focus-shot.view-bottle .bottle-shot { visibility: visible; transition: opacity .35s var(--ease); }
.focus-shot.view-bottle.loading .bottle-shot { opacity: .55; }
.focus-shot .focus-drop { position: absolute; left: 50%; top: 50%; margin: -66px 0 0 -66px; }
.focus-shot.view-bottle.no-photo .bottle-shot { visibility: hidden; }
.focus-shot.view-bottle.no-photo .focus-drop { visibility: visible; }
.shot-view { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--vein); border-radius: 999px; }
.shot-view button { font: 500 12.5px 'Open Sans', 'IBM Plex Sans Arabic', sans-serif; border: 0; background: none; color: var(--ink-2); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.shot-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.focus-drop { width: 132px; aspect-ratio: 1; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 6%, rgba(255,255,255,0) 22%), radial-gradient(circle at 62% 72%, rgba(0,0,0,.16), rgba(0,0,0,0) 60%), var(--shade); box-shadow: 0 16px 28px rgba(60, 40, 20, .2); transition: background .5s var(--ease); }
.focus-range { font: 400 20px 'Cinzel', serif; }
.focus-code { font: 600 34px 'Open Sans', sans-serif; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.focus-spec { font: 400 13px 'Open Sans', sans-serif; color: var(--ink-2); margin-bottom: 18px; }
.focus-note { font-size: 12.5px; color: var(--ink-2); margin-top: 16px; line-height: 1.6; }
.lab-focus .btn { width: 100%; }

/* ---------- products ---------- */
.products { padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 120px); }
.products .sec-head { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto 40px; }
.swiper-ctrl { display: flex; gap: 8px; }
#prodSwiper { padding: 0 var(--gutter); }
.swiper-slide.prod { width: min(78vw, 330px); }
.prod figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.prod figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover figure img { transform: scale(1.04); }
.prod h3 { font: 400 24px/1.25 'Cinzel', serif; margin-top: 20px; letter-spacing: .02em; }
.prod .ar-name { font: 700 19px/1.4 'Amiri', serif; margin-top: 2px; }
.prod .spec { font: 400 13px 'Open Sans', sans-serif; color: var(--ink-2); margin-top: 8px; }
.prod p.line { margin-top: 10px; font-size: 15px; color: var(--ink-2); min-height: 3.4em; }
.prod .btn { margin-top: 16px; min-height: 44px; padding: 0 20px; font-size: 15px; }
.prod .btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- pillars ---------- */
.pillars { background: var(--stone); padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 7vw, 100px); }
.pillars-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 100px); align-items: center; max-width: 1240px; margin: 0 auto; }
.pillars-art { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.pillars-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pillars-copy h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 36px; }
.pillar-list { margin: 0; display: grid; gap: 0; }
.pillar-list div { padding: 22px 0; border-top: 1px solid var(--vein); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.pillar-list dt { font: 700 22px/1.35 var(--display); }
html[lang="en"] .pillar-list dt { font-weight: 400; font-size: 19px; }
.pillar-list dd { margin: 0; color: var(--ink-2); }
.free { max-width: 1240px; margin: clamp(60px, 8vw, 110px) auto 0; }
.free h3 { font-size: clamp(24px, 2.6vw, 34px); text-align: center; margin-bottom: 26px; }
.free-track { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.free-list { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; width: max-content; animation: drift 70s linear infinite; direction: ltr; }
.free-list li { font: 400 15px 'Open Sans', sans-serif; white-space: nowrap; padding: 10px 26px; border-inline-end: 1px solid var(--vein); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- academy ---------- */
.academy { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.academy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 100px); max-width: 1240px; margin: 0 auto; align-items: start; }
.academy-head { position: sticky; top: 100px; }
.academy-head h2 { font-size: clamp(36px, 4.6vw, 64px); }
.academy-head p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.academy-art { margin: 32px 0 0; }
/* the whole portrait, never cropped: as wide as the column, but short enough to stay fully on screen while the column is pinned */
.academy-art img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 400px); min-height: 320px; object-fit: contain; }
.course-list { list-style: none; margin: 0; padding: 0; }
.course { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--vein); }
.course:first-child { border-top: 1px solid var(--ink); }
.course h3 { font: 700 23px/1.35 var(--display); }
html[lang="en"] .course h3 { font-weight: 400; font-size: 20px; }
.course p { grid-column: 1; color: var(--ink-2); font-size: 15.5px; }
.course .tag { font-size: 13px; color: var(--gold-text); }
.course .btn { grid-row: 1 / span 3; grid-column: 2; min-height: 42px; padding: 0 20px; font-size: 14.5px; }

/* ---------- partner ---------- */
.partner { background: var(--ink); color: #F3EEE6; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.partner-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); max-width: 1240px; margin: 0 auto; align-items: start; }
.partner h2 { font-size: clamp(36px, 4.8vw, 68px); color: #fff; }
.partner-copy > p { margin-top: 18px; color: #CFC7BB; max-width: 30em; }
.partner-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.partner-points li { display: flex; gap: 14px; align-items: baseline; }
.partner-points li::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--gold); border-radius: 50% 0 50% 50%; transform: rotate(-45deg) translateY(1px); }
.partner-form { display: grid; gap: 18px; }
.partner-form label, .drawer-form label { display: grid; gap: 6px; font-size: 14px; }
.partner-form input:not([type="checkbox"]) { background: transparent; border: 0; border-bottom: 1px solid #5C554D; color: #fff; font: inherit; font-size: 17px; padding: 10px 0; border-radius: 0; }
.partner-form input:focus { outline: none; border-bottom-color: var(--gold); }
.partner-form :focus-visible { outline-color: var(--gold); }
.partner-form fieldset { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-form legend { font-size: 14px; margin-bottom: 10px; }
.chk { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px; border: 1px solid #5C554D; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.chk input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.chk:has(input:checked) { border-color: var(--gold); }
.partner .btn-ink { background: #F3EEE6; color: var(--ink); border-color: #F3EEE6; margin-top: 10px; }
.partner .btn-ink:hover { background: #fff; }
.form-err { color: #F2B8B0; font-size: 14px; }

.partner-sub { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 30px 0 0; }
/* ---------- instagram ---------- */
.insta { padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; }
.insta-link { display: block; text-align: center; text-decoration: none; padding: 0 var(--gutter); }
.insta-link h2 { font: 400 clamp(38px, 7vw, 104px)/1.05 'Cinzel', serif; letter-spacing: .02em; direction: ltr; }
.insta-link span { display: block; margin-top: 12px; color: var(--ink-2); }
.insta-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 12px; }
.insta-strip { margin-top: 52px; overflow: hidden; direction: ltr; }
.insta-track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.insta-strip:hover .insta-track { animation-play-state: paused; }
.insta-track img { flex: none; margin-right: 14px; width: clamp(220px, 30vw, 420px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #CFC7BB; padding: 64px var(--gutter) 40px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.foot img { width: 150px; height: auto; }
.foot-line { font: 400 18px 'Cinzel', serif; color: #E9E2D6; }
html[lang="ar"] .foot-line { font: 700 22px 'Amiri', serif; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: 6px 0; font-size: 15px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid #5C554D; }
.foot-links a:hover { border-color: var(--gold); }
.foot-small { font-size: 13px; color: #9E968B; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 17, .4); z-index: 60; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100vw); background: var(--marble); z-index: 61; display: flex; flex-direction: column; padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; box-shadow: 0 0 60px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head h2 { font-size: 28px; }
.drawer-note { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.bag-list { list-style: none; padding: 0; margin: 20px 0; display: grid; }
.bag-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--vein); }
.bag-item .drop { width: 22px; cursor: default; }
.bag-item .drop:hover { transform: rotate(-45deg); }
.bag-item .thumb { width: 30px; height: 38px; object-fit: cover; }
.bag-item b { font-weight: 500; display: block; }
.bag-item small { font: 400 12.5px 'Open Sans', sans-serif; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--vein); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 17px; }
.qty span { min-width: 24px; text-align: center; font: 600 14px 'Open Sans', sans-serif; }
.bag-item .rm { border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 20px; width: 32px; height: 32px; }
.bag-empty { color: var(--ink-2); margin: 24px 0; }
.drawer-form { display: grid; gap: 14px; margin-top: auto; padding-top: 18px; }
.drawer-form input { border: 1px solid var(--vein); background: #fff; border-radius: 4px; font: inherit; font-size: 16px; padding: 10px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .hero { align-items: end; padding-top: 52svh; padding-bottom: 60px; }
  /* phones: the bottle gets its own band at the top, so a longer intro text can never slide under it */
  .hero-canvas { top: 64px; height: calc(52svh - 64px); bottom: auto; }
  .hero-title { font-size: clamp(48px, 13vw, 64px); }
  .hero-copy { max-width: none; }
  .hero-hint { display: none; }
  .origin-pin { grid-template-columns: 1fr; min-height: 0; padding-top: 80px; }
  .origin-art { height: 56svh; }
  .lab-inner { padding-inline: 12px; }
  .lab-body { grid-template-columns: 1fr; gap: 0; }
  /* the chosen shade stays pinned under the menu while the grid scrolls beneath it */
  .lab-focus { position: sticky; top: 64px; order: -1; z-index: 3; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "d r b" "d c b"; text-align: start; justify-items: start; align-items: center; padding: 10px 14px; gap: 0 12px; box-shadow: 0 8px 22px rgba(40, 28, 14, .12); }
  .focus-shot { grid-area: d; width: 58px; max-width: none; margin: 0; }
  .focus-shot .hand { transform: scale(1.9); transform-origin: 66% 22%; }
  .focus-shot .bottle-shot { transform: scale(1.3); transform-origin: 50% 46%; }
  .shot-view { display: none; }
  .focus-shot .focus-drop { width: 34px; margin: -17px 0 0 -17px; box-shadow: 0 6px 12px rgba(60, 40, 20, .22); }
  .focus-range { grid-area: r; font-size: 14px; }
  .focus-code { grid-area: c; font-size: 22px; text-underline-offset: 5px; }
  .focus-spec, .focus-note { display: none; }
  .lab-focus .btn { grid-area: b; width: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .lab-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 16px 6px; gap: 16px 2px; }
  .cell { gap: 6px; padding: 2px 0; }
  .cell .drop { width: 30px; }
  .cell code { font-size: 11px; text-underline-offset: 3px; }
  .lab-tabs { gap: 6px; margin-bottom: 20px; }
  .tab { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .pillars-grid, .academy-grid, .partner-inner { grid-template-columns: 1fr; }
  .academy-head { position: static; }
  .academy-art img { width: 100%; max-height: none; min-height: 0; }
  .pillar-list div { grid-template-columns: 1fr; gap: 6px; }
  .sec-head .laurel { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .origin-facts { grid-template-columns: 1fr 1fr; }
  .course { grid-template-columns: 1fr; }
  .course .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .sec-head-start { flex-direction: column; align-items: flex-start; }
  .bag span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .origin-line .w { opacity: 1; }
  .origin-art { clip-path: none; }
  .origin-art img { transform: none; }
}
