/* ==========================================================
   dr.glo — brand site
   ========================================================== */
:root {
  --navy-950: #040c38;
  --navy-900: #071660;
  --navy: #0b228a;
  --royal: #1740c4;
  --blue: #2f6fe0;
  --sky: #e7f2ff;
  --ice: #f5f9ff;
  --white: #ffffff;
  --ink: #0b1640;
  --muted: #56628a;
  --line: #dbe5f5;
  --gold: #b8893a;
  --gold-soft: #f3e6cc;
  --gold-text: #86601c; /* gold dark enough for small text on light backgrounds (≥4.5:1) */
  --ok: #19a463;
  --bad: #e2475c;
  --iri: linear-gradient(110deg, #9fe8ff 0%, #c9a8ff 35%, #ffb4da 65%, #fff1a6 100%);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px -18px rgba(11, 34, 138, .35);
  --shadow-sm: 0 8px 24px -10px rgba(11, 34, 138, .25);
  --font-display: "Quicksand", "Tajawal", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Tajawal", system-ui, sans-serif;
  --font-script: "Dancing Script", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}
html[lang="ar"] {
  --font-display: "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-script: "Tajawal", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ice);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 1em; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--royal); margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light { color: #bcd3ff; }
.eyebrow--center { display: flex; justify-content: center; }
.script { font-family: var(--font-script); font-size: 1.6rem; color: var(--gold-text); margin-bottom: .3em; }
.script--light { color: #f0d9a8; }
.iridescent {
  background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 0; font-weight: 700; font-size: .98rem;
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--primary { background: linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; box-shadow: var(--shadow-sm); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { box-shadow: var(--shadow); } }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: rgba(255,255,255,.16); } }
.btn--glow { position: relative; background: var(--navy); color: #fff; isolation: isolate; }
.btn--glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--iri);
  z-index: -1; filter: blur(6px); opacity: .7; transition: opacity .3s;
}
@media (hover: hover) and (pointer: fine) { .btn--glow:hover::before { opacity: 1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--iri); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .scroll-progress span { transform-origin: right; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav__inner { width: min(1280px, 100% - 32px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 52px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); transition: height .3s; }
.nav__links { display: flex; gap: 6px; margin-inline: auto; }
.nav__links a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
  transition: background .25s, color .25s;
}
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: rgba(255,255,255,.14); } }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-family: "Tajawal", var(--font-body); font-size: .9rem; transition: background .25s, color .25s, border-color .25s;
}
@media (hover: hover) and (pointer: fine) { .lang-toggle:hover { background: rgba(255,255,255,.15); } }
a.lang-toggle { text-decoration: none; display: inline-flex; align-items: center; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 6px 30px -12px rgba(11,34,138,.25); }
.nav.is-scrolled .nav__logo img { height: 44px; }
.nav.is-scrolled .nav__links a { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav.is-scrolled .nav__links a:hover { background: var(--sky); } }
.nav.is-scrolled .lang-toggle { color: var(--navy); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .nav.is-scrolled .lang-toggle:hover { background: var(--sky); } }
.nav.is-scrolled .nav__burger { background: var(--sky); }
.nav.is-scrolled .nav__burger span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 700px at 80% 110%, rgba(47,111,224,.75), transparent 60%),
    radial-gradient(900px 600px at 10% -10%, rgba(120,90,255,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy) 100%);
  padding: calc(var(--nav-h) + 40px) 0 140px;
}
.hero::after { /* soft star dust like the logo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 20% 30%, #9fc2ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 70% 20%, #c9b5ff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, #9fe8ff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 85% 60%, #fff 50%, transparent 51%);
  background-size: 340px 340px, 420px 420px, 260px 260px, 500px 500px;
}
.hero__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: crosshair; }
.hero__inner {
  position: relative; z-index: 2; width: min(1200px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 700; margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #d4e1ff; max-width: 540px; margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__hint { margin-top: 36px; font-size: .9rem; color: #a9c0f5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--iri); box-shadow: 0 0 0 0 rgba(201,168,255,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(201,168,255,0); } 100% { box-shadow: 0 0 0 0 rgba(201,168,255,0); } }
.pop-count { background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 12px; color: #fff; font-weight: 700; }
.pop-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }

.hero__stack { position: relative; height: clamp(340px, 42vw, 520px); perspective: 1200px; pointer-events: auto; }
.stack-card {
  position: absolute; width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; top: 50%; left: 50%;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .8s var(--ease); will-change: transform;
}
.stack-card--1 { transform: translate(-50%,-50%) translate(-34%, -6%) rotate(-11deg) scale(.86); }
.stack-card--2 { transform: translate(-50%,-50%) translate(34%, -2%) rotate(10deg) scale(.86); }
.stack-card--3 { transform: translate(-50%,-50%) translate(0, 4%) rotate(-1deg); z-index: 2; animation: floaty 6s ease-in-out infinite; }
@media (hover: hover) and (pointer: fine) { .hero__stack:hover .stack-card--1 { transform: translate(-50%,-50%) translate(-52%, -10%) rotate(-16deg) scale(.86); } }
@media (hover: hover) and (pointer: fine) { .hero__stack:hover .stack-card--2 { transform: translate(-50%,-50%) translate(52%, -6%) rotate(15deg) scale(.86); } }
@keyframes floaty { 50% { translate: 0 -14px; } }

.hero__scroll { position: absolute; bottom: 92px; left: 50%; translate: -50% 0; z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 2; fill: var(--ice); }

/* ---------- Values marquee ---------- */
.values { padding: 22px 0 10px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.values .marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--navy-900); white-space: nowrap; }
.values .marquee__track i { width: 18px; height: 18px; border-radius: 50%; background: var(--iri); flex: none; box-shadow: inset -3px -3px 6px rgba(255,255,255,.7); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sheet section ---------- */
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.dissolve {
  background: linear-gradient(180deg, #fff, var(--sky)); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden;
}
.dissolve__stage { position: relative; height: 340px; margin-bottom: 24px; }
.dissolve__basin {
  position: absolute; left: 10%; right: 10%; bottom: 0; height: 200px; border-radius: 0 0 120px 120px / 0 0 90px 90px;
  border: 3px solid rgba(23,64,196,.18); border-top: 0; overflow: hidden; background: rgba(255,255,255,.5);
}
.dissolve__water {
  position: absolute; inset: 30px 0 0; background: linear-gradient(180deg, #9cc8ff, #3f7fe8);
  transition: filter 1.5s ease;
}
.dissolve__water::before { /* surface wave */
  content: ""; position: absolute; left: -50%; top: -14px; width: 200%; height: 28px;
  background: radial-gradient(28px 14px at 28px 14px, #9cc8ff 98%, transparent) 0 0 / 56px 28px repeat-x;
  animation: wave 3s linear infinite;
}
@keyframes wave { to { transform: translateX(56px); } }
.dissolve__foam { position: absolute; inset: -6px 0 auto; height: 40px; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle at 10% 50%, #fff 12px, transparent 13px), radial-gradient(circle at 25% 40%, #fff 16px, transparent 17px),
    radial-gradient(circle at 42% 55%, #fff 13px, transparent 14px), radial-gradient(circle at 58% 40%, #fff 18px, transparent 19px),
    radial-gradient(circle at 75% 55%, #fff 14px, transparent 15px), radial-gradient(circle at 90% 45%, #fff 12px, transparent 13px); }
.dissolve.is-foamy .dissolve__foam { opacity: .95; }
.dissolve.is-foamy .dissolve__water { filter: saturate(.75) brightness(1.08); }
.dissolve__sheet {
  position: absolute; left: 50%; top: 10px; width: 150px; height: 100px; margin-left: -75px; border-radius: 6px;
  background: #fff; box-shadow: 0 12px 30px -10px rgba(11,34,138,.35); z-index: 2;
  transform: rotate(-6deg); animation: hover-sheet 3.4s ease-in-out infinite;
}
.dissolve__sheet span { position: absolute; inset: 0; border-radius: inherit; opacity: .9;
  background-image: radial-gradient(#e3b480 1.2px, transparent 1.6px), radial-gradient(#e9c79f 1px, transparent 1.4px);
  background-size: 14px 13px, 9px 11px; background-position: 0 0, 5px 6px; }
@keyframes hover-sheet { 50% { transform: rotate(-2deg) translateY(-10px); } }
.dissolve.is-dropping .dissolve__sheet { animation: drop 1.1s cubic-bezier(.5,0,.75,0) forwards; }
.dissolve.is-dissolving .dissolve__sheet { animation: melt 2.2s ease-out forwards; top: 190px; }
@keyframes drop { to { top: 190px; transform: rotate(4deg) scaleY(.9); } }
@keyframes melt {
  0% { transform: rotate(4deg) scaleY(.9); opacity: 1; filter: blur(0); }
  40% { transform: rotate(10deg) scale(.9, .5); opacity: .8; filter: blur(1px); border-radius: 40%; }
  100% { transform: rotate(18deg) scale(.3, .1); opacity: 0; filter: blur(6px); border-radius: 50%; }
}
.dissolve__bubbles { position: absolute; inset: 0; pointer-events: none; }
.dissolve__bubbles i {
  position: absolute; bottom: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.1) 40%, transparent 60%);
  animation: rise var(--d, 2s) ease-out forwards;
}
@keyframes rise { 0% { transform: translate(0,0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x, 0), -200px) scale(1); opacity: 0; } }
.dissolve__caption { margin: 14px 0 0; color: var(--muted); font-size: .95rem; min-height: 1.6em; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit {
  display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid transparent; transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.benefit h3 { font-size: 1.15rem; margin: 2px 0 2px; color: var(--navy-900); }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .4s; }
@media (hover: hover) and (pointer: fine) { .benefit:hover { background: #fff; } }
.benefit.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateX(6px); }
html[dir="rtl"] .benefit.is-active { transform: translateX(-6px); }
.benefit.is-active p { max-height: 80px; opacity: 1; }
.benefit__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--navy);
  background: radial-gradient(circle at 30% 25%, #fff, #dbe9ff 60%, #c1d6fb); box-shadow: inset 0 -4px 10px rgba(23,64,196,.12), 0 6px 14px -6px rgba(23,64,196,.4);
  transition: transform .4s var(--ease);
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefit.is-active .benefit__icon { transform: rotate(-8deg) scale(1.08); color: #fff; background: radial-gradient(circle at 30% 25%, #5b8df0, var(--royal) 60%, var(--navy)); }

.tech { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech__item { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tech__item h4 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 4px; }
.tech__item p { margin: 0; color: var(--muted); font-size: .94rem; }
.tech__badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); color: var(--gold-text); background: var(--gold-soft); letter-spacing: .05em; }
.tech__badge svg { width: 26px; height: 26px; }
.tech__badge--flag { background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.tech__badge--flag img { width: 32px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- Compare ---------- */
.compare-sec { background: linear-gradient(180deg, var(--ice), #fff); }
.compare {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 460px; box-shadow: var(--shadow);
  user-select: none; touch-action: pan-y;
}
.compare__side { position: absolute; inset: 0; display: flex; align-items: center; }
.compare__side--old { background: linear-gradient(135deg, #eef0f4, #d9dee7); color: #3a4256; justify-content: flex-start; }
.compare__side--new {
  background: radial-gradient(600px 400px at 90% 10%, rgba(201,168,255,.35), transparent 60%), linear-gradient(135deg, #e8f2ff, #c9defc);
  color: var(--navy-900); justify-content: flex-end; clip-path: inset(0 0 0 var(--pos));
}
html[dir="rtl"] .compare__side--new { clip-path: inset(0 var(--pos) 0 0); }
.compare__content { width: 50%; padding: 40px clamp(24px, 5vw, 64px); }
.compare__art { width: 170px; height: 120px; stroke: none; margin-bottom: 12px; }
.compare__side--old .compare__art { stroke-width: 0; }
.compare h3 { font-size: 1.6rem; }
.xlist, .vlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.xlist li, .vlist li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.xlist li::before, .vlist li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.xlist li::before { background-color: var(--bad); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.vlist li::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; cursor: ew-resize; z-index: 3;
  box-shadow: 0 0 20px rgba(11,34,138,.3);
}
html[dir="rtl"] .compare__handle { left: auto; right: var(--pos); margin: 0 -2px 0 0; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; translate: -50% -50%; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255,255,255,.6), var(--shadow);
  transition: transform .25s var(--ease);
}
.compare.is-dragging .compare__handle span { transform: scale(1.1); }
@media (hover: hover) and (pointer: fine) { .compare__handle:hover span { transform: scale(1.1); } }
.compare__handle svg { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- Products ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 600;
  transition: all .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--royal); color: var(--royal); } }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius); background: #fff; overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: start;
  box-shadow: 0 2px 0 var(--line), var(--shadow-sm); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s; color: inherit;
}
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: var(--shadow); } }
.card.is-hidden { display: none; }
.card.is-entering { animation: card-in .55s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tint, var(--sky)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media img { transform: scale(1.06); } }
.card__shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 40%); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__shine { opacity: 1; } }
.card__tag { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .75rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.card__body { padding: 18px 20px 22px; }
.card__cat { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
html[lang="ar"] .card__cat { letter-spacing: 0; font-size: .85rem; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin: 6px 0 6px; color: var(--navy-900); }
.card__link { all: unset; cursor: pointer; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }
.card__meta { font-size: .88rem; color: var(--muted); margin: 0; }
.card__more { position: absolute; bottom: 20px; inset-inline-end: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); transition: background .3s, color .3s, transform .3s; }
.card__more svg { width: 18px; height: 18px; stroke-width: 2.4; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__more { background: var(--navy); color: #fff; transform: rotate(-45deg); } }
@media (hover: hover) and (pointer: fine) { html[dir="rtl"] .card:hover .card__more { transform: rotate(45deg) scaleX(-1); } }
html[dir="rtl"] .card__more svg { transform: scaleX(-1); }

/* ---------- Quiz ---------- */
.quiz {
  display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; min-height: 480px;
}
.quiz__intro {
  padding: clamp(32px, 5vw, 56px); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(500px 400px at 100% 100%, rgba(201,168,255,.45), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--royal));
}
.quiz__intro h2 { color: #fff; }
.quiz__intro p { color: #cfdcff; }
.quiz__progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 12px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--iri); transition: width .5s var(--ease); }
.quiz__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.quiz__step { animation: step-in .45s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(16px); } }
.quiz__q { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy-900); margin-bottom: 22px; }
.quiz__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--ice);
  font-weight: 600; text-align: start; transition: all .25s var(--ease); color: var(--ink);
}
@media (hover: hover) and (pointer: fine) { .answer:hover { border-color: var(--royal); background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); } }
.answer__icon { color: var(--navy); width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.answer__icon svg { width: 28px; height: 28px; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.pop-count .ico { stroke: #c9e0ff; }
.toast .ico { width: 1.4em; height: 1.4em; }
.quiz__back { margin-top: 20px; background: none; border: 0; color: var(--muted); font-weight: 600; padding: 6px 0; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .quiz__back:hover { color: var(--royal); } }
.quiz__result h3 { font-size: 1.1rem; color: var(--gold-text); text-transform: uppercase; letter-spacing: .12em; }
html[lang="ar"] .quiz__result h3 { letter-spacing: 0; }
.quiz__matches { display: grid; gap: 14px; margin-bottom: 22px; }
.match { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--ice); border: 1px solid var(--line); animation: step-in .5s var(--ease) both; }
.match img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.match h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--navy-900); }
.match p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.match button { background: none; border: 0; padding: 0; color: var(--royal); font-weight: 700; }
.quiz__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Story / map ---------- */
.story { background: linear-gradient(180deg, #fff, var(--sky)); overflow: hidden; }
.story__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.map-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.map-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.map-tab { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; color: var(--ink); transition: all .25s; }
.map-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.flag { width: 24px; height: 16px; border-radius: 3px; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag--bh { background: url("../assets/img/flags/bh.svg") center / cover no-repeat; }
.flag--sa { background: url("../assets/img/flags/sa.svg") center / cover no-repeat; }
.flag--lg { width: 45px; height: 30px; border-radius: 6px; }
.map { width: 100%; height: auto; display: block; overflow: visible; direction: ltr; }
.map .land { fill: #e4efe6; stroke: #a8c8b1; stroke-width: 2; }
.map .land--bh { fill: #fde4e7; stroke: #e58d99; }
.map .land.is-focus { fill: #d4ead9; }
.map .land--bh.is-focus { fill: #fbcfd5; }
.map .sea-dot { fill: #cfe0fa; stroke: none; }
.map rect { stroke: none; }
.map .route { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 7; fill: none; opacity: 0; }
.map .route--draw { stroke-dashoffset: 400; animation: route 2.4s var(--ease) forwards, dash 1.6s linear 2.4s infinite; }
@keyframes route { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: .75; } }
@keyframes dash { to { stroke-dashoffset: -26; } }
.map .pin { cursor: pointer; }
.map .pin circle.core { transition: r .25s; }
.map .pin:focus circle.core { r: 11; }
@media (hover: hover) and (pointer: fine) { .map .pin:hover circle.core { r: 11; } }
.map .pin--next circle.core { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.map .pin--now circle.core, .map .pin--base circle.core { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.map .pin--bh circle.core { fill: #ce1126; }
.map .pin .pulse { fill: none; stroke: var(--navy); stroke-width: 2; animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map .pin--bh .pulse { stroke: #ce1126; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.map text { font-family: var(--font-body); font-size: 17px; fill: var(--ink); font-weight: 600; stroke: none; paint-order: stroke; }
.map text.halo { stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.map text.big { font-size: 22px; font-weight: 800; fill: var(--navy-900); }
.map .inset { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.map-hint { display: none; font-size: .85rem; color: var(--muted); margin: 6px 6px 0; }
.map-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); padding: 4px 6px 0; }
.map-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg--now { background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--navy); }
.lg--next { background: #fff; border: 3px solid var(--gold); }
.map-tip {
  position: absolute; z-index: 4; pointer-events: none; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: .86rem; max-width: 240px; box-shadow: var(--shadow); translate: -50% calc(-100% - 14px); line-height: 1.4;
}
.map-tip b { display: block; font-size: .95rem; }

.story__panels { position: relative; display: grid; }
.panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.panel.is-active { opacity: 1; visibility: visible; transform: none; }
.panel__kicker { font-weight: 700; color: var(--gold-text); margin-bottom: 8px; }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--navy-900); }
.panel > p:not(.panel__kicker) { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.stat { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat small { font-size: .5em; font-weight: 700; }
.stat > span { font-size: .88rem; color: var(--muted); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 11px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.timeline li { position: relative; padding-top: 40px; text-align: center; }
.timeline__dot { position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 6px var(--sky); }
.timeline li.is-next .timeline__dot { background: #fff; border: 3px dashed var(--gold); }
.timeline h4 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Commitment ---------- */
.commit__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.commit__card { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
@media (hover: hover) and (pointer: fine) { .commit__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
.commit__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); margin-bottom: 18px; }
.commit__icon svg { width: 28px; height: 28px; }
.commit__card h3 { font-size: 1.15rem; color: var(--navy-900); }
.commit__card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Partners ---------- */
.partners { padding: 24px 0 clamp(56px, 8vw, 96px); }
.marquee--partners .marquee__track { gap: 16px; animation-duration: 50s; }
.partner {
  white-space: nowrap; padding: 16px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
}

/* ---------- Buy ---------- */
.buy { padding-top: 0; }
.buy__card {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); color: #fff;
  background: radial-gradient(500px 400px at 90% 20%, rgba(255,180,218,.35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(159,232,255,.25), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--royal));
}
.buy__copy { min-width: 0; }
.buy__card h2 { color: #fff; }
.buy__card p { color: #d4e1ff; font-size: 1.08rem; max-width: 520px; }
.buy__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.buy__img { width: 100%; max-width: 360px; justify-self: center; border-radius: 28px; transform: rotate(6deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: floaty 6s ease-in-out infinite; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.office header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.office header h3 { font-size: 1.25rem; margin: 0; color: var(--navy-900); }
.office header p { margin: 0; color: var(--gold-text); font-weight: 600; font-size: .9rem; }
.office ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.office li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .96rem; }
.office li svg { width: 20px; height: 20px; flex: none; color: var(--royal); margin-top: 3px; }
.office li a { text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .office li a:hover { color: var(--royal); } }
.office__at { width: 44px; height: 44px; border-radius: 50%; background: var(--iri); display: grid; place-items: center; font-weight: 800; color: var(--navy-900); font-size: 1.2rem; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.socials a { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--navy); transition: all .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); } }
.socials svg { width: 22px; height: 22px; }
.office__shop { margin-top: auto; font-weight: 700; color: var(--royal); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { padding-top: 40px; }
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #c9d8f2; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky) center / 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b228a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .35s var(--ease), background-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: #dbe8ff; }
.faq__item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq__item p a { color: var(--royal); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #b9c6ea; padding: 56px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer img { width: 140px; height: auto; margin-bottom: 8px; }
.footer__small { font-size: .85rem; margin: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,12,56,.6); backdrop-filter: blur(6px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.modal__dialog {
  position: relative; width: min(980px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: #fff; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; animation: pop-in .45s var(--ease) both; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal__media { background: var(--tint, var(--sky)); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.modal__body { padding: clamp(24px, 4vw, 44px); }
.modal__body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy-900); }
.modal__meta { color: var(--gold-text); font-weight: 700; font-size: .95rem; }
.modal__body > p:not(.eyebrow):not(.modal__meta) { color: var(--muted); }
.modal__body .vlist { margin: 18px 0 22px; }
.modal__how { background: var(--ice); border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; }
.modal__how h4 { font-size: .95rem; margin-bottom: 4px; color: var(--navy); }
.modal__how p { margin: 0; color: var(--muted); font-size: .94rem; }
.modal__close {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; z-index: 2;
  background: rgba(255,255,255,.9); font-size: 1.6rem; line-height: 1; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 90; translate: -50% calc(100% + 40px); transition: translate .5s var(--ease);
  background: var(--navy-900); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700;
  display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px);
}
.toast small { font-weight: 500; color: #b9c6ea; }
.toast:not(.is-on) { visibility: hidden; transition: translate .5s var(--ease), visibility 0s .5s; }
.toast.is-on { translate: -50% 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { position: fixed; inset: var(--nav-h) 16px auto; flex-direction: column; background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease); }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { color: var(--ink); padding: 14px 16px; }
  @media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: var(--sky); } }
  .nav__burger { display: block; }
  .nav__actions { margin-inline-start: auto; }
  .commit__grid { grid-template-columns: 1fr 1fr; }
  .story__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas, .hero__hint { justify-content: center; }
  .hero__stack { height: 300px; order: -1; margin-top: -10px; }
  .stack-card { width: 52%; }
  .hero__scroll { display: none; }
  .sheet__grid { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .compare { height: 560px; }
  .compare__content { width: 100%; padding: 28px 20px; align-self: flex-start; }
  .compare__side--old .compare__content { padding-inline-end: 52%; }
  .compare__side--new .compare__content { padding-inline-start: 52%; }
  .compare h3 { font-size: 1.15rem; }
  .xlist li, .vlist li { font-size: .88rem; align-items: flex-start; }
  .compare__art { width: 110px; height: 80px; }
  .quiz { grid-template-columns: 1fr; }
  .buy__card { grid-template-columns: 1fr; text-align: center; }
  .buy__card p { margin-inline: auto; }
  .buy__ctas { justify-content: center; }
  .buy__img { max-width: 240px; }
  .offices { grid-template-columns: 1fr; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media img { max-height: 46svh; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .btn { white-space: normal; text-align: center; }
  .map-card { padding: 14px 10px; }
  .map .pin--next text { display: none; }
  .map text { font-size: 32px; }
  .map text.big { font-size: 40px; }
  .map .pin circle.core { r: 13; }
  .map-hint { display: block; }
  .nav .btn--glow { display: none; }
  .nav__logo img { height: 44px; }
  .quiz__answers { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card__body { padding: 12px 14px 16px; }
  .card__name { font-size: .98rem; }
  .card__meta { font-size: .8rem; }
  .card__more { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .commit__grid { grid-template-columns: 1fr; }
  .compare { height: 500px; }
  .eyebrow::before { display: none; }
  .compare__art { display: none; }
  .dissolve { padding: 22px 16px; }
  .dissolve__stage { height: 300px; }
  .timeline { grid-template-columns: 1fr; }
}
/* short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero__stack { display: none; }
}
/* large screens: scale the whole layout up */
@media (min-width: 1800px) {
  html { font-size: 18px; }
  .container, .hero__inner { width: min(1440px, 100% - 64px); }
  .nav__inner { width: min(1560px, 100% - 64px); }
  .nav__logo img { height: 60px; }
}
@media (min-width: 2300px) {
  html { font-size: 21px; }
  .container, .hero__inner { width: min(1720px, 100% - 96px); }
  .nav__inner { width: min(1880px, 100% - 96px); }
  .nav__logo img { height: 70px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
