/*
 * Krowand landing page (Test build), part 1: fonts, tokens, base, buttons,
 * header and slider.
 *
 * Layout follows the Go.arch template the owner chose, element for element:
 * the brand panel with the slide counter and ghost word, the tall side panel
 * with its vertical label, rule and social icons, the letter-spaced phone and
 * navigation that turn into a fixed bar on scroll, a full-screen slider with
 * right-aligned letter-spaced titles and PREV / NEXT text arrows, then the
 * template's sections (about, projects carousel, textured figure, clients,
 * contacts, footer) over its faint column guides. Template metrics are kept
 * in the template's own units (vmin for the header, em for type).
 *
 * The composition keeps the template's physical geometry in both languages
 * (panels on the left, captions on the right), which already reads well in
 * Arabic; text inside every block follows the page direction.
 *
 * Type: the template's Oswald (letter-spaced capitals) and Montserrat carry
 * Latin; IBM Plex Sans Arabic carries Arabic, never letter-spaced.
 *
 * Colour: Krowand tokens. The template's tan text accent is Krowand oak
 * (display sizes only), its tan buttons are forest pills (oak cannot carry
 * small button text at AA), its off-white panels are ivory. Dark follows
 * ADR-0006: graphite with lime as the single accent. Text over photography
 * uses literal colours on purpose (ADR-0004 class).
 */

/* ---------- fonts (self-hosted, OFL) ---------- */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* Latin acronyms (MDF, MR) and digits inside Arabic lines, scaled to Plex */
@font-face {
  font-family: "Montserrat in Arabic";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  size-adjust: 90%;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-arabic-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  /* ground */
  --bg: #fbf8f1;
  --panel: #f4efe5; /* the template's side panels, in Krowand ivory */
  --field: #eee8dc;
  --fg: #1c211d;
  --muted: #4a534a;
  --faint: #5f685d;
  --label: #756b56;
  --tone: #9c7a45; /* oak: display sizes only (3.46:1 on ivory) */
  --counter: #9c7a45;
  --icon: #8c826d;
  --icon-hover: #274b39;
  --rule: rgba(28, 33, 29, 0.24);
  --line: rgba(28, 33, 29, 0.06);
  --ghost: #1c211d;
  --ghost-opacity: 0.032;
  --fade-opacity: 0.045;
  --focus: #274b39;
  --danger: #c0392b;
  --field-ring: rgba(39, 75, 57, 0.16);

  /* components */
  --btn-bg: #274b39;
  --btn-fg: #f4efe5;
  --btn-hover-bg: #1b3527;
  --btn-hover-fg: #f4efe5;
  --btn-shadow: 0 15px 34px rgba(39, 75, 57, 0.3);
  --nav-current: #274b39;
  --affix-bg: rgba(251, 248, 241, 0.95);
  --affix-fg: #1c211d;
  --affix-shadow: 0 0 35px rgba(28, 33, 29, 0.1);
  --menu-bg: #fbf8f1;
  --menu-line: rgba(28, 33, 29, 0.1);
  --img-shadow: 0 8px 25px rgba(28, 33, 29, 0.22);
  --zoom-bg: rgba(39, 75, 57, 0.84);
  --zoom-fg: #f4efe5;

  /* photo-surface literals (ADR-0004 class) */
  --on-photo: #faf7f0;
  --on-photo-dim: #d6d1c6; /* proof labels on the rail scrim, 8.9:1 there */
  --accent-photo: #dcc39a; /* oak lifted for small text on darkened photography */
  --accent-photo-ink: #17140f; /* text on an oak fill: near-black, never white */
  --rail-rule: rgba(250, 247, 240, 0.2);
  --focus-photo: #faf7f0;
  --photo-ground: #111111; /* behind photographs while they load, and the card shade */
  --scrim: 17, 17, 17;

  /* type */
  --ff-latin-display: "Oswald", "Arial Narrow", sans-serif;
  --ff-latin: "Montserrat", system-ui, sans-serif;
  --ff-ar: "IBM Plex Sans Arabic", "Montserrat in Arabic", system-ui, sans-serif;
  --ff-body: var(--ff-latin);

  /* layout: the template's header is measured in vmin */
  --hero-h: 100vh;
  --bp-w: 39.47vmin;
  --bp-h: 40.7vmin;
  --vp-w: max(19.735vmin, 72px);
  --wrap: 1140px;
  --gutter: 20px;
  --wrap-edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1); /* entrances: arrive and stop */

  /* z-index scale */
  --z-slides: 1;
  --z-caption: 3;
  --z-panels: 4;
  --z-nav: 6;
  --z-affix: 40;
  --z-skip: 60;
}
@supports (height: 100svh) {
  :root {
    --hero-h: 100svh;
  }
}
:lang(ar) {
  --ff-body: var(--ff-ar);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a1a;
  --panel: #222222;
  --field: #262626;
  --fg: #ffffff;
  --muted: #bfbfbf;
  --faint: #969696;
  --label: #a6a6a6;
  --tone: #d9ff42;
  --counter: #d9ff42;
  --icon: #a6a6a6;
  --icon-hover: #d9ff42;
  --rule: rgba(255, 255, 255, 0.24);
  --line: rgba(255, 255, 255, 0.07);
  --ghost: #ffffff;
  --ghost-opacity: 0.04;
  --fade-opacity: 0.032;
  --focus: #d9ff42;
  --danger: #e5776b;
  --field-ring: rgba(217, 255, 66, 0.16);
  --btn-bg: #d9ff42;
  --btn-fg: #1a1a1a;
  --btn-hover-bg: #ffffff;
  --btn-hover-fg: #1a1a1a;
  --btn-shadow: 0 15px 34px rgba(217, 255, 66, 0.14);
  --nav-current: #d9ff42;
  --affix-bg: rgba(26, 26, 26, 0.95);
  --affix-fg: #ffffff;
  --affix-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
  --menu-bg: #1f1f1f;
  --menu-line: rgba(255, 255, 255, 0.08);
  --img-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  --zoom-bg: rgba(217, 255, 66, 0.84);
  --zoom-fg: #1a1a1a;
  --accent-photo: #d9ff42;
  --accent-photo-ink: #1a1a1a;
  --on-photo-dim: #cfcbc2;
  --focus-photo: #d9ff42;
}

/* no-JS fallback: follow the OS theme when the head script never ran */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #1a1a1a;
    --panel: #222222;
    --field: #262626;
    --fg: #ffffff;
    --muted: #bfbfbf;
    --faint: #969696;
    --label: #a6a6a6;
    --tone: #d9ff42;
    --counter: #d9ff42;
    --icon: #a6a6a6;
    --icon-hover: #d9ff42;
    --rule: rgba(255, 255, 255, 0.24);
    --line: rgba(255, 255, 255, 0.07);
    --ghost: #ffffff;
    --ghost-opacity: 0.04;
    --fade-opacity: 0.032;
    --focus: #d9ff42;
    --danger: #e5776b;
    --field-ring: rgba(217, 255, 66, 0.16);
    --btn-bg: #d9ff42;
    --btn-fg: #1a1a1a;
    --btn-hover-bg: #ffffff;
    --btn-hover-fg: #1a1a1a;
    --btn-shadow: 0 15px 34px rgba(217, 255, 66, 0.14);
    --nav-current: #d9ff42;
    --affix-bg: rgba(26, 26, 26, 0.95);
    --affix-fg: #ffffff;
    --affix-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
    --menu-bg: #1f1f1f;
    --menu-line: rgba(255, 255, 255, 0.08);
    --img-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    --zoom-bg: rgba(217, 255, 66, 0.84);
    --zoom-fg: #1a1a1a;
    --accent-photo: #d9ff42;
    --accent-photo-ink: #1a1a1a;
    --on-photo-dim: #cfcbc2;
    --focus-photo: #d9ff42;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 300 1rem/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:lang(ar) body {
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.85;
}
h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* pictures: no drag-out, no long-press save sheet */
img,
canvas,
.slots,
.text-parallax {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
address {
  font-style: normal;
}
::selection {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.ico {
  width: 1em;
  height: 1em;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: var(--z-skip);
  top: 12px;
  inset-inline-start: 12px;
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus {
  transform: none;
}
main:focus {
  outline: none;
}
/* English copy is injected after load: hide the page for that moment only */
.kw-i18n-pending body {
  animation: kw-reveal-failsafe 0s linear 1.2s forwards;
  visibility: hidden;
}
@keyframes kw-reveal-failsafe {
  to {
    visibility: visible;
  }
}

/* logos swap with the theme */
.logo-dark {
  display: none;
}
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light {
    display: none;
  }
  :root:not([data-theme]) .logo-dark {
    display: block;
  }
}

/* ---------- buttons (the template's pill, in forest) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 1.1em 2.2em 1.05em;
  border-radius: 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.875rem/20px var(--ff-latin);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out,
    transform 0.16s var(--ease);
}
:lang(ar) .btn {
  font: 600 0.9375rem/1.3 var(--ff-ar);
  letter-spacing: 0;
  text-transform: none;
  padding: 0.95em 2em;
}
.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
  box-shadow: none; /* the template drops its shadow on hover */
}
.btn:active {
  transform: scale(0.97);
}
.btn .ico {
  width: 1.15em;
  height: 1.15em;
}
.btn .ico-next {
  width: 0.94em;
  height: 0.75em;
  transition: transform 0.3s var(--ease);
}
[dir="rtl"] .ico-next {
  transform: scaleX(-1);
}
.btn-shadow {
  box-shadow: var(--btn-shadow);
}
/* the secondary action over photography: an accent stroke, never a grey ghost */
.btn-ghost {
  background: rgba(var(--scrim), 0.5);
  color: var(--on-photo);
  box-shadow: inset 0 0 0 1px var(--accent-photo);
}
.btn-ghost:hover {
  background: var(--accent-photo);
  color: var(--accent-photo-ink);
  box-shadow: inset 0 0 0 1px var(--accent-photo);
}

/* ---------- header: the template's absolute layer over the slider ---------- */

.site-header {
  position: absolute;
  z-index: var(--z-panels);
  top: 0;
  left: 0;
  right: 0;
  height: max(var(--hero-h), 560px);
  overflow-x: clip; /* the ghost word hangs past the left edge; in RTL it would widen the page */
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
/* the resting nav spans the container; only its own controls take clicks,
   so the phone number and the logo underneath stay clickable */
.navbar:not(.is-affix):not(.menu-open),
.navbar:not(.is-affix):not(.menu-open) .navbar-inner {
  pointer-events: none;
}
.navbar-inner > * {
  pointer-events: auto;
}

/* brand panel: logo, slide counter, ghost word */
.brand-panel {
  position: absolute;
  z-index: var(--z-panels);
  left: 0;
  top: 0;
  width: var(--bp-w);
  height: var(--bp-h);
  padding: 4.8vmin 2rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand {
  display: inline-flex;
  padding-block: 9px;
  margin-block: -9px;
  border-radius: 4px;
}
.brand img {
  width: clamp(132px, 19.5vmin, 232px);
  height: auto;
}
.brand-ghost {
  position: absolute;
  z-index: -1;
  right: -0.37em;
  left: auto;
  bottom: -0.4em;
  direction: ltr;
  font: 700 8.75rem/1 var(--ff-latin);
  color: var(--ghost);
  opacity: var(--ghost-opacity);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.slide-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 8vmin;
  direction: ltr;
  font-family: var(--ff-latin-display);
  color: var(--fg);
}
.current-number {
  font-size: max(8vmin, 30px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--counter);
}
.slide-number sup {
  position: relative;
  top: -0.75em;
  margin-left: 0.46em;
  font-size: max(2vmin, 13px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  vertical-align: top;
}
.slide-number .delimiter {
  margin-right: 0.4em;
}
:root[data-theme="dark"] .slide-number sup {
  color: var(--label);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .slide-number sup {
    color: var(--label);
  }
}
.pause-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--icon);
  transition: color 0.3s, box-shadow 0.3s;
}
.pause-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}
.pause-btn .ico {
  width: 14px;
  height: 14px;
}
.pause-btn:hover {
  color: var(--icon-hover);
  box-shadow: inset 0 0 0 1px var(--icon-hover);
}
.pause-btn[hidden] {
  display: none;
}
.pause-btn .ico-play,
.pause-btn.is-paused .ico-pause {
  display: none;
}
.pause-btn.is-paused .ico-play {
  display: block;
}

/* phone, top of the photo */
.header-phone {
  position: absolute;
  z-index: var(--z-nav);
  left: 50vmin;
  top: 5.9vmin;
  font: 300 0.8125rem/1.65 var(--ff-latin-display);
  letter-spacing: 0.32em;
  padding-block: 12px;
  margin-top: -12px;
  color: var(--on-photo);
  text-decoration: none;
  transition: color 0.3s;
}
.header-phone:hover {
  color: var(--accent-photo);
}

/* the tall side panel, with its label, rule and icons at the bottom */
.vertical-panel {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--vp-w);
  background: var(--panel);
}
.vertical-panel-content {
  position: absolute;
  z-index: var(--z-panels);
  left: 0;
  top: auto;
  bottom: 0;
  width: var(--vp-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3.5vmin;
}
/* the label sits under the brand panel and its rule stretches down to the icons */
.vertical-panel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  margin-bottom: 3.5vmin;
}
/* vertical writing mode remaps logical sides, so this block uses physical ones */
.vertical-panel-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 10px/1 var(--ff-latin);
  letter-spacing: 1em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
:lang(ar) .vertical-panel-title {
  font: 600 1.0625rem/1 var(--ff-ar);
  letter-spacing: 0;
  text-orientation: sideways; /* mixed breaks Arabic into rotated word blocks */
  word-spacing: 0.12em;
  text-transform: none;
}
.vertical-panel-info .line {
  flex: none;
  width: 1px;
  height: 8vmin;
  margin-top: 31.5px;
  background: var(--rule);
}
.social-list li + li {
  margin-top: max(calc(3.8vmin - 17.6px), 6px);
}
.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--icon);
  transition: color 0.3s;
}
.social-list a:hover {
  color: var(--icon-hover);
}
.social-list .ico {
  width: max(2.4vmin, 18px);
  height: max(2.4vmin, 18px);
}
@media (max-height: 850px) {
  .vertical-panel-title {
    display: none;
  }
}

/* ---------- navigation: letter-spaced over the photo, a fixed bar on scroll ---------- */

.navbar {
  position: absolute;
  z-index: var(--z-nav);
  top: 0;
  left: 0;
  right: 0;
}
.navbar-inner {
  direction: ltr; /* brand left, menu right, as in the template */
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar-brand {
  display: none;
  margin-right: auto;
}
.navbar-brand img {
  width: 128px;
  height: auto;
}
.navbar-group {
  display: flex;
  align-items: center;
  gap: 2.4em;
  margin-left: auto;
}
[dir="rtl"] .navbar-group {
  direction: rtl;
}
.navbar-menu {
  display: flex;
  gap: clamp(3.1em, min(calc(20vw - 206px), calc(12.5vw - 12.5vmin)), 5.1em);
  font: 300 0.8125rem/1 var(--ff-latin-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
:lang(ar) .navbar-menu {
  gap: clamp(2.4em, min(calc(20vw - 206px), calc(12.5vw - 12.5vmin + 12px)), 4.4em);
  font: 500 0.9375rem/1 var(--ff-ar);
  letter-spacing: 0;
}
.navbar-menu a {
  display: block;
  padding-top: calc(5.9vmin - 7.5px);
  padding-bottom: 12px;
  color: var(--on-photo);
  text-decoration: none;
  transition: color 0.3s ease-out;
}
.navbar-menu a:hover,
.navbar-menu a.is-current {
  color: var(--accent-photo);
}
.navbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
html:not([dir="rtl"]) .navbar-tools {
  order: -1;
}
.nav-tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 37px;
  height: 37px;
  padding-inline: 6px;
  border-radius: 20px;
  color: var(--on-photo);
  font: 400 0.8125rem/1 var(--ff-latin-display);
  letter-spacing: 0.2em;
  text-decoration: none; /* the language switch is a link to the other address */
  transition: color 0.3s, background-color 0.3s;
}
.nav-tool:lang(ar) {
  font: 500 0.9375rem/1 var(--ff-ar);
  letter-spacing: 0;
}
.nav-tool:hover {
  color: var(--accent-photo);
}
.nav-tool::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.nav-tool .ico {
  width: 16px;
  height: 16px;
}
/* the saved quote list: a stroked pill, shown by the script only when it has lines */
.quote-link {
  display: inline-flex;
  align-items: center;
  padding-inline: 12px;
  box-shadow: inset 0 0 0 1px currentColor;
  text-decoration: none;
  white-space: nowrap;
}
[data-quote-link][hidden] {
  display: none;
}
/* the count's own leading space is trimmed inside the flex link */
.quote-n {
  margin-inline-start: 0.3em;
}
.theme-btn .ico-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .ico-sun {
  display: block;
}
:root[data-theme="dark"] .theme-btn .ico-moon {
  display: none;
}

.menu-btn {
  display: none;
  margin-inline-end: -7px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 7px;
  margin-left: auto;
}
.menu-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--on-photo);
  transition: transform 0.3s var(--ease), opacity 0.2s, background-color 0.3s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* small screens: the language beside the menu at every width, and WhatsApp
   in the bar once the hero (which has its own WhatsApp buttons) is gone */
.navbar-quick {
  display: none;
  align-items: center;
  gap: 6px;
}
.quick-wa {
  position: relative;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.16s var(--ease);
}
.quick-wa::after {
  content: "";
  position: absolute;
  inset: -2px; /* a 44px target */
}
.quick-wa .ico {
  width: 20px;
  height: 20px;
}
.quick-wa:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}
.quick-wa:active {
  transform: scale(0.95);
}
.navbar.is-past-hero .quick-wa {
  display: grid;
}
.navbar.menu-open .nav-tool {
  color: var(--affix-fg);
}

/* affixed: the template's fixed light bar with the small logo */
.navbar.is-affix .navbar-menu a,
.navbar.menu-open .navbar-menu a {
  padding-top: 12px;
}
.navbar.is-affix {
  position: fixed;
  z-index: var(--z-affix);
  padding-block: 12.5px;
  background: var(--affix-bg);
  box-shadow: var(--affix-shadow);
  animation: kw-drop 1s ease both;
}
.navbar.is-affix .navbar-brand img {
  width: 112px;
}
.navbar.menu-open {
  padding-block: 12.5px;
  background: var(--menu-bg);
  box-shadow: var(--affix-shadow);
}
@keyframes kw-drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: none;
  }
}
.navbar.is-affix .navbar-brand,
.navbar.menu-open .navbar-brand {
  display: block;
}
.navbar.is-affix .navbar-menu a,
.navbar.is-affix .nav-tool {
  color: var(--affix-fg);
}
.navbar.is-affix .navbar-menu a:hover,
.navbar.is-affix .navbar-menu a.is-current,
.navbar.is-affix .nav-tool:hover {
  color: var(--nav-current);
}
.navbar.is-affix .navbar-menu a.is-current {
  position: relative;
}
.navbar.is-affix .navbar-menu a.is-current::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 2px;
  background: var(--nav-current);
}
.navbar.is-affix .menu-btn span,
.navbar.menu-open .menu-btn span {
  background: var(--nav-current);
}

/* the template's white drop-down list */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: var(--menu-bg);
  box-shadow: 0 25px 35px -20px rgba(0, 0, 0, 0.25);
  transition: grid-template-rows 0.35s ease, visibility 0s 0.35s;
}
.mobile-menu-inner {
  min-height: 0;
  max-height: calc(100svh - 70px);
  overflow: hidden auto;
}
.navbar.menu-open .mobile-menu {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}
@media (min-width: 992px) {
  /* the drop-down belongs to the small-screen bar only, whatever state it was left in */
  .mobile-menu {
    display: none;
  }
}
.mobile-menu-links {
  padding: 1.2em var(--gutter) 0;
  font: 300 0.9375rem/1 var(--ff-latin-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
:lang(ar) .mobile-menu-links {
  font: 500 1.0625rem/1 var(--ff-ar);
  letter-spacing: 0;
}
.mobile-menu-links li {
  border-top: 1px solid var(--menu-line);
}
.mobile-menu-links a {
  display: block;
  padding: 1.1rem var(--gutter);
  color: var(--fg);
  text-decoration: none;
}
.mobile-menu-links a.is-current {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.mobile-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--menu-line);
}
.mobile-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 0.9375rem/1 var(--ff-latin-display);
  letter-spacing: 0.2em;
  color: var(--fg);
  text-decoration: none;
}
.mobile-tools {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}
.mobile-tools .nav-tool {
  color: var(--fg);
}
/* the template's short list: 44px rows, smaller type */
.mobile-menu-links {
  padding-top: 0.5rem;
  font-size: 0.8125rem;
}
:lang(ar) .mobile-menu-links {
  font-size: 0.9375rem;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
}

/* ---------- slider ---------- */

.hero {
  position: relative;
  height: max(var(--hero-h), 560px);
  overflow: hidden;
  background: var(--photo-ground);
  color: var(--on-photo);
}
/* the navigation band stays readable during the slot phase, when the slide
   scrim has not painted yet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(var(--scrim), 0.62) 0,
    rgba(var(--scrim), 0.3) 90px,
    rgba(var(--scrim), 0) 100%
  );
}
.affix-sentinel {
  position: absolute;
  top: 200px;
  left: 0;
  width: 1px;
  height: 1px;
}
.slides {
  position: absolute;
  inset: 0;
  z-index: var(--z-slides);
}
.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.slide.is-active {
  visibility: visible;
  z-index: 2;
}
.slide.is-leaving {
  visibility: visible;
  z-index: 1;
}
.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* the template brings the new photo in as seven zooming vertical slots */
.slots {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.slot {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--k) * 100% / var(--n, 7));
  width: calc(100% / var(--n, 7) + 1px);
  overflow: hidden;
}
/* each slice paints its own strip of the photo and zooms around its centre */
.slot canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  animation: kw-slot 1s cubic-bezier(0.645, 0.045, 0.355, 1) 1.1s both;
}
@keyframes kw-slot {
  from {
    opacity: 0;
    transform: scale(1.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slide-bg .pic {
  display: block;
  width: 100%;
  height: 100%;
}
/* a photo that could not load, even after its retries: a quiet ruled ground
   instead of an empty frame (the script fetches it again once back online) */
canvas.pic.is-failed {
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px),
    var(--panel);
}
.slide-bg canvas.pic.is-failed,
.project canvas.pic.is-failed {
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-photo) 6%, transparent) 0 1px, transparent 1px 16px),
    var(--photo-ground);
}
/* ...and in a product or about frame, a pill that says so and asks again on a
   tap (the script adds it; its own dark ground reads on either theme's frame) */
.pic-retry {
  position: absolute;
  z-index: 2;
  inset-inline: 1.5rem;
  top: 58%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  max-width: calc(100% - 3rem);
  min-height: 44px;
  margin-inline: auto;
  padding: 0.6em 1.2em;
  border: 0;
  border-radius: 30px;
  background: rgba(var(--scrim), 0.78);
  box-shadow: inset 0 0 0 1px var(--accent-photo);
  color: var(--on-photo);
  font: 600 0.8125rem/1.4 var(--ff-latin);
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
:lang(ar) .pic-retry {
  font: 500 0.875rem/1.5 var(--ff-ar);
}
.pic-retry .ico {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}
.pic-retry:hover {
  background: var(--accent-photo);
  color: var(--accent-photo-ink);
}
.pic-retry:focus-visible {
  outline-color: var(--focus-photo);
}
.pic-retry[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}
/* the captions sit on the right in both languages, so the shade does too */
.slide-bg::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(ellipse 58vmin 42vmin at calc(22vmin + 110px) calc(43.5vmin + 22px),
      rgba(var(--scrim), 0.74) 0, rgba(var(--scrim), 0.52) 45%, rgba(var(--scrim), 0) 100%),
    linear-gradient(to left,
      rgba(var(--scrim), 0.62) 0%, rgba(var(--scrim), 0.5) 46%, rgba(var(--scrim), 0) 76%);
}
.slide.is-entering:not(.has-slots) .slide-bg {
  animation: kw-slot-zoom 1.4s var(--ease) both;
}
/* with slots the photo waits behind them and is revealed as they finish */
.slide.is-entering.has-slots .slide-bg .pic {
  animation: kw-appear 0.01s linear 2.1s both;
}
.slide.is-entering.has-slots .slide-bg::after {
  animation: kw-appear 1s ease 1.1s both;
}
/* first load: slices zoom in at once over the page ground */
.hero.is-intro {
  background: var(--bg);
}
/* the caption waits (briefly) for the first photo so the intro plays once;
   the head script sets the class, and past 0.8s the words show regardless */
.kw-hero-wait .hero .slide-caption {
  visibility: hidden;
  animation: kw-reveal-failsafe 0s linear 0.8s forwards;
}
.hero.is-intro .slot canvas {
  animation-delay: 0s;
}
.hero.is-intro .slide.is-entering.has-slots .slide-bg .pic {
  animation-delay: 1s;
}
.hero.is-intro .slide.is-entering.has-slots .slide-bg::after {
  animation-delay: 0.5s;
}
@keyframes kw-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes kw-slot-zoom {
  from {
    opacity: 0;
    transform: scale(1.14);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.slide-caption {
  position: absolute;
  z-index: var(--z-caption);
  right: var(--wrap-edge);
  top: calc(50% - 9.5rem);
  /* clear of the brand panel; PREV / NEXT now sit in the rail at the foot */
  width: min(50rem, calc(100% - 42vmin - var(--wrap-edge)));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
[dir="rtl"] .slide-caption {
  align-items: flex-start; /* the cross axis starts on the right in RTL */
}
/* the kicker: the line that tells you where you are before the headline does */
.slide-eyebrow {
  overflow: hidden;
  margin-bottom: 1.15rem;
}
.eb-in {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font: 600 0.75rem/1.4 var(--ff-latin);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-photo);
}
:lang(ar) .eb-in {
  font: 600 0.9375rem/1.7 var(--ff-ar);
  letter-spacing: 0;
  text-transform: none;
}
.slide-title {
  margin-right: -0.32em; /* the last letter's tracking hangs past the edge */
  font: 400 clamp(2.125rem, 3.125vw, 3.125rem) / 1.66 var(--ff-latin-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-photo);
  text-wrap: balance;
}
:lang(ar) .slide-title {
  margin-right: 0;
  font: 500 clamp(2.125rem, 3.3vw, 3.25rem) / 1.6 var(--ff-ar);
  letter-spacing: 0;
  word-spacing: 0.12em;
  text-transform: none;
}
/* one mask per line, so the words can sink out of view like the template's */
.slide-title .ln {
  display: block;
  overflow: hidden;
  padding-block: 0.14em 0.2em;
  margin-block: -0.14em -0.2em;
}
.slide-title .ln-in {
  display: block;
}
.slide-title .w,
.slide-title .c {
  display: inline-block;
}
.slide-subtitle .sub-in {
  display: block;
}
.slide-subtitle {
  max-width: 36rem;
  margin-top: 1.5rem;
  overflow: hidden;
  font: 300 1.125rem/1.7 var(--ff-latin);
  color: var(--on-photo);
  text-wrap: pretty;
}
:lang(ar) .slide-subtitle {
  max-width: 33rem;
  font: 400 1.1875rem/1.85 var(--ff-ar);
}
/* one emphasised word per headline, in the brand accent */
.slide-title .hl {
  font-style: normal;
  color: var(--accent-photo);
}
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  margin-top: 2.35rem;
}
/* Revolution Slider gives the template fixed sizes above 1240px */
@media (min-width: 1200px) and (max-width: 1919px) {
  .slide-title {
    font-size: 45px;
    line-height: 75px;
    letter-spacing: 16px;
    margin-right: -16px;
  }
}
@media (min-width: 1920px) {
  .slide-title {
    font-size: 50px;
    line-height: 80px;
    letter-spacing: 16px;
    margin-right: -16px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .slide-title {
    font-size: 35px;
    line-height: 65px;
    letter-spacing: 16px;
    margin-right: -16px;
  }
}

/* entrance: letters tumble in one by one (Arabic keeps whole words, it joins) */
.slide.is-entering .slide-title .c,
:lang(ar) .slide.is-entering .slide-title .w {
  animation: kw-char 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation-delay: calc(1.3s + var(--i, 0) * var(--stagger, 50ms));
}
/* Arabic joins, so whole words slide in from the reading side instead */
:lang(ar) .slide.is-entering .slide-title .w {
  animation-name: kw-word-ar;
}
.slide.is-entering .slide-eyebrow .eb-in {
  animation: kw-sub-in 0.62s var(--ease-out-strong) 1.12s both;
}
.slide.is-entering .slide-subtitle .sub-in {
  animation: kw-sub-in 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) 1.7s both;
}
/* the two actions land a beat apart, so the primary reads first */
.slide.is-entering .slide-actions .btn {
  animation: kw-act-in 0.58s var(--ease-out-strong) 1.86s both;
}
.slide.is-entering .slide-actions .btn + .btn {
  animation-delay: 1.95s;
}
/* exit: the lines sink inside their masks, the button drops away */
.slide.is-leaving .slide-title .ln-in {
  animation: kw-line-out 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
.slide.is-leaving .slide-eyebrow .eb-in {
  animation: kw-line-out 0.72s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
.slide.is-leaving .slide-subtitle {
  animation: kw-fade-out 1s var(--ease-io) both;
}
.slide.is-leaving .slide-actions {
  animation: kw-drop-out 0.85s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
@keyframes kw-char {
  0% {
    opacity: 0;
    transform: perspective(600px) translateX(105%) rotateX(45deg) rotateZ(90deg);
  }
  0.1% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes kw-word-ar {
  from {
    opacity: 0;
    transform: translateX(-105%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kw-sub-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes kw-act-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kw-line-out {
  to {
    transform: translateY(100%);
  }
}
@keyframes kw-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes kw-drop-out {
  to {
    transform: translateY(175%);
    opacity: 0;
  }
}
@keyframes kw-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- the rail: proof points and slider controls, one band ---------- */

/* The foot of the hero is a composed band, not three floating widgets: the
   facts on the caption side, PREV / ticks / NEXT on the panel side, both on a
   rule and a scrim of their own. The composition is physically fixed in both
   languages (panels left, words right), so this block uses physical sides,
   like the caption above it. */
.hero-rail {
  position: absolute;
  z-index: var(--z-caption); /* over the slides, under the ivory panels */
  left: var(--vp-w);
  right: 0;
  bottom: 0;
  padding: 1.15rem var(--wrap-edge) 1.35rem 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  pointer-events: none;
}
.hero-rail > * {
  pointer-events: auto;
}
html:not([dir="rtl"]) .hero-rail {
  flex-direction: row-reverse; /* the facts stay under the words in both languages */
}
/* the scrim rises out of the rail, so the photograph keeps its top two thirds */
.hero-rail::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(var(--scrim), 0.92) 0,
    rgba(var(--scrim), 0.78) 42%,
    rgba(var(--scrim), 0) 100%
  );
}
.hero-rail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: var(--wrap-edge);
  height: 1px;
  background: var(--rail-rule);
}
.hero-proof {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.proof {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  animation: kw-rise 0.6s var(--ease-out-strong) both;
}
.proof + .proof {
  margin-inline-start: clamp(1.1rem, 2.3vw, 2.35rem);
  padding-inline-start: clamp(1.1rem, 2.3vw, 2.35rem);
  border-inline-start: 1px solid var(--rail-rule);
}
.proof:nth-child(1) { animation-delay: 2.05s; }
.proof:nth-child(2) { animation-delay: 2.12s; }
.proof:nth-child(3) { animation-delay: 2.19s; }
.proof:nth-child(4) { animation-delay: 2.26s; }
.proof-fig {
  font: 600 1rem/1.3 var(--ff-latin);
  color: var(--accent-photo);
}
:lang(ar) .proof-fig {
  font: 600 1.0625rem/1.55 var(--ff-ar);
}
.proof-lab {
  font: 300 0.78125rem/1.5 var(--ff-latin);
  color: var(--on-photo-dim);
}
:lang(ar) .proof-lab {
  font: 400 0.8125rem/1.6 var(--ff-ar);
}

/* PREV / NEXT with the position ticks between them */
.hero-arrows {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.4rem);
  flex: none;
  animation: kw-rise 0.6s var(--ease-out-strong) 1.98s both;
}
.hero-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  min-height: 44px;
  font: 400 0.9375rem/1 var(--ff-latin-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-photo);
  transition: color 0.18s ease-out, transform 0.16s ease-out;
}
:lang(ar) .hero-arrow {
  font: 500 0.9375rem/1 var(--ff-ar);
  letter-spacing: 0;
}
.hero-arrow:active {
  transform: scale(0.97);
}
.hero-ticks {
  display: inline-flex;
  align-items: center;
}
.tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 44px;
  border-radius: 3px;
}
.tick > span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(250, 247, 240, 0.4);
  transition: background-color 0.18s ease-out, transform 0.22s var(--ease-out-strong);
}
.tick[aria-current="true"] > span {
  background: var(--accent-photo);
  transform: scaleX(1.55);
}
.tick:active {
  transform: scale(0.94);
}
.ico-long {
  width: 1.3em;
  height: 1em;
  opacity: 0.4;
  transition: opacity 0.18s ease-out, translate 0.18s ease-out;
}
.hero-arrow .ico-long {
  opacity: 0.3;
}
@media (hover: hover) and (pointer: fine) {
  .hero-arrow:hover .ico-long,
  .owl-arrow:hover .ico-long {
    opacity: 1;
  }
  .hero-arrow:hover {
    color: var(--accent-photo);
  }
  .tick:hover > span {
    background: var(--on-photo);
  }
  /* the glyph leans the way it is about to travel */
  html:not([dir="rtl"]) .arrow-next:hover .ico-long,
  [dir="rtl"] .arrow-prev:hover .ico-long {
    translate: 3px;
  }
  html:not([dir="rtl"]) .arrow-prev:hover .ico-long,
  [dir="rtl"] .arrow-next:hover .ico-long {
    translate: -3px;
  }
}
.hero-arrow:focus-visible .ico-long {
  opacity: 1;
}
/* arrows point back and forward along the reading direction */
.arrow-prev .ico-long,
.owl-prev .ico-long {
  transform: scaleX(-1);
}
[dir="rtl"] .arrow-prev .ico-long,
[dir="rtl"] .owl-prev .ico-long {
  transform: none;
}
[dir="rtl"] .arrow-next .ico-long,
[dir="rtl"] .owl-next .ico-long {
  transform: scaleX(-1);
}
.hero :focus-visible,
.navbar:not(.is-affix):not(.menu-open) :focus-visible,
.header-phone:focus-visible {
  outline-color: var(--focus-photo);
}
.brand-panel :focus-visible,
.vertical-panel-content :focus-visible {
  outline-color: var(--focus);
}

/* ---------- header and slider, responsive ---------- */

@media (min-width: 768px) {
  :root {
    --gutter: 30px;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 15px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-phone {
    display: none;
  }
}
@media (min-width: 992px) {
  /* the template sets phone and nav on one line; the tool buttons follow it */
  .navbar:not(.is-affix):not(.menu-open) .navbar-group {
    align-items: flex-start;
  }
  .navbar:not(.is-affix):not(.menu-open) .navbar-menu a {
    padding-top: calc(5.9vmin + 4px);
  }
  :lang(ar) .navbar:not(.is-affix):not(.menu-open) .navbar-menu a {
    padding-top: calc(5.9vmin + 3px);
  }
  .navbar:not(.is-affix):not(.menu-open) .navbar-tools {
    margin-top: calc(5.9vmin - 8px);
  }
  /* the resting row is full, so the saved list sits under the phone number;
     the fixed bar has room for it among the tools */
  .navbar:not(.is-affix):not(.menu-open) .quote-link {
    position: absolute;
    left: 50vmin;
    top: calc(5.9vmin + 36px);
  }
  /* the English labels run longer: a little less tracking and gap keeps the
     resting row clear of the phone number and the brand panel */
  html:not([dir="rtl"]) .navbar:not(.is-affix):not(.menu-open) .navbar-menu {
    gap: clamp(1.6em, min(20vw - 240px, 12.5vw - 12.5vmin - 28px), 4.2em);
    letter-spacing: 0.2em;
  }
}
@media (max-width: 767px) {
  .header-phone {
    display: none;
  }
}
@media (max-width: 991px) {
  .affix-sentinel {
    top: 1px; /* the template's mobile bar affixes at once, so the menu stays reachable */
  }
  .navbar-group {
    display: none;
  }
  .navbar.is-affix {
    background: var(--menu-bg);
  }
  .navbar.is-affix,
  .navbar.menu-open {
    padding-block: 0.25rem;
  }
  .navbar {
    padding-top: calc(6vmin - 14px);
  }
  .navbar-inner {
    width: calc(100% - 2 * var(--gutter));
  }
  .menu-btn {
    display: flex;
  }
  .navbar-quick {
    display: flex;
    margin-left: auto;
  }
  .navbar-quick + .menu-btn {
    margin-left: 4px;
  }
  .navbar-brand img {
    width: 112px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  /* portrait tablets: the caption drops below PREV / NEXT and uses the width */
  .slide-caption {
    top: max(calc(50% - 12rem), calc(43.5vmin + 20px));
    width: calc(100% - var(--vp-w) - 2 * var(--wrap-edge));
  }
  .slide-title {
    font-size: 27px;
    line-height: 51px;
    letter-spacing: 12px;
    margin-right: -12px;
  }
}
@media (max-width: 767px) {
  .brand-panel {
    padding: 22px 12px 14px;
  }
  .brand-ghost {
    font-size: 6.5625rem;
  }
  .slide-bg::after {
    background:
      linear-gradient(to top, rgba(var(--scrim), 0.58) 0%, rgba(var(--scrim), 0.34) 30%, rgba(var(--scrim), 0.3) 62%, rgba(var(--scrim), 0) 82%),
      linear-gradient(to left, rgba(var(--scrim), 0.5) 0%, rgba(var(--scrim), 0.28) 100%);
  }
  .brand img {
    width: min(124px, 100%);
  }
  .slide-number {
    margin-top: 18px;
  }
  .slide-caption {
    right: var(--gutter);
    top: 23%;
    bottom: auto;
    width: calc(100% - var(--vp-w) - 2 * var(--gutter));
  }
  .slide-eyebrow {
    margin-bottom: 0.7rem;
  }
  .eb-in {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
  }
  :lang(ar) .eb-in {
    font-size: 0.8125rem;
  }
  .slide-title {
    font-size: clamp(1.25rem, 5.6vw, 1.5rem);
    letter-spacing: 0.28em;
    margin-right: -0.28em;
    line-height: 1.4;
  }
  :lang(ar) .slide-title {
    font-size: clamp(1.5rem, 6.4vw, 1.75rem);
    word-spacing: 0.08em;
    line-height: 1.42;
  }
  .slide-subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.9rem;
  }
  :lang(ar) .slide-subtitle {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-top: 0.9rem;
  }
  .slide-actions {
    margin-top: 1.25rem;
    gap: 0.6rem;
  }
  /* the labels have to fit the narrow column, so the pills tighten */
  .slide-actions .btn {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1em 1.5em;
    min-height: 44px;
  }
  :lang(ar) .slide-actions .btn {
    font-size: 0.875rem;
    padding: 0.85em 1.35em;
  }
  /* the rail stacks: the facts in two columns, the controls on their own line */
  .hero-rail,
  html:not([dir="rtl"]) .hero-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.8rem var(--gutter) 0.85rem 0.9rem;
  }
  .hero-rail::after {
    left: 0.9rem;
    right: var(--gutter);
  }
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.85rem;
  }
  .proof + .proof {
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .proof:nth-child(2n) {
    padding-inline-start: 0.9rem;
    border-inline-start: 1px solid var(--rail-rule);
  }
  .proof-fig,
  :lang(ar) .proof-fig {
    font-size: 0.9375rem;
  }
  .proof-lab,
  :lang(ar) .proof-lab {
    font-size: 0.75rem;
    line-height: 1.45;
  }
  .hero-arrow {
    font-size: 0.875rem;
  }
  .hero-arrows {
    justify-content: space-between;
  }
  .vertical-panel-content {
    padding-bottom: 2.5vh;
  }
}
@media (max-width: 767px) and (max-height: 700px) {
  .slide-caption {
    top: 25%; /* the short screen keeps the subtitle, so the block starts higher */
  }
  /* two facts, not four: the rest of the page carries them anyway */
  .proof:nth-child(n + 3) {
    display: none;
  }
  .slide-subtitle,
  :lang(ar) .slide-subtitle {
    display: block;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
  }
  .slide-caption .btn {
    margin-top: 1rem;
  }
}
@media (max-width: 767px) and (max-height: 580px) {
  .slide-subtitle {
    display: none;
  }
}

/* reduced motion: slides cut instead of zooming, words and bars appear in place */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide.is-entering .slide-bg,
  .slide.is-entering .slide-bg .pic,
  .slide.is-entering .slide-title .c,
  .slide.is-entering .slide-title .w,
  .slide.is-entering .slide-subtitle .sub-in,
  .slide.is-entering .slide-eyebrow .eb-in,
  .slide.is-entering .slide-actions .btn,
  .slide.is-leaving .slide-title .ln-in,
  .slide.is-leaving .slide-subtitle,
  .slide.is-leaving .slide-eyebrow .eb-in,
  .slide.is-leaving .slide-actions,
  .proof,
  .hero-arrows,
  .slot canvas,
  .slide.is-entering.has-slots .slide-bg::after,
  .navbar.is-affix {
    animation: none;
  }
  .btn,
  .ico-long,
  .tick > span,
  .hero-arrow,
  .menu-btn span,
  .skip {
    transition: none;
  }
  .tick[aria-current="true"] > span {
    transform: none;
    width: 26px;
  }
}
