:root {
  --stage-w: 1440px;
  --stage-h: 900px;
  --bg-0: #031112;
  --bg-1: #06201f;
  --deep: #0b3535;
  --teal: #0d8274;
  --mint: #45d8c3;
  --ink: #e8f6f3;
  --ink-2: #9dbdb7;
  --ink-3: #6f9a93;
  --line: rgba(69, 216, 195, 0.16);
  --glass-1: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.02);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--bg-0);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- shared bits ---------- */

.glass {
  background: linear-gradient(135deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--mint);
  color: #032220;
  box-shadow: 0 10px 30px -10px rgba(69, 216, 195, 0.55);
}
.btn-primary:hover {
  background: #6ae6d4;
}
.btn-ghost {
  border: 1px solid rgba(69, 216, 195, 0.4);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(69, 216, 195, 0.08);
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- header, rail, back to top ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(3, 17, 18, 0.9), rgba(3, 17, 18, 0));
}
.brand img {
  width: 92px;
  height: auto;
}
.nav {
  display: none;
}
/* WhatsApp chat button beside Book now. */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
  transition: background-color 0.2s, border-color 0.2s;
}
.wa-btn:hover,
.wa-btn:focus-visible {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.6);
}
.btn-wa svg {
  color: #25d366;
  margin-inline-end: 8px;
  vertical-align: -5px;
}

/* Round home button beside the nav pill (desktop); phones use the menu. */
.home-btn {
  display: none;
}

/* Mobile menu: a button in the header opens the nav as a panel under it. */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
}
.menu-btn path {
  transform-origin: 12px 12px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded='true'] .m1 {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .m2 {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] .m3 {
  transform: translateY(-5px) rotate(-45deg);
}
.menu-open .nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 12px;
  z-index: 40;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(3, 17, 18, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: menu-in 0.2s ease-out;
}
.menu-open .nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.menu-open .nav a:hover,
.menu-open .nav a:focus-visible,
.menu-open .nav a[aria-current='page'] {
  background: rgba(69, 216, 195, 0.12);
}
/* The language switch lives in the header; on the narrowest phones it moves
   into the menu to make room. */
.nav .nav-lang {
  display: none;
}
.brand {
  flex: none;
}
@media (max-width: 359px) {
  .hdr-end .lang {
    display: none;
  }
  .menu-open .nav .nav-lang {
    display: block;
  }
  .hdr {
    padding-inline: 12px;
  }
}
@media (max-width: 380px) {
  .hdr {
    gap: 10px;
  }
  .hdr-end {
    gap: 10px;
  }
  .brand img {
    width: 78px;
  }
  .hdr-end .btn-sm {
    padding-inline: 12px;
  }
  .wa-btn {
    width: 36px;
    height: 36px;
  }
  .menu-btn {
    width: 38px;
    height: 38px;
  }
}
.hdr-end .btn-sm {
  white-space: nowrap;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.hdr-end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-2);
}
.lang:hover {
  color: var(--ink);
}

.rail {
  display: none;
}

.totop {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 21;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.totop.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- mobile-first flow layout ---------- */

.viewport {
  position: relative;
}
.stage {
  position: relative;
  background: radial-gradient(120% 60% at 80% 0%, rgba(13, 130, 116, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.stage canvas.pc {
  display: none;
}
.scene {
  position: relative;
  padding: 72px 20px;
}
.scene h1 {
  font-size: clamp(38px, 10vw, 56px);
  line-height: 1.05;
}
.scene h2 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
}
.lede,
.thead > p:last-child,
.copy > p:last-child,
.cta p {
  color: var(--ink-2);
  font-size: 17px;
  margin-top: 16px;
  max-width: 560px;
}

.sc-hero {
  padding-top: 32px;
}
.canvas-wrap,
.pc-mobile {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 24px;
}
.scroll-cue {
  display: none;
}

.sc-services .lines,
.sc-services .hit {
  display: none;
}
.cards {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.tc {
  display: block;
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.tc .idx {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--mint);
}
.tc h3 {
  font-size: 18px;
  margin: 10px 0 6px;
}
.tc p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.tc.on,
.tc:hover {
  border-color: rgba(69, 216, 195, 0.6);
  box-shadow: 0 0 0 1px rgba(69, 216, 195, 0.25), 0 24px 50px -24px rgba(69, 216, 195, 0.45);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.pills li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
}

/* assessment: score, steps, CTA on one centre axis */
.sc-assess {
  text-align: center;
}
.sc-assess .thead > p:last-child {
  margin-inline: auto;
}
.readout {
  display: none;
}
.steps {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 360px;
  text-align: start;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.steps .idx {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(69, 216, 195, 0.15);
  color: var(--mint);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}
.steps b {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
}
.assess-cta {
  margin-top: 28px;
}

.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
/* Glassmorphism tiles: dark translucent frost with a hairline border, in
   the same family as the service cards. A faint glow follows the pointer
   (--mx/--my, set from JS). */
.certs li {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  height: 72px;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.certs li::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(160px 110px at var(--mx) var(--my), rgba(69, 216, 195, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.certs li:hover::before {
  opacity: 1;
}
.certs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Wordmarks have dark text: flip lightness, keep hue, so the text reads
   light on dark glass while the coloured rings stay recognisable. */
.certs img.wm {
  filter: invert(1) hue-rotate(180deg) saturate(1.3) brightness(1.05);
}
/* Dark-blue seals sink into the dark glass; lift them a little. */
.certs img.lift {
  filter: brightness(1.7) saturate(1.15);
}

.chips {
  margin-top: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}
.chips-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: chips-run 40s linear infinite;
}
.chips-set {
  display: flex;
  gap: 20px;
}
.chips img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}
@keyframes chips-run {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}
@keyframes chips-run-rtl {
  to {
    transform: translateX(calc(50% + 10px));
  }
}
[dir='rtl'] .chips-track {
  animation-name: chips-run-rtl;
}

.sc-cta {
  text-align: center;
}
.sc-cta .cta p {
  margin-inline: auto;
}
.sc-cta .actions {
  justify-content: center;
}

.foot {
  background: linear-gradient(180deg, #072827, #041516);
  padding-bottom: 40px;
}
.foot .rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69, 216, 195, 0.8), transparent);
  margin-bottom: 48px;
}
.foot-grid {
  display: grid;
  gap: 36px;
}
.foot-grid p {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 16px;
  max-width: 380px;
}
.foot h3 {
  font-size: 15px;
  color: var(--mint);
  margin-bottom: 14px;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.copy-note {
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- desktop: fixed stage + scroll story ---------- */

@media (min-width: 900px) {
  .hdr {
    position: fixed;
    inset: 0 0 auto;
    padding: 18px 40px;
    background: none;
  }
  .brand img {
    width: 110px;
  }
  .nav {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--ink-2);
    transition: color 0.2s, background-color 0.2s;
  }
  .nav a:hover {
    color: var(--ink);
    background: rgba(69, 216, 195, 0.1);
  }
  .menu-btn,
  .nav .nav-extra {
    display: none;
  }
  .nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--ink-2);
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  }
  .home-btn:hover,
  .home-btn:focus-visible {
    color: var(--ink);
    background: rgba(69, 216, 195, 0.1);
  }
  .home-btn[aria-current='page'] {
    color: var(--mint);
    border-color: rgba(69, 216, 195, 0.35);
  }

  .rail {
    position: fixed;
    inset-inline-end: 28px;
    top: 50%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-50%);
  }
  .rail button {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(157, 189, 183, 0.35);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s var(--ease-out);
  }
  .rail button[aria-current='step'] {
    background: var(--mint);
    transform: scale(1.35);
  }
  .rail span {
    position: absolute;
    inset-inline-end: 22px;
    top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    font-size: 12px;
    color: var(--ink-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .rail button:hover span,
  .rail button:focus-visible span {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .totop {
    bottom: 40px;
    inset-inline-end: 64px;
  }

  .viewport {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .stage {
    flex: none;
    width: var(--stage-w);
    height: var(--stage-h);
    overflow: hidden;
    transform: scale(var(--stage-scale, 1));
    background: radial-gradient(760px 520px at 78% 22%, rgba(13, 130, 116, 0.32), transparent 70%),
      radial-gradient(700px 520px at 8% 100%, rgba(69, 216, 195, 0.08), transparent 70%),
      radial-gradient(1000px 700px at 50% 50%, rgba(11, 53, 53, 0.55), transparent 75%),
      linear-gradient(180deg, var(--bg-1), var(--bg-0));
  }
  .stage canvas.pc {
    display: block;
    position: absolute;
    inset: 0;
    width: var(--stage-w);
    height: var(--stage-h);
    z-index: 2;
    pointer-events: none;
  }
  .pc-mobile {
    display: none;
  }

  .scene {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 0;
    opacity: var(--v, 0);
    pointer-events: none;
  }
  .scene.is-near {
    pointer-events: auto;
  }
  .rv {
    transform: translateY(calc(var(--sd, 0) * -60px));
    filter: blur(calc((1 - var(--v, 0)) * 6px));
  }

  .scene h1 {
    font-size: 68px;
  }
  .scene h2 {
    font-size: 44px;
  }

  .thead {
    position: absolute;
    top: 96px;
    left: 50%;
    width: 640px;
    margin-left: -320px;
    text-align: center;
  }
  .thead > p:last-child {
    margin-inline: auto;
  }

  /* hero */
  .hero-copy {
    position: absolute;
    left: 96px;
    top: 250px;
    width: 600px;
  }
  .scroll-cue {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 96px;
    bottom: 64px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .scroll-cue span {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--mint), transparent);
    animation: cue 2.2s var(--ease-out) infinite;
    transform-origin: top;
  }
  @keyframes cue {
    0% {
      transform: scaleY(0);
    }
    60% {
      transform: scaleY(1);
      opacity: 1;
    }
    100% {
      transform: scaleY(1);
      opacity: 0;
    }
  }

  /* services */
  .sc-services .thead {
    width: 660px;
    margin-left: -330px;
    top: 84px;
  }
  .sc-services .thead .eyebrow {
    margin-bottom: 8px;
  }
  .sc-services .thead > p:last-child {
    margin-top: 10px;
    max-width: 520px;
  }
  .sc-services .thead h2 {
    font-size: 34px;
  }
  .sc-services .thead > p:last-child {
    font-size: 15px;
  }
  .sc-services .lines {
    display: block;
    position: absolute;
    inset: 0;
    width: var(--stage-w);
    height: var(--stage-h);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
  }
  .sc-services.lines-on .lines {
    opacity: 1;
  }
  .lines polyline {
    fill: none;
    stroke: rgba(69, 216, 195, 0.28);
    stroke-width: 1.1;
    transition: stroke 0.3s, stroke-width 0.3s;
  }
  .lines polyline.on {
    stroke: #ecfffb;
    stroke-width: 1.5;
  }
  .lines circle {
    fill: var(--bg-0);
    stroke: var(--mint);
    stroke-width: 1.5;
  }
  .lines circle.on {
    fill: #ecfffb;
  }
  .cards {
    display: block;
    margin: 0;
  }
  .tc {
    position: absolute;
    width: 300px;
    height: 170px;
  }
  .tc[data-track='0'],
  .tc[data-track='1'],
  .tc[data-track='2'] {
    left: 70px;
  }
  .tc[data-track='3'],
  .tc[data-track='4'],
  .tc[data-track='5'] {
    left: 1070px;
  }
  .tc[data-track='0'],
  .tc[data-track='3'] {
    top: 165px;
  }
  .tc[data-track='1'],
  .tc[data-track='4'] {
    top: 385px;
  }
  .tc[data-track='2'],
  .tc[data-track='5'] {
    top: 605px;
  }
  .tc.on {
    transform: translateY(-4px);
  }
  .sc-services .hit {
    display: none;
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
  }
  .sc-services.lines-on .hit {
    display: block;
  }

  /* CSOC + skills: copy on the left */
  .sc-csoc .copy,
  .sc-skills .copy {
    position: absolute;
    left: 96px;
    width: 540px;
  }
  .sc-csoc .copy {
    top: 270px;
  }
  .sc-skills .copy {
    top: 150px;
  }

  /* assessment */
  /* assessment: everything hangs off the stage's centre line (x = 720) */
  .sc-assess .thead {
    top: 84px;
    width: 900px;
    margin-left: -450px;
  }
  .readout {
    display: block;
    position: absolute;
    left: 520px;
    top: 548px;
    width: 400px;
  }
  .readout .score {
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .readout .of {
    margin-inline-start: 6px;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink-3);
  }
  .readout .level {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-3);
  }
  .readout [data-level] {
    color: var(--mint);
    font-weight: 600;
  }
  .steps {
    position: absolute;
    left: 360px;
    top: 668px;
    width: 720px;
    max-width: none;
    margin: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .steps li {
    justify-content: center;
    padding: 12px 16px;
  }
  .assess-cta {
    position: absolute;
    left: 520px;
    top: 752px;
    width: 400px;
    margin: 0;
  }

  /* skills */
  .tilt {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-origin: 380px 560px;
    transform: perspective(1400px) rotateY(calc(var(--lx, 0) * 7deg)) rotateX(calc(var(--ly, 0) * -5deg));
    transition: transform 0.4s var(--ease-out);
    will-change: transform;
  }
  .certs {
    pointer-events: auto;
    position: absolute;
    left: 96px;
    top: 470px;
    width: 600px;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
  }
  .certs {
    width: 660px;
    gap: 12px;
  }
  .certs li {
    height: 84px;
    padding: 10px 12px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  }
  .certs li:hover {
    transform: translateY(-4px);
    border-color: rgba(69, 216, 195, 0.4);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 24px 44px -20px rgba(69, 216, 195, 0.35);
  }

  /* clients */
  .sc-clients .thead {
    top: 220px;
  }
  .sc-clients .chips {
    position: absolute;
    left: 0;
    right: 0;
    top: 450px;
    margin: 0;
  }
  .chips img {
    width: 220px;
    height: 165px;
  }

  /* cta */
  .sc-cta .cta {
    position: absolute;
    top: 420px;
    left: 50%;
    width: 700px;
    margin-left: -350px;
  }
  .sc-cta h2 {
    font-size: 52px;
  }

  /* footer */
  .foot {
    z-index: 4;
    opacity: var(--fo, 0);
    transform: translateY(var(--fy, 100%));
    padding: 120px 120px 0;
  }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
  }
  .foot .copy-note {
    position: absolute;
    left: 120px;
    bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .tc,
  .totop,
  .tilt,
  .rail button,
  .rail span {
    transition: none;
  }
  .chips {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .chips-track {
    width: auto;
    animation: none;
  }
  .chips-set {
    flex-wrap: wrap;
    justify-content: center;
  }
  .chips-set:nth-child(2),
  .chips-set img:nth-child(n + 5) {
    display: none;
  }
  .scroll-cue span {
    animation: none;
  }
}

/* ======================================================================
   Arabic / right-to-left
   Most layout uses logical properties already; these rules cover Arabic
   typography and the places that are physically positioned.
   ====================================================================== */

:root:lang(ar) {
  --font-head: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
/* Letter-spacing breaks Arabic letter joining; uppercase does nothing. */
:lang(ar) * {
  letter-spacing: 0 !important;
}
:lang(ar) .eyebrow {
  text-transform: none;
  font-size: 13.5px;
}
:lang(ar) body {
  line-height: 1.75;
}
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  line-height: 1.35;
  font-weight: 700;
}
/* Phone numbers, emails and codes stay left-to-right inside Arabic text. */
[dir='rtl'] [dir='ltr'] {
  unicode-bidi: isolate;
}

/* Arrows point the way you read. */
[dir='rtl'] .svc-more svg,
[dir='rtl'] .go svg {
  transform: scaleX(-1);
}

@media (min-width: 900px) {
  /* Homepage stage: mirror the physically positioned blocks. The particle
     canvas is mirrored too (see below), so text and shapes swap sides together. */
  [dir='rtl'] .hero-copy,
  [dir='rtl'] .scroll-cue,
  [dir='rtl'] .sc-csoc .copy,
  [dir='rtl'] .sc-skills .copy,
  [dir='rtl'] .certs {
    left: auto;
    right: 96px;
  }
  [dir='rtl'] .tc[data-track='0'],
  [dir='rtl'] .tc[data-track='1'],
  [dir='rtl'] .tc[data-track='2'] {
    left: 1070px;
  }
  [dir='rtl'] .tc[data-track='3'],
  [dir='rtl'] .tc[data-track='4'],
  [dir='rtl'] .tc[data-track='5'] {
    left: 70px;
  }
  [dir='rtl'] .tc .num {
    right: auto;
    left: 22px;
  }
  [dir='rtl'] .tilt {
    transform-origin: 1060px 560px;
  }
  [dir='rtl'] .foot .copy-note {
    left: auto;
    right: 120px;
  }
  /* The canvas and the service leader lines are drawn in left-to-right stage
     coordinates; flipping them mirrors the scene for right-to-left. Shapes
     that must not read mirrored (the CYBRT mark, the check mark) are built
     pre-flipped in js/shapes.js. */
  [dir='rtl'] .stage canvas.pc,
  [dir='rtl'] .sc-services .lines {
    transform: scaleX(-1);
  }
  [dir='rtl'] .rail span {
    inset-inline-end: auto;
    inset-inline-start: 22px;
    transform: translate(-6px, -50%);
  }
  [dir='rtl'] .rail button:hover span,
  [dir='rtl'] .rail button:focus-visible span {
    transform: translate(0, -50%);
  }
}
[dir='rtl'] canvas.pc-mobile {
  transform: scaleX(-1);
}

/* Footer social icons: Instagram, LinkedIn, WhatsApp, email. */
.foot ul.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.foot .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.foot .socials a:hover,
.foot .socials a:focus-visible {
  color: var(--mint);
  background: rgba(69, 216, 195, 0.1);
  border-color: rgba(69, 216, 195, 0.35);
}
