@font-face {
  font-family: "Palestine";
  src: url("fonts/Palestine-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #101215;
  --surface: #16191d;
  --surface-2: #1d2126;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0f2;
  --muted: #9ba1a8;
  --dim: #6b7178;
  --cyan: #0db2d9;
  --cyan-2: #3ccaeb;
  --cyan-deep: #0a4d5e;
  --display: "Palestine", "IBM Plex Sans Arabic", serif;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --latin: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #04222b; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 2000;
  padding: 10px 16px; background: var(--cyan); color: #04222b; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display, .display-2, .display-3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0; }
.display { font-size: clamp(42px, 6.4vw, 104px); line-height: 1.25; }
.display-2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1.3; }
.display-3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.35; }
.accent { color: var(--cyan); }
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: .08em;
}
.kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 2; margin: 0; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: .28em; direction: ltr;
  font-family: var(--latin); font-size: 30px; line-height: 1; letter-spacing: -.02em; color: #fff;
}
.logo .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--cyan); flex: none; transition: transform .5s var(--ease-out); }
.logo:hover .dot { transform: scale(1.25); }
.logo b { font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), translate .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cyan); transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover { color: #04222b; border-color: var(--cyan); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-cyan { background: var(--cyan); border-color: var(--cyan); color: #04222b; }
.btn-cyan::before { background: #fff; }
.btn-cyan:hover { border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2); font-weight: 600; transition: gap .4s var(--ease-out), border-color .4s, color .4s;
}
.link-arrow svg { width: 20px; height: 20px; }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow:hover { gap: 20px; border-color: var(--cyan); color: var(--cyan); }

/* ---------- Page curtain (dropping curtains between pages) ---------- */
.curtain { display: none; }
.js .curtain { position: fixed; inset: 0; z-index: 1500; display: flex; pointer-events: none; }
.curtain span {
  flex: 1; height: 100%; background: var(--bg-2);
  border-bottom: 3px solid var(--cyan);
  transform: translateY(0);
  animation: curtain-failsafe 0s 4s forwards;
}
.curtain span:nth-child(even) { background: #0d0f12; }
.curtain-logo {
  position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s;
}
.curtain-logo .logo { font-size: clamp(40px, 6vw, 72px); }
.curtain-logo .logo .dot { animation: dot-pulse 1s var(--ease-out) infinite alternate; }
.curtain-bar {
  position: absolute; bottom: 38%; left: 50%; width: 180px; height: 1px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.curtain-bar::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform-origin: right; animation: load-bar 1s var(--ease) forwards; }
.page-ready .curtain span, .page-leaving .curtain span, .curtain-reset .curtain span { animation: none; }
.page-ready .curtain span {
  transform: translateY(101%);
  transition: transform .95s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.page-ready .curtain-logo { opacity: 0; }
.curtain-reset .curtain span { transform: translateY(-101%) !important; transition: none !important; }
.page-leaving .curtain { pointer-events: all; }
.page-leaving .curtain span {
  transform: translateY(0);
  transition: transform .75s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.page-leaving .curtain-logo { opacity: 0; }
@keyframes curtain-failsafe { to { transform: translateY(101%); } }
@keyframes dot-pulse { to { transform: scale(1.35); } }
@keyframes load-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; inset-inline: 0; z-index: 1200; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right;
}
[dir="ltr"] .progress { transform-origin: left; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000; height: var(--header-h);
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(11, 12, 14, .78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.hdr.hidden { transform: translateY(-100%); }
.hdr-inner { display: flex; align-items: center; gap: 40px; height: 100%; }
.nav { margin-inline-start: auto; }
.nav > ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 0; background: none; color: #d6dade; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown (curtain drop) */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; width: 560px; margin-inline-start: -280px;
  display: grid; gap: 4px; padding: 10px;
  background: rgba(20, 23, 27, .97); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  clip-path: inset(0 0 100% 0 round 18px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.drop.open { clip-path: inset(0 0 0 0 round 18px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.drop::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.drop-item {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 18px; padding: 10px;
  border-radius: 12px; opacity: 0; transform: translateY(-10px);
  transition: background-color .3s, opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.drop.open .drop-item { opacity: 1; transform: none; }
.drop.open .drop-item:nth-child(1) { transition-delay: .12s; }
.drop.open .drop-item:nth-child(2) { transition-delay: .18s; }
.drop.open .drop-item:nth-child(3) { transition-delay: .24s; }
.drop-item:hover { background: rgba(255, 255, 255, .05); }
.drop-item img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; transition: transform .6s var(--ease-out); }
.drop-item:hover img { transform: scale(1.06); }
.drop-item b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.drop-item small { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.drop-item .arr { width: 20px; height: 20px; color: var(--dim); transition: color .3s, transform .4s var(--ease-out); }
[dir="rtl"] .drop-item .arr { transform: scaleX(-1); }
.drop-item:hover .arr { color: var(--cyan); transform: scaleX(-1) translateX(-4px); }

.burger {
  display: none; position: relative; width: 48px; height: 48px; margin-inline-start: auto;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; z-index: 1101;
}
.burger span {
  position: absolute; inset-inline-start: 14px; width: 18px; height: 1.6px; background: #fff;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Mobile menu: curtains drop, links rise */
.mnav { position: fixed; inset: 0; z-index: 990; display: flex; visibility: hidden; transition: visibility 0s .9s; }
.mnav-strips { position: absolute; inset: 0; display: flex; }
.mnav-strips span {
  flex: 1; background: var(--bg-2); transform: translateY(-101%);
  transition: transform .7s var(--ease); transition-delay: calc((3 - var(--i)) * 60ms);
}
.mnav-strips span:nth-child(even) { background: #0d0f12; }
.mnav-body {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 36px;
  width: 100%; padding: 110px var(--gutter) 40px;
}
.mnav ol { margin: 0; padding: 0; list-style: none; }
.mnav li { overflow: hidden; }
.mnav li a {
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
  font-family: var(--display); font-size: clamp(34px, 9vw, 52px); line-height: 1.45;
  transform: translateY(110%); transition: transform .7s var(--ease-out), color .3s;
}
.mnav li a small { font-family: var(--latin); font-size: 13px; color: var(--cyan); }
.mnav li a:hover { color: var(--cyan); }
.mnav-foot { display: grid; gap: 6px; color: var(--muted); font-size: 15px; opacity: 0; transition: opacity .5s; }
.mnav-foot a { color: #fff; justify-self: start; }
.menu-open .mnav { visibility: visible; transition: visibility 0s; }
.menu-open .mnav-strips span { transform: translateY(0); transition-delay: calc(var(--i) * 60ms); }
.menu-open .mnav li a { transform: none; transition-delay: calc(.35s + var(--i) * 60ms); }
.menu-open .mnav-foot { opacity: 1; transition-delay: .7s; }

/* ---------- Side buttons ---------- */
.side-actions {
  position: fixed; inset-inline-end: 22px; bottom: 26px; z-index: 900;
  display: grid; gap: 10px;
}
.side-btn {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(22, 25, 29, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; cursor: pointer; transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease-out);
}
.side-btn > svg { width: 22px; height: 22px; }
.side-btn:hover { background: var(--cyan); border-color: var(--cyan); color: #04222b; transform: translateY(-2px); }
.side-btn.wa { background: var(--cyan); border-color: var(--cyan); color: #04222b; }
.side-btn.wa::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--cyan);
  animation: ping 2.4s var(--ease-out) infinite;
}
.side-btn .tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; padding: 7px 14px;
  background: #fff; color: #111; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(0, -50%) translateX(10px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out);
}
[dir="rtl"] .side-btn .tip { transform: translate(0, -50%) translateX(-10px); }
.side-btn:hover .tip, .side-btn:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.to-top { opacity: 0; transform: translateY(10px); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 157; stroke-dashoffset: 157; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.side-dots {
  position: fixed; inset-inline-start: 22px; top: 50%; z-index: 900; transform: translateY(-50%);
  display: grid; gap: 14px;
}
@media (max-width: 1439px) { .side-dots { display: none; } }
.side-dots a { position: relative; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .28); transition: height .5s var(--ease-out), background-color .3s; }
.side-dots a.active { height: 30px; background: var(--cyan); }
.side-dots a::after {
  content: attr(data-label); position: absolute; inset-inline-start: 22px; top: 50%;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #111; font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(-50%) translateX(8px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out);
}
[dir="rtl"] .side-dots a::after { transform: translateY(-50%) translateX(-8px); }
.side-dots a:hover::after { opacity: 1; transform: translateY(-50%); }

/* ---------- Reveal animations (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .22em; margin-block: -.22em; padding-inline: .04em; margin-inline: -.04em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d) * 65ms); }
.js .split.in .w > span { transform: none; }

.curtain-img { position: relative; overflow: hidden; }
.curtain-img img { width: 100%; height: 100%; object-fit: cover; }
.js .curtain-img::before, .js .curtain-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; transform-origin: bottom;
  transition: transform 1.15s var(--ease);
}
.js .curtain-img::before { background: var(--cyan); transition-delay: .15s; }
.js .curtain-img::after { background: var(--bg-2); }
.js .curtain-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
.js .curtain-img.in::before, .js .curtain-img.in::after { transform: scaleY(0); }
.js .curtain-img.in img { transform: scale(1); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 60px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; inset-inline-start: -10%; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(13, 178, 217, .16), transparent); pointer-events: none;
}
.hero-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.hero-side { display: grid; gap: 28px; padding-bottom: 14px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.panels { display: flex; gap: 10px; height: clamp(380px, 60vh, 640px); padding-inline: var(--gutter); }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 6px; isolation: isolate;
  transition: flex .9s var(--ease-out);
}
.panels:hover .panel { flex: .75; }
.panels .panel:hover, .panels .panel:focus-visible { flex: 2.1; }
.panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); filter: grayscale(.4) brightness(.62);
  transition: transform 1.4s var(--ease-out), filter .9s var(--ease-out);
}
.panel:hover img, .panel:focus-visible img { transform: scale(1.02); filter: none; }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 7, 9, .92) 0%, rgba(6, 7, 9, .25) 55%, transparent 80%);
}
.panel-num { position: absolute; top: 24px; inset-inline-start: 26px; font-family: var(--latin); font-size: 14px; font-weight: 800; color: var(--cyan); letter-spacing: .12em; }
.panel-body { position: absolute; inset-inline: 26px; bottom: 28px; display: grid; gap: 8px; }
.panel-title { font-family: var(--display); font-size: clamp(36px, 3.6vw, 60px); line-height: 1.3; white-space: nowrap; }
.panel-desc, .panel-more {
  max-width: 34em; color: #d4d8dc; font-size: 15.5px; line-height: 1.8;
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease-out);
}
.panel-more { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-weight: 600; }
.panel-more svg { width: 18px; height: 18px; }
[dir="rtl"] .panel-more svg { transform: scaleX(-1); }
.panel:hover .panel-desc, .panel:hover .panel-more, .panel:focus-visible .panel-desc, .panel:focus-visible .panel-more { opacity: 1; transform: none; transition-delay: .2s; }
.js .panels .panel { clip-path: inset(100% 0 0 0 round 6px); transition: flex .9s var(--ease-out), clip-path 1.2s var(--ease); }
.js .panels.in .panel { clip-path: inset(0 0 0 0 round 6px); }
.js .panels.in .panel:nth-child(2) { transition-delay: 0s, .12s; }
.js .panels.in .panel:nth-child(3) { transition-delay: 0s, .24s; }

.scroll-hint { display: flex; justify-content: center; padding: 34px 0 10px; color: var(--dim); font-size: 13px; letter-spacing: .1em; }
.scroll-hint span { position: relative; padding-top: 44px; }
.scroll-hint span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; direction: ltr; padding: 38px 0; border-block: 1px solid var(--line); user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track > * { flex: none; }
.marquee .word {
  padding-inline: 34px; font-family: var(--display); font-size: clamp(56px, 9vw, 140px); line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .32);
}
.marquee .word.fill { color: var(--cyan); -webkit-text-stroke: 0; }
.marquee .star { align-self: center; width: clamp(24px, 3vw, 44px); height: clamp(24px, 3vw, 44px); color: var(--cyan); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.single { grid-template-columns: 1fr; max-width: 820px; }

/* About + counters */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 0; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-num { display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-content: flex-end; font-family: var(--display); font-size: clamp(52px, 6vw, 96px); line-height: 1; }
[dir="ltr"] .stat-num { justify-content: flex-start; }
.stat-num .plus { color: var(--cyan); font-size: .6em; }
.stat-label { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* Specialty showcase */
.spec { padding: clamp(70px, 9vw, 130px) 0; }
.spec + .spec { padding-top: 0; }
.spec-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.spec.flip .spec-media { order: 2; }
.spec-media { position: relative; }
.spec-media .curtain-img { aspect-ratio: 4 / 5; border-radius: 6px; }
.spec-media .mini {
  position: absolute; width: 42%; aspect-ratio: 1; bottom: -8%; inset-inline-end: -8%;
  border: 8px solid var(--bg); border-radius: 6px;
}
.spec.flip .spec-media .mini { inset-inline-end: auto; inset-inline-start: -8%; }
.spec-num {
  display: block; margin-bottom: 8px; font-family: var(--display); font-size: clamp(80px, 10vw, 150px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(13, 178, 217, .6);
}
.spec-tag { margin: 10px 0 22px; color: var(--cyan); font-size: 19px; font-weight: 600; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 30px 0 38px; padding: 0; list-style: none; }
.spec-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

/* Work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; padding: 11px 22px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: #cfd3d7; font-size: 15px; font-weight: 500; cursor: pointer; transition: color .35s, border-color .35s, background-color .35s;
}
.chip sup { font-family: var(--latin); font-size: 11px; color: var(--cyan); margin-inline-start: 4px; }
.chip:hover { border-color: #fff; color: #fff; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b0c0e; }
.gallery { columns: 3 300px; column-gap: 14px; }
.tile {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; overflow: hidden; break-inside: avoid;
  border: 0; border-radius: 6px; background: var(--surface); cursor: zoom-in; text-align: start;
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.tile.is-hiding { opacity: 0; transform: scale(.94); }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: auto; transform: scale(1.001); transition: transform 1.1s var(--ease-out), filter .6s; }
.tile:hover img { transform: scale(1.07); filter: brightness(.55); }
.tile-cap {
  position: absolute; inset-inline: 20px; bottom: 18px; display: grid; gap: 2px;
  opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease-out);
}
.tile-cap small { color: var(--cyan); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.tile-cap span { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.6; }
.tile-plus {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--cyan); color: #04222b; transform: scale(0); transition: transform .5s var(--ease-out);
}
.tile-plus svg { width: 24px; height: 24px; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile:hover .tile-plus { transform: scale(1); }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; } .tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); } .tile-cap { z-index: 1; } }
.gallery-more { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 50px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1300; display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; transition: visibility 0s .6s; }
.lightbox.open { visibility: visible; transition: visibility 0s; }
.lb-bg { position: absolute; inset: 0; background: rgba(6, 7, 9, .96); clip-path: inset(0 0 100% 0); transition: clip-path .65s var(--ease); }
.lightbox.open .lb-bg { clip-path: inset(0); }
.lb-top, .lb-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); opacity: 0; transition: opacity .4s; }
.lightbox.open .lb-top, .lightbox.open .lb-bottom { opacity: 1; transition-delay: .35s; }
.lb-count { font-family: var(--latin); font-size: 14px; color: var(--muted); letter-spacing: .1em; direction: ltr; }
.lb-count b { color: #fff; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 90px; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px;
  opacity: 0; transform: scale(.94); transition: opacity .5s, transform .7s var(--ease-out);
}
.lightbox.open .lb-stage img.ready { opacity: 1; transform: none; }
.lb-cap { color: #e3e6e9; font-size: 16px; }
.lb-cap small { display: block; color: var(--cyan); font-size: 13px; }
.lb-btn {
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s;
}
.lb-btn:hover { background: var(--cyan); border-color: var(--cyan); color: #04222b; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: var(--gutter); }
.lb-next { inset-inline-end: var(--gutter); }
[dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { position: relative; padding: 0 0 0 30px; padding-inline: 0 30px; }
.step-num { display: block; font-family: var(--display); font-size: clamp(64px, 7vw, 110px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .25); transition: color .6s, -webkit-text-stroke-color .6s; }
.step:hover .step-num { color: var(--cyan); -webkit-text-stroke-color: var(--cyan); }
.step-line { position: relative; height: 1px; margin: 26px 0 26px; background: var(--line); }
.step-line::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform 1.2s var(--ease); }
[dir="ltr"] .step-line::after { transform-origin: left; }
.step.in .step-line::after { transform: scaleX(1); }
.step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.js .steps .step:nth-child(2) .step-line::after { transition-delay: .2s; }
.js .steps .step:nth-child(3) .step-line::after { transition-delay: .4s; }
.js .steps .step:nth-child(4) .step-line::after { transition-delay: .6s; }

/* Clients */
.clients-band { padding: 26px 0; }
.clients-band .client { direction: rtl; unicode-bidi: isolate; padding-inline: 40px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; color: #c9cdd2; white-space: nowrap; }
.clients-band .client small { color: var(--cyan); font-size: .5em; margin-inline-start: 8px; font-weight: 500; }
.clients-band .sep { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* CTA */
.cta { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 200px) 0; text-align: center; isolation: isolate; }
.cta-bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.28); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(13, 178, 217, .22), transparent 70%); }
.cta .display { max-width: 16ch; margin: 0 auto 26px; }
.cta .lead { max-width: 560px; margin: 0 auto 42px; }
.cta .hero-ctas { justify-content: center; }

/* Footer */
.footer { padding: 90px 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { margin: 0 0 18px; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer ul a { color: #d4d8dc; transition: color .3s; }
.footer ul a:hover { color: var(--cyan); }
.footer-about p { max-width: 30em; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 70px; padding-top: 26px; padding-inline-end: 76px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.tagline { direction: ltr; font-family: var(--latin); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Specialty pages ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 clamp(70px, 8vw, 120px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -30%; inset-inline-end: -20%; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(13, 178, 217, .14), transparent); pointer-events: none;
}
.crumbs { display: flex; gap: 10px; margin-bottom: 30px; color: var(--dim); font-size: 14px; }
.crumbs a:hover { color: var(--cyan); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.page-hero .display { font-size: clamp(64px, 10vw, 160px); line-height: 1.4; }
.page-hero .spec-tag { margin-top: 14px; font-size: clamp(19px, 1.8vw, 24px); }
.page-hero .lead { margin-bottom: 36px; }
.page-hero-media { position: relative; display: grid; grid-template-columns: 1fr .62fr; gap: 12px; height: clamp(420px, 70vh, 680px); }
.page-hero-media .curtain-img { border-radius: 6px; height: 100%; }
.page-hero-media .col { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.page-hero-media .col .curtain-img:nth-child(2)::before { transition-delay: .35s; }
.page-hero-media .col .curtain-img:nth-child(2)::after { transition-delay: .2s; }

/* Services list with floating preview */
.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: svc; }
.svc {
  position: relative; display: grid; grid-template-columns: 90px 1fr 1.1fr 40px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); cursor: default;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, rgba(13, 178, 217, .07), transparent);
  opacity: 0; transition: opacity .5s;
}
.svc:hover::before { opacity: 1; }
.svc-n { font-family: var(--latin); font-weight: 800; font-size: 14px; color: var(--cyan); letter-spacing: .12em; }
.svc h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.35; transition: transform .6s var(--ease-out), color .4s; }
.svc:hover h3 { color: var(--cyan); transform: translateX(-12px); }
[dir="ltr"] .svc:hover h3 { transform: translateX(12px); }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.svc .arr { width: 26px; height: 26px; color: var(--dim); transition: color .4s, transform .5s var(--ease-out); }
[dir="rtl"] .svc .arr { transform: scaleX(-1) rotate(-45deg); }
.svc:hover .arr { color: var(--cyan); transform: scaleX(-1) rotate(0deg); }
.hover-preview {
  position: fixed; top: 0; left: 0; z-index: 800; width: 300px; height: 220px; overflow: hidden; border-radius: 8px;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, transform .5s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.hover-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Next specialty */
.next-spec { position: relative; display: block; overflow: hidden; padding: clamp(90px, 12vw, 170px) 0; border-top: 1px solid var(--line); text-align: center; isolation: isolate; }
.next-spec img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) grayscale(.3); transform: scale(1.15); opacity: 0; transition: opacity .8s, transform 1.4s var(--ease-out); }
.next-spec:hover img { opacity: 1; transform: scale(1); }
.next-spec small { display: block; margin-bottom: 10px; color: var(--cyan); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.next-spec .display { display: block; font-size: clamp(64px, 12vw, 190px); line-height: 1.2; transition: color .5s; }
.next-spec:hover .display { color: var(--cyan); }
.next-spec .circle {
  display: inline-grid; place-items: center; width: 84px; height: 84px; margin-top: 20px; border: 1px solid var(--line-2); border-radius: 50%;
  transition: background-color .4s, border-color .4s, color .4s, transform .6s var(--ease-out);
}
.next-spec .circle svg { width: 28px; height: 28px; }
[dir="rtl"] .next-spec .circle svg { transform: scaleX(-1); }
.next-spec:hover .circle { background: var(--cyan); border-color: var(--cyan); color: #04222b; transform: scale(1.1); }

/* ---------- Gifts store ---------- */
.nav-link .new {
  margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--cyan); color: #04222b; font-size: 11px; font-weight: 700; line-height: 1.6;
}
.cart-btn {
  position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.cart-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.cart-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--cyan); color: #04222b; font: 800 11px/20px var(--latin); text-align: center;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.badge.show { transform: scale(1); }
.badge.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.4); } }
.side-btn.cart-side { display: none; }
.side-btn.cart-side.has-items { display: grid; }

.store-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.store-hero::before {
  content: ""; position: absolute; top: -30%; inset-inline-start: -15%; width: 75vw; height: 75vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(13, 178, 217, .16), transparent); pointer-events: none;
}
.store-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.store-hero .display { font-size: clamp(54px, 7.6vw, 120px); line-height: 1.35; }
.store-hero .lead { margin: 18px 0 34px; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.perk { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: #d4d8dc; font-size: 14px; }
.perk svg { width: 16px; height: 16px; color: var(--cyan); }
.float-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.float-tile {
  display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(80% 80% at 50% 25%, rgba(13, 178, 217, .14), transparent 70%), linear-gradient(150deg, var(--surface-2), var(--surface));
  color: var(--cyan); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.float-tile:nth-child(3n + 2) { translate: 0 34px; }
.float-tile svg { width: 44%; height: 44%; stroke-width: 1.1; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.store-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.store-step { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.store-step b { font-family: var(--latin); font-weight: 800; font-size: 13px; color: var(--cyan); line-height: 1.9; }
.store-step h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.store-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; max-width: 440px; }
.search input {
  width: 100%; padding: 14px 18px; padding-inline-start: 50px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: #fff; font: inherit; font-size: 15px; transition: border-color .3s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--cyan); }
.search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); }
.result-count { color: var(--dim); font-size: 14px; }
.result-count b { color: #fff; font-family: var(--latin); }
.store-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
  transition: border-color .4s, transform .6s var(--ease-out);
}
.product:hover { border-color: rgba(13, 178, 217, .45); transform: translateY(-6px); }
.product[hidden] { display: none; }
.product.pop { animation: pop .7s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.product-media {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  border: 0; cursor: pointer; color: var(--cyan);
  background: radial-gradient(80% 80% at 50% 30%, rgba(13, 178, 217, .15), transparent 70%), linear-gradient(160deg, #1b1f24, #121418);
}
.product-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-ico { position: relative; width: 36%; height: 36%; stroke-width: 1.1; transition: transform .8s var(--ease-out); }
.product:hover .product-ico { transform: scale(1.12) rotate(-6deg); }
.product-cat {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 3px 11px; border-radius: 999px;
  background: rgba(11, 12, 14, .72); color: #cfd3d7; font-size: 12px; line-height: 1.8;
}
.product-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 20px 22px; }
.product-body h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.5; }
.product-body > p { flex: 1; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.product-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
}
.product-meta b { color: #fff; font-family: var(--latin); }
.swatches { display: flex; gap: 5px; }
.swatches span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.product-add { justify-content: center; margin-top: 4px; }
.product-add svg { width: 16px; height: 16px; }
.store-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Product modal */
.modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; visibility: hidden; transition: visibility 0s .7s; }
.modal.open { visibility: visible; transition: visibility 0s; }
.modal-bg { position: absolute; inset: 0; background: rgba(6, 7, 9, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.modal.open .modal-bg { opacity: 1; }
.modal-card {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2);
  clip-path: inset(0 0 100% 0 round 22px); transition: clip-path .7s var(--ease);
}
.modal.open .modal-card { clip-path: inset(0 0 0 0 round 22px); }
.modal-media { aspect-ratio: auto; min-height: 340px; cursor: default; }
.modal-media .product-ico { width: 42%; height: 42%; }
.modal-body { display: flex; flex-direction: column; gap: 18px; padding: 34px; }
.modal-body .product-cat { position: static; align-self: flex-start; }
.modal-body h3 { margin: -6px 0 0; }
.pm-desc { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 44px; height: 44px; background: rgba(11, 12, 14, .6); }
.opt { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend, .opt > label { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 600; }
.opt small { margin-inline-start: 6px; color: var(--dim); font-weight: 400; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  color: #d4d8dc; font-size: 14px; transition: border-color .3s, background-color .3s, color .3s;
}
.radio span i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.radio input:checked + span { border-color: var(--cyan); background: rgba(13, 178, 217, .12); color: #fff; }
.radio input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; width: max-content; overflow: hidden; border: 1px solid var(--line-2); border-radius: 999px; direction: ltr; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.qty button:hover { background: rgba(255, 255, 255, .06); color: var(--cyan); }
.qty input {
  width: 90px; height: 44px; border: 0; border-inline: 1px solid var(--line-2); background: transparent; color: #fff;
  font: 600 16px var(--latin); text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[aria-invalid="true"] { color: #ff8a8a; }
.pm-error { margin: 0; color: #ff9a9a; font-size: 13.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #cfd3d7; font-size: 14px; }
.field input, .field textarea, .opt textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  color: #fff; font: inherit; font-size: 15px; resize: vertical; transition: border-color .3s; color-scheme: dark;
}
.field input:focus, .field textarea:focus, .opt textarea:focus { outline: none; border-color: var(--cyan); }
.field input[aria-invalid="true"] { border-color: #ff6b6b; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 1300; visibility: hidden; transition: visibility 0s .7s; }
.drawer.open { visibility: visible; transition: visibility 0s; }
.drawer-bg { position: absolute; inset: 0; background: rgba(6, 7, 9, .72); opacity: 0; transition: opacity .5s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(470px, 100%);
  border-inline-start: 1px solid var(--line); background: var(--bg-2);
  transform: translateX(-101%); transition: transform .7s var(--ease);
}
[dir="ltr"] .drawer-panel { transform: translateX(101%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.4; }
.drawer-count { color: var(--cyan); font-family: var(--latin); font-size: 15px; vertical-align: middle; }
.drawer-head .lb-btn { width: 44px; height: 44px; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 24px; }
.cart-list { margin: 0 0 18px; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); color: var(--cyan); }
.cart-thumb svg { width: 26px; height: 26px; }
.cart-info { min-width: 0; }
.cart-info b { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; }
.cart-info small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.cart-actions { display: grid; justify-items: end; gap: 6px; }
.cart-item .qty button { width: 32px; height: 32px; font-size: 16px; }
.cart-item .qty input { width: 58px; height: 32px; font-size: 14px; }
.cart-remove { padding: 0; border: 0; background: none; color: var(--dim); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: #ff8a8a; }
.cart-empty { padding: 50px 10px; text-align: center; color: var(--muted); }
.cart-empty svg { display: block; width: 54px; height: 54px; margin: 0 auto 14px; color: var(--dim); }
.cart-empty .btn { margin-top: 18px; }
.cart-form h3 { margin: 8px 0 16px; font-size: 18px; font-weight: 600; }
.form-note { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.form-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 107, 107, .1); color: #ff9a9a; font-size: 14px; }
.sent-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(13, 178, 217, .4);
  border-radius: 12px; background: rgba(13, 178, 217, .08); font-size: 14px;
}
.sent-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }
.sent-note button { padding: 0; border: 0; background: none; color: var(--cyan); text-decoration: underline; cursor: pointer; font-size: 13.5px; }
.drawer-foot { display: grid; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--line); }
.drawer-foot .btn { justify-content: center; }
.drawer-foot .btn:disabled { opacity: .45; pointer-events: none; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 1250; display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 10px 10px 10px 20px; padding-inline: 20px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(22, 25, 29, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  font-size: 14.5px; transform: translate(-50%, 160%); transition: transform .6s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { flex: none; width: 18px; height: 18px; color: var(--cyan); }
.toast .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

/* Store teaser on the home page */
.store-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.store-teaser .lead { margin: 22px 0 34px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .curtain { display: none; }
  .js .reveal, .js .split .w > span, .js .curtain-img img { opacity: 1; transform: none; }
  .js .curtain-img::before, .js .curtain-img::after { display: none; }
  .js .panels .panel { clip-path: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
  .hero-head, .section-head, .about-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec.flip .spec-media { order: 0; }
  .spec-media .mini { width: 36%; inset-inline-end: 4% !important; inset-inline-start: auto !important; bottom: -6%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-inline-start: 0; border-inline-start: 0; }
  .stat:nth-child(even) { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-dots { display: none; }
  .svc { grid-template-columns: 60px 1fr 30px; }
  .svc p { grid-column: 2 / 3; }
  .svc .arr { grid-row: 1; grid-column: 3; }
  .hdr-inner { gap: 12px; }
  .hdr-inner .cart-btn { margin-inline-start: auto; }
  .hdr-inner .cart-btn ~ .burger { margin-inline-start: 0; }
  .store-hero-grid, .store-teaser-grid { grid-template-columns: 1fr; }
  .store-steps { grid-template-columns: repeat(2, 1fr); }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .panel, .panels:hover .panel, .panels .panel:hover { flex: none; height: 250px; }
  .panel img { filter: brightness(.6); }
  .panel-desc { opacity: 1; transform: none; }
  .panel-more { display: none; }
  .spec-list { grid-template-columns: 1fr; }
  .stat-num { font-size: 54px; }
  .stat:nth-child(even) { padding-inline-start: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .lb-stage { padding: 0 12px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lb-bottom { padding-inline: 90px; }
  .page-hero-media { height: 420px; }
  .svc { grid-template-columns: 44px 1fr; gap: 14px 16px; padding: 26px 0; }
  .svc .arr { display: none; }
  .store-steps, .field.two { grid-template-columns: 1fr; }
  .float-grid { gap: 10px; }
  .modal { padding: 10px; }
  .modal-body { padding: 24px 20px; }
  .modal-media { min-height: 160px; }
  .side-actions { inset-inline-end: 14px; bottom: 16px; }
  .side-btn { width: 48px; height: 48px; }
  .side-btn .tip { display: none; }
}
