/* Barmajja — barmajja.com
   Light technical direction: near-white ground, CAD annotation, one chrome object.
   No build step, no dependencies.

   Motion policy: the page is correct before JavaScript runs. Only the `js` class
   hides anything, and prefers-reduced-motion unwinds all of it. Nothing in the first
   viewport is hidden behind a reveal: the hero text paints with the first frame. */

/* ============================================================ TOKENS */
:root {
  --paper:   #F1F2F4;
  --paper-2: #FFFFFF;
  --paper-3: #E8EAEE;
  --line:    #DCDFE6;
  --line-2:  #C6CBD4;
  --edge:    #848C96;   /* control borders — 3:1 on paper */
  --hair:    #AEB5C0;

  --blue:      #284389;   /* the logo blue — 9.32:1 on white, unchanged */
  --blue-soft: #5B82E0;
  --amber:     #F5A524;

  --c-commerce: #8F5E06;
  --c-sport:    #0E7A55;
  --c-game:     #6D4BD6;

  --fg:   #0E1116;
  --fg-2: #555E6E;
  --fg-3: #686E7D;
  --ok:   #0E7A55;

  --shell: 1280px;
  --r:     10px;
  --r-lg:  16px;

  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease:  cubic-bezier(.22,.61,.36,1);
  --out:   cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.34,1.4,.64,1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Never put overflow-x on html or body: it breaks position: sticky, and the
   header relies on the root scroller. Contain overflow locally instead. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { max-width: 100%; display: block; }
img, svg { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--fg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.8vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 700; letter-spacing: -.03em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--fg); font-weight: 700; }

a { color: var(--fg); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

/* Hidden by moving it up, not by a huge negative inline offset. `left: -9999px`
   is invisible in LTR because leftward overflow is not scrollable — but in RTL the
   scroll origin flips, so it added 9999px to the document and pushed the whole page
   out of the initial viewport. */
.skip {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: .85rem 1.25rem; font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

/* ============================================================ THE ANNOTATION KIT
   Small technical marks: monospace labels, registration corners, a dotted field and
   edge tick rails. Every mark states something true — an index, a count, a label. */
.mono {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.corner { position: absolute; width: 13px; height: 13px; pointer-events: none; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--hair); }
.corner::before { width: 100%; height: 1px; top: 0; }
.corner::after  { width: 1px; height: 100%; left: 0; }
.corner.tr { transform: scaleX(-1); }
.corner.bl { transform: scaleY(-1); }
.corner.br { transform: scale(-1); }

.dotfield {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--hair) .9px, transparent .9px);
  background-size: 22px 22px; opacity: .34;
}

.tickrail { position: absolute; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.tickrail i { display: block; width: 7px; height: 1px; background: var(--hair); }
.tickrail i:nth-child(5n+1) { width: 15px; }

/* ============================================================ LAYOUT */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 4vw, 44px); position: relative; z-index: 1; }
section { position: relative; padding-block: clamp(76px, 8vw, 128px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }

.lede { font-size: clamp(1rem, 1.4vw, 1.16rem); color: var(--fg-2); max-width: 58ch; }
.section-head { max-width: 880px; margin-bottom: clamp(40px, 4.5vw, 64px); }

/* ============================================================ PROGRESS + CURSOR */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; transform: scaleX(0); transform-origin: left; background: var(--blue); }

.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.cursor.is-on { opacity: 1; }
.cursor-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--blue); }
.cursor-ring {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), border-color .3s, background .3s;
}
.cursor.is-hot .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--blue); background: rgba(40,67,137,.06); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================================================ HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .45s var(--ease), border-color .45s var(--ease); }
.site-header.is-stuck { background: rgba(241,242,244,.82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: var(--nav-h); }
.brand-link img { height: 25px; width: auto; transition: opacity .3s var(--ease); }
.brand-link:hover img { opacity: .6; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.site-nav a:not(.btn) {
  position: relative; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-2); padding-block: .4rem; transition: color .3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--fg); }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { margin-left: auto; display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-toggle i { display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--fg); transition: transform .35s var(--spring); }
.nav-toggle i::before { top: -5px; } .nav-toggle i::after { top: 5px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .4rem clamp(20px,4vw,44px) 1.6rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--out); pointer-events: none;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1.2rem; }
}

/* ============================================================ BUTTONS */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 800; font-size: .88rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; overflow: hidden; white-space: nowrap; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn.btn-wrap { white-space: normal; text-align: center; line-height: 1.35; }
.p-split > * { min-width: 0; }
.btn > span { position: relative; z-index: 2; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--out); }
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::before { background: var(--fg); }
.btn-primary:hover { color: #fff; }
.btn-ghost { border-color: var(--edge); color: var(--fg); background: var(--paper-2); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: #fff; border-color: var(--fg); }
.btn-sm { padding: .58rem 1.15rem; font-size: .8rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; margin-top: 2.2rem; }

.arrow-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .88rem; color: var(--fg); }
.arrow-link svg { width: 14px; height: 14px; flex: none; transition: transform .45s var(--out); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: start;
  padding-block: calc(var(--nav-h) + clamp(56px, 11vh, 132px)) 0; overflow: hidden; background: var(--paper);
}
.hero .dotfield {
  inset: auto 0 0 0; height: 56%;
  -webkit-mask-image: radial-gradient(52% 86% at 50% 78%, #000 14%, transparent 78%);
          mask-image: radial-gradient(52% 86% at 50% 78%, #000 14%, transparent 78%);
}
/* The signature is a wide horizontal mark, so it gets a band rather than a square. */
#gl {
  position: absolute; left: 50%; bottom: clamp(18px, 6vh, 70px); transform: translateX(-50%);
  width: min(1080px, 94vw); height: clamp(180px, 26vh, 300px); z-index: 1; pointer-events: none;
}
.hero-grid { position: relative; z-index: 3; text-align: center; }
.hero h1 { max-width: 14ch; margin-inline: auto; margin-bottom: .38em; }
.hero h1 .tint { color: var(--blue); font-style: normal; }
.hero .lede { margin-inline: auto; text-align: center; max-width: 44ch; }
.hero .actions { justify-content: center; margin-top: 1.9rem; }

/* hero annotation furniture */
.hero-anno { position: absolute; inset: calc(var(--nav-h) + 18px) clamp(18px,3vw,34px) 24px; z-index: 2; pointer-events: none; }
.hero-anno .corner.tl { top: 0; left: 0; } .hero-anno .corner.tr { top: 0; right: 0; }
.hero-anno .corner.bl { bottom: 0; left: 0; } .hero-anno .corner.br { bottom: 0; right: 0; }
.hero-anno .tickrail { top: 18%; bottom: 18%; right: -2px; align-items: flex-end; }
.hero-anno .tickrail.left { left: -2px; right: auto; align-items: flex-start; }
.hero-scroll { position: absolute; bottom: -3px; left: 26px; display: flex; align-items: center; gap: .5rem; }
.hero-scroll i { display: block; width: 1px; height: 16px; background: var(--hair); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--blue); animation: trickle 2.4s var(--ease) infinite; }
@keyframes trickle { 0% { transform: translateY(-100%) } 60%,100% { transform: translateY(100%) } }
@media (max-width: 760px) { .hero-anno .tickrail { display: none; } }

/* line masks — the headline slides up once, with a timer behind it in main.js */
.line { display: block; overflow: hidden; padding: .1em 0 .2em; margin: -.1em 0 -.2em; }
.line > span { display: block; }
.js .line > span { transform: translateY(112%); }

/* ============================================================ WHAT WE MAKE */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  --cat: var(--blue);
  position: relative; display: flex; flex-direction: column; padding: 1.9rem 1.8rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.product:hover { border-color: var(--line-2); box-shadow: 0 2px 4px rgba(14,17,22,.03), 0 18px 40px rgba(14,17,22,.07); }
.product h3 { margin-bottom: .45rem; }
.product .benefit { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--fg); line-height: 1.3; margin-bottom: .7rem; }
.product p { font-size: .93rem; }
.product .note { margin-top: 1rem; }
.product-actions { margin-top: auto; padding-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }

/* The fourth product is pre-launch and not a marketing priority: one quiet row. */
.product--small { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(170px, auto) 1fr auto; align-items: center; gap: .8rem 2.4rem; padding: 1.4rem 1.8rem; }
.product--small .panel-top { margin: 0; }
.product--small h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.product--small p { margin: 0; }
@media (max-width: 760px) { .product--small { grid-template-columns: 1fr; } }

.panel-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.cat-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cat); display: inline-flex; align-items: center; gap: .4rem; }
.cat-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cat); }
.status { margin-left: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-3); white-space: nowrap; }
.status-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
/* product mark on a card — capped so a wide wordmark and a square icon read at one weight */
.panel-mark { max-height: 34px; max-width: 130px; width: auto; margin-bottom: 1rem; }

.note { font-size: .8rem; color: var(--fg-3); border-left: 1px solid var(--line-2); padding-left: .9rem; margin-top: 1.2rem; line-height: 1.55; }

/* ============================================================ PROOF */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.proof > div { background: var(--paper); padding: clamp(1.6rem,3vw,2.4rem) clamp(1.2rem,2.6vw,2.2rem); }
.proof .mono { display: block; margin-bottom: .9rem; }
.proof b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3rem); color: var(--fg); letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: .6rem;
}
.proof p { font-size: .86rem; color: var(--fg-2); margin: 0; max-width: 40ch; }
@media (max-width: 820px) { .proof { grid-template-columns: 1fr; } }

/* ============================================================ SPLIT / SLABS / CHECKS */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,76px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.slab { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem; position: relative; }
.slab + .slab { margin-top: .8rem; }
.slab h3 { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; font-weight: 400; line-height: 1.5; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.facts li { display: flex; gap: .75rem; font-size: .91rem; color: var(--fg-2); }
.facts .k { font-family: var(--mono); font-size: 10.5px; color: var(--blue); flex: none; padding-top: .2rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.checks li { display: flex; gap: .95rem; }
.checks .tick { flex: none; width: 23px; height: 23px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; background: rgba(40,67,137,.09); color: var(--blue); border: 1px solid rgba(40,67,137,.2); font-size: .64rem; font-weight: 900; }
.checks b { display: block; font-family: var(--display); color: var(--fg); font-size: 1rem; margin-bottom: .2rem; letter-spacing: -.03em; }
.checks span { font-size: .92rem; }

.partners-label { font-size: .86rem; margin: 2.2rem 0 0; }
.partners { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .8rem 0 0; padding: 0; }
.partners li.partner-logo { display: flex; align-items: center; background: #fff; padding: .9rem 1.4rem; }
.partners li.partner-logo img { display: block; height: 30px; width: auto; }
.partners li { font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--fg); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; letter-spacing: -.02em; }

/* ============================================================ ABOUT + CONTACT */
.about { max-width: 720px; }
.about p { font-size: clamp(1rem, 1.3vw, 1.1rem); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 1.7rem 1.6rem; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card p { font-size: .92rem; margin-bottom: 1.1rem; }
.contact-links { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .45rem; }
.contact-links li, .contact-links a { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--fg); letter-spacing: -.02em; word-break: break-word; }
.contact-links a:hover { color: var(--blue); }

/* ============================================================ FOOTER */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(58px,7vw,92px) 2.2rem; font-size: .88rem; color: var(--fg-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer img { height: 24px; width: auto; margin-bottom: 1.2rem; }
/* Footer column titles are h2s styled as labels, so the outline never skips a level. */
.site-footer .foot-h { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg); margin: 0 0 1rem; font-weight: 400; line-height: 1.5; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--fg-2); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--blue); }
.socials { display: flex; gap: .5rem; margin-top: 1.3rem; }
.socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg-2); transition: transform .4s var(--spring), border-color .3s, color .3s; }
.socials a:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: clamp(42px,5vw,64px); padding-top: 1.7rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--fg-3); }
.footer-bottom p { margin: 0; }

/* ============================================================ REVEALS
   Below the fold only. main.js adds `.in`, and sweeps anything still hidden once
   the page has loaded, so a reveal that never fires cannot leave content missing. */
.js .rise { opacity: 0; transform: translateY(26px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .95s var(--out), transform .95s var(--out); }
.js .rise-group > * { opacity: 0; transform: translateY(26px); }
.js .rise-group.in > * { opacity: 1; transform: none; transition: opacity .85s var(--out), transform .85s var(--out); }

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rise, .js .rise-group > * { opacity: 1 !important; transform: none !important; }
  .js .line > span { transform: none !important; }
  #gl { display: none; }
  .cursor { display: none; }
}

/* ============================================================ PRODUCT PAGES */
.p-hero { position: relative; padding-block: calc(var(--nav-h) + clamp(46px,7vw,90px)) clamp(50px,6vw,86px); overflow: hidden; }
.p-hero .dotfield {
  inset: 0;
  -webkit-mask-image: radial-gradient(46% 78% at 84% 44%, #000 8%, transparent 74%);
          mask-image: radial-gradient(46% 78% at 84% 44%, #000 8%, transparent 74%);
}
.crumb { display: flex; align-items: center; gap: .5rem; margin-bottom: clamp(26px,4vw,44px); flex-wrap: wrap; }
.crumb a { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--line-2); }
.crumb .here { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }

.p-split { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px,5vw,70px); align-items: center; }
@media (max-width: 900px) { .p-split { grid-template-columns: 1fr; } }

.p-mark {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(30px,4vw,48px); display: grid; place-items: center; position: relative; min-height: 190px;
}
.p-mark img { max-width: min(230px, 74%); max-height: 130px; width: auto; height: auto; }
.p-mark .corner.tl { top: 11px; left: 11px; } .p-mark .corner.tr { top: 11px; right: 11px; }
.p-mark .corner.bl { bottom: 11px; left: 11px; } .p-mark .corner.br { bottom: 11px; right: 11px; }

.p-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .3em; }
.p-benefit { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--blue); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .6em; }
.p-hero .tagline { font-size: clamp(1.02rem,1.5vw,1.2rem); color: var(--fg-2); max-width: 46ch; }
.p-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.p-meta .status { margin-left: 0; }

.p-section { padding-block: 0 clamp(64px,7vw,110px); }
.p-section .section-head { margin-bottom: clamp(24px,3vw,38px); }

.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.feature { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem; position: relative; }
.feature .mono { display: block; margin-bottom: .9rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.feature p { font-size: .9rem; margin: 0; color: var(--fg-2); }

.callout {
  border-left: 2px solid var(--blue); background: var(--paper-2); border-radius: 0 var(--r) var(--r) 0;
  padding: 1.4rem 1.6rem; margin-top: 2rem; max-width: 68ch;
}
.callout .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: .6rem; }
.callout p { font-size: .93rem; margin-bottom: .6em; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: #A8410F; }
.callout.warn .k { color: #A8410F; }

.next-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.next-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .4s var(--ease), transform .45s var(--out);
}
.next-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.next-card .cat-tag { font-size: 9.5px; }
.next-card b { font-family: var(--display); font-size: 1.05rem; color: var(--fg); letter-spacing: -.03em; }
.next-card span:last-child { font-size: .86rem; color: var(--fg-2); }
.demo-note { font-size: .82rem; color: var(--fg-3); margin-top: .9rem; }

/* Product screens */
.screens { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: start; }
.screens figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.screens img { width: 100%; height: auto; display: block; }
.screens a { display: block; }
.screens figcaption {
  border-top: 1px solid var(--line); padding: .65rem .85rem; background: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
}
/* Phone shots stay two-up on a phone and never grow past a readable width; wide
   page captures stack on a phone. `duo` pairs a wide card with a tall phone screen. */
.screens.phone { max-width: 760px; }
.screens.duo { grid-template-columns: 1.6fr 1fr; max-width: 760px; }
/* `quad`: four phone screens across on desktop, two-up on a phone. */
.screens.quad { grid-template-columns: repeat(4,1fr); max-width: 1040px; }
@media (max-width: 760px) { .screens.quad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .screens:not(.phone):not(.duo) { grid-template-columns: 1fr; } }

/* ============================================================ ARABIC / RTL
   Arabic is set in faces with a real Arabic design — never a Latin fallback and
   never mirrored Latin letterforms. Three files only: Cairo 800 for display, IBM Plex
   Sans Arabic 400 and 600 for text. Numerals stay Western, as UAE commercial writing does. */
html[lang="ar"] {
  --display: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --sans:    "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono:    "IBM Plex Sans Arabic", ui-monospace, monospace;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .p-benefit, html[lang="ar"] .product .benefit {
  letter-spacing: 0; line-height: 1.35;
}
/* Arabic has no case and letterspacing damages joins, so the label style changes. */
html[lang="ar"] .mono, html[lang="ar"] .eyebrow, html[lang="ar"] .cat-tag,
html[lang="ar"] .status, html[lang="ar"] .site-nav a:not(.btn), html[lang="ar"] .slab h3,
html[lang="ar"] .site-footer .foot-h, html[lang="ar"] .crumb a, html[lang="ar"] .crumb .here,
html[lang="ar"] .footer-bottom, html[lang="ar"] .callout .k, html[lang="ar"] .screens figcaption {
  letter-spacing: 0; text-transform: none; font-size: .82rem;
}
html[lang="ar"] .status, html[lang="ar"] .cat-tag { font-size: .74rem; }

[dir="rtl"] .eyebrow::before { transform: scaleX(-1); }
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .status { margin-left: 0; margin-right: auto; }
[dir="rtl"] .p-meta .status { margin-right: 0; }
[dir="rtl"] .arrow-link svg, [dir="rtl"] .crumb .sep { transform: scaleX(-1); }
[dir="rtl"] .arrow-link:hover svg { transform: scaleX(-1) translateX(5px); }
[dir="rtl"] .note { border-left: 0; border-right: 1px solid var(--line-2); padding-left: 0; padding-right: .9rem; }
[dir="rtl"] .callout { border-left: 0; border-right: 2px solid var(--blue); border-radius: var(--r) 0 0 var(--r); }
[dir="rtl"] .callout.warn { border-right-color: #A8410F; }
[dir="rtl"] .hero-scroll { left: auto; right: 26px; }

.lang {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--fg-2); white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.lang:hover { color: var(--fg); border-color: var(--line-2); }
html[lang="ar"] .lang { letter-spacing: 0; font-size: .8rem; }

/* ============================================================ LONG-FORM PAGES
   Support answers and policies. One column, measured for reading. Links in running
   text are underlined, so they are never told apart by colour alone. */
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 2.4rem 0 .7rem; }
.legal h3 { font-size: 1.02rem; margin: 1.7rem 0 .45rem; }
.legal p, .legal li { color: var(--fg-2); font-size: .97rem; line-height: 1.75; }
.legal p { margin: 0 0 .9rem; }
.legal ul { margin: 0 0 .9rem; padding-inline-start: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal strong { color: var(--fg); }
.legal a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--blue); }
.legal .updated {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 1.8rem;
}
.legal h2 + p { margin-top: 0; }
.legal .note { font-size: .86rem; color: var(--fg-3); }

/* Kabatin's Arabic name beside its Latin one — equals, neither a translation. */
.alt-name { color: var(--fg-3); font-weight: 700; margin-inline-start: .35em; }
