/* Shared by getxpert.com and getxpert.org. Source: admin/templates/static/styles.css — copied on publish.
   These :root values are the blue (.com) theme; other themes override them in a <style> block in <head>. */
:root {
  --ink: #0B1530;
  --bg: #F6F8FC;
  --accent: #1D5FE0;
  --accent-hover: #174CB5;
  --accent-ink: #1747B0;
  --accent-deep: #123F9C;
  --soft: #E6EEFF;
  --soft-hover: #D5E2FF;
  --dark: #071233;
  --dark-2: #0F1F4D;
  --dark-3: #0A1A45;
  --dark-rgb: 7, 18, 51;
  --stripe-rgb: 75, 141, 255;
  --navlink: #D4DDF2;
  --chip-dark: #DCE6FF;
  --muted: #4A5878;
  --line: #DCE3F0;
  --ph-bg: #EDF2FB;
  --ph-stripe: rgba(29, 95, 224, .06);
  --ph-border: #9FB3DC;
  --ph-ink: #33446B;
  --ph-sub: #55668A;
  --ph-dark-bg: #13245A;
  --ph-dark-border: #4A68B0;
  --ph-dark-sub: #AFC0E6;
  --vid-bg: #0E1C45;
  --vid-cap: #C7D3F0;
  --hero-sub: #C3CEEA;
  --dim: #AEBBDD;
  --tld: #7EAAFF;
  --foot-link: #B9C5E3;
  --copyright: #8E9DC4;
  --tint: #F3F6FC;
  --free-bg: #E3F5EA;
  --free-ink: #0D6B35;
  /* Surfaces that flip in dark mode (the dark palettes live in admin/templates/theme.ts). */
  --surface: #FFFFFF;
  --panel: #0B1530;
  --on-panel: #FFFFFF;
  --on-accent: #FFFFFF;
  --play-ink: var(--accent);
  --code-ink: #CFE0FF;
  --hdr: 132px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Sora', system-ui, sans-serif; margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--tld); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-soft { background: var(--soft); color: var(--accent-ink); }
.btn-soft:hover { background: var(--soft-hover); color: var(--accent-deep); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[aria-pressed="true"] { background: var(--panel); color: var(--on-panel); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--accent-ink); white-space: nowrap; }
.chip-free { background: var(--free-bg); color: var(--free-ink); }
.chip-dark { background: rgba(255, 255, 255, .1); color: var(--chip-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Project icon slots ----------
   Each .app-icon is a placeholder for a project's icon.
   Drop an <img src="assets/icons/<project>.png" alt=""> inside to replace the monogram. */
.app-icon {
  --size: 32px;
  width: var(--size); height: var(--size); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: calc(var(--size) * .28);
  background: var(--soft); color: var(--accent-ink);
  border: 1.5px dashed var(--ph-border);
  font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: calc(var(--size) * .36); letter-spacing: -0.02em;
  overflow: hidden;
}
.app-icon:has(img) { border: 0; background: transparent; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon-lg { --size: 56px; }
.app-icon-md { --size: 44px; }
.on-dark .app-icon, .app-icon.on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }

.title-row { display: flex; align-items: center; gap: 14px; }

/* ---------- Sticky header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--dark-rgb), .94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 48px; height: 48px; margin: -6px; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-name span { color: var(--tld); }
.nav { display: flex; align-items: center; gap: 24px; }
.navlink { color: var(--navlink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 4px; }
.navlink:hover { color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }

.app-rail { border-top: 1px solid rgba(255, 255, 255, .08); }
.app-rail ul { list-style: none; margin: 0; padding: 8px 0 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.app-rail a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--navlink); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.app-rail a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-rail .app-icon { --size: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-color: var(--dark-3); background-image: repeating-linear-gradient(135deg, rgba(var(--stripe-rgb), .08) 0 14px, transparent 14px 28px); }
.hero-mark { position: absolute; right: -160px; top: -120px; width: 760px; height: 760px; opacity: .12; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--dark-rgb), .35) 0%, rgba(var(--dark-rgb), .88) 100%); }
.hero-video-note { position: absolute; left: 24px; bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(var(--dark-rgb), .75); border: 1px dashed rgba(255, 255, 255, .45); font-size: 12.5px; font-weight: 600; color: var(--chip-dark); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 128px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: 62px; font-weight: 700; }
.hero-sub { font-size: 19px; color: var(--hero-sub); max-width: 540px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stat-num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; }
.stat-label { font-size: 14px; color: var(--dim); }
.browser { background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.browser-dots { display: flex; gap: 6px; padding: 4px 6px 10px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

/* ---------- Placeholders (snapshots, video) ---------- */
.ph { position: relative; display: flex; align-items: center; justify-content: center; background-color: var(--ph-bg); background-image: repeating-linear-gradient(135deg, var(--ph-stripe) 0 12px, transparent 12px 24px); border: 1.5px dashed var(--ph-border); border-radius: 14px; color: var(--ph-ink); overflow: hidden; }
.ph-label { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13.5px; font-weight: 600; padding: 12px; }
.ph-label span { font-size: 12px; color: var(--ph-sub); font-weight: 500; }
.ph-dark { background-color: var(--ph-dark-bg); border-color: var(--ph-dark-border); color: var(--chip-dark); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px); }
.ph-dark .ph-label span { color: var(--ph-dark-sub); }
.r-16-10 { aspect-ratio: 16 / 10; }
.r-16-9 { aspect-ratio: 16 / 9; }

/* Uploaded media replacing a placeholder */
.shot { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 14px; }
.shot-browser { border-radius: 10px; }
.vid-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid .play { position: relative; z-index: 1; text-decoration: none; }
.vid .vid-cap { z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vitem .vid .shot { height: 100%; border-radius: 0; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid { position: relative; display: flex; align-items: center; justify-content: center; background-color: var(--vid-bg); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 12px, transparent 12px 24px); border-radius: 16px; color: #fff; overflow: hidden; }
.play { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--play-ink); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.play-sm { width: 44px; height: 44px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.vid-cap { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--vid-cap); }

/* ---------- Projects ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.h2 { font-size: 44px; font-weight: 700; }
.lead { font-size: 18px; }
.projects { padding-top: 112px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 18px; }
.card[hidden] { display: none; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 8px 8px; flex-grow: 1; }
.card-body h3 { font-size: 24px; font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.card-dark { background: var(--panel); border-color: var(--panel); color: var(--on-panel); }
.card-dark p { color: var(--hero-sub); }
.card-dark .more { color: var(--tld); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; min-height: 44px; }
.featured { padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.featured-copy { display: flex; flex-direction: column; gap: 20px; }
.featured h3 { font-size: 44px; font-weight: 700; }
.featured-media { display: flex; flex-direction: column; gap: 14px; }
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--tint); border-radius: 10px; }
.mini-list strong { font-weight: 600; }
.free { color: var(--free-ink); font-weight: 600; }
.code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 14px; background: var(--panel); color: var(--code-ink); border-radius: 10px; padding: 14px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }

/* RubiX scenario panel */
.scenarios { background: var(--panel); color: var(--on-panel); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.scenarios-head { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tld); }
.scenario { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 15px; }
.scenario span:last-child { color: var(--dim); font-size: 13.5px; }
.note-line { font-size: 14.5px; font-weight: 600; color: var(--accent-ink); }

/* Right-to-left text (Arabic verses, words beside the badges) */
.ar { font-family: 'Noto Naskh Arabic', serif; letter-spacing: 0; }
.ayah { font-size: 30px; color: var(--accent-ink); background: var(--ph-bg); border-radius: 12px; padding: 14px 18px; line-height: 1.7; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.aside-text { font-size: 26px; color: var(--accent-ink); line-height: 1; }
.card-dark .aside-text { color: var(--tld); }

/* ---------- Videos ---------- */
.videos { background: var(--dark); color: #fff; margin-top: 96px; }
.videos-inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 40px; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.vitem { display: flex; gap: 14px; align-items: center; text-decoration: none; color: #fff; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.vitem:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.vitem .vid { width: 150px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 10px; }
.vitem strong { font-weight: 600; font-size: 15px; }
.vitem small { font-size: 13px; color: var(--dim); }
.screens .ph { height: 340px; }

/* One row of thumbnails that scrolls sideways: every video under the main player, and a product's
   videos and pictures under its viewer. */
.strip { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 10px; scrollbar-width: thin; }
.strip > * { flex: 0 0 auto; scroll-snap-align: start; }
.vstrip .vitem { width: 240px; flex-direction: column; align-items: stretch; gap: 10px; }
.vstrip .vitem .vid { width: 100%; }
.vitem[aria-current] { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px var(--tld); }
.vitem .vid { overflow: hidden; }
.vitem .vid .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vitem .vid .play { position: relative; z-index: 1; }

/* ---------- Product links and product pages ---------- */
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.card-dark .title-link:hover { color: var(--tld); }
.card-media { display: block; border-radius: 14px; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.product-page { padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }
.product-title { font-size: 48px; font-weight: 700; }
.details { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.product-page .featured { align-items: start; }
.stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage-main { border-radius: 14px; }
.stage-link { display: block; border-radius: 14px; }
.stage-img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--ph-bg); border: 1px solid var(--line); }
.pthumb { position: relative; width: 132px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--vid-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pthumb .shot, .pthumb picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; pointer-events: none; }
.pthumb picture .shot { position: static; height: 100%; }
.pthumb .play { position: relative; z-index: 1; width: 34px; height: 34px; }
.pthumb:hover { border-color: var(--accent-hover); }
.pthumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--soft); }

/* ---------- About, services, contact ---------- */
.about { padding-top: 112px; padding-bottom: 40px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.stats-light { border-top-color: var(--line); }
.stats-light .stat-label { color: var(--muted); }
.services { background: var(--tint); margin-top: 72px; }
.services-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.service { padding: 28px; gap: 12px; }
.service h3 { font-size: 22px; font-weight: 600; }
.service-num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: var(--accent); }
.faqs { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faqs h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; min-height: 44px; }
.faq p { padding-bottom: 16px; }
.contact { padding-top: 112px; padding-bottom: 96px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg { flex-shrink: 0; color: var(--accent); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-form { padding: 28px; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.contact-form label .muted { font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--tld); outline-offset: 0; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.small-print { font-size: 13px; }
.btn-whatsapp { background: #128C4A; color: #fff; }
.btn-whatsapp:hover { background: #0E7038; color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--foot-link); }
.social a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.social-light a { background: var(--soft); color: var(--accent-ink); }
.social-light a:hover { background: var(--soft-hover); color: var(--accent-deep); }

/* ---------- Cross-site banner ---------- */
.sister { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 44px; border-radius: 24px; }
.sister-copy { display: flex; align-items: center; gap: 22px; flex: 1 1 420px; }
.sister-copy img { width: 96px; height: 96px; margin: -14px; flex-shrink: 0; }
.sister h2 { font-size: 28px; font-weight: 700; }

/* ---------- Footer (site map) ---------- */
.site-footer { background: var(--dark); color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid strong { font-size: 14px; font-weight: 600; }
.foot-link { color: var(--foot-link); text-decoration: none; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.foot-link:hover { color: #fff; }
.foot-link .app-icon { --size: 22px; }

/* ---------- Sticky footer dock ---------- */
.dock {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(var(--dark-rgb), .95);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--copyright);
  font-size: 13px;
}
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.dock ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dock ul::-webkit-scrollbar { display: none; }
.dock li a { display: flex; padding: 2px; border-radius: 12px; }
.dock li a:hover .app-icon { border-color: #fff; background: rgba(255, 255, 255, .18); }
.dock .app-icon { --size: 40px; }
.dock-side { white-space: nowrap; }
.dock-side a { color: var(--navlink); text-decoration: none; font-weight: 600; }
.dock-side a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid4, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split, .vgrid, .featured { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The main menu (seven links and a button) folds into the menu button before it crowds the logo. */
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 16px; background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav.open { display: flex; }
  .nav .navlink { padding: 12px 4px; }
}
@media (max-width: 860px) {
  .dock-side.left { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid2, .grid3, .grid4, .foot-grid, .media-pair { grid-template-columns: minmax(0, 1fr); }
  .vstrip .vitem { width: 200px; }
  .pthumb { width: 108px; }
  .product-title { font-size: 34px; }
  .about, .contact { padding-top: 72px; }
  .contact-form { padding: 20px; }
  .hero h1 { font-size: 40px; }
  .h2, .featured h3 { font-size: 32px; }
  .featured { padding: 20px; }
  .sister { padding: 28px 20px; }
  .hero-grid { padding-top: 48px; padding-bottom: 96px; }
  .dock-side { display: none; }
  .dock-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  video.hero-media { display: none; }
}
