/* ProjectManager4U — design system built on the Clarix (GetLayers) visual language.
   Logical properties (inline-start/end) are used throughout so /he/ mirrors correctly. */

:root {
  --bg: #f6fafe;
  --page: #ffffff;
  --ink: #000000;
  --ink-2: rgba(0, 0, 0, 0.72);
  --ink-3: rgba(0, 0, 0, 0.5);
  --hair: rgba(0, 0, 0, 0.1);
  --blue: #0091ff;
  --cyan: #00aaff;
  --purple: #8000ff;
  --pink: #ff0099;
  --red: #ff0000;
  --rainbow: linear-gradient(to right, #0091ff, #00aaff, #8000ff, #ff0099, #ff0000);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --gutter: 3.125rem;
  --radius: 2rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'Sarabun', 'Commissioner', 'Heebo', system-ui, sans-serif;
}
:root[dir='rtl'] { --rainbow: linear-gradient(to left, #0091ff, #00aaff, #8000ff, #ff0099, #ff0000); }

/* Hide scrollbar for WebKit browsers */
::-webkit-scrollbar { display: none; }
html {
  /* Base 16px at 1920px width. Clamps at 12px for smaller screens to maintain readability */
  font-size: max(12px, 0.833333vw);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
:root[dir='rtl'] body { font-family: 'Heebo', 'Sarabun', system-ui, sans-serif; }
:root[lang^='ru'] body { font-family: 'Sarabun', 'Commissioner', system-ui, sans-serif; }
body.is-home { height: 2800vh; /* Long cinematic scroll */ }
html:not(.is-loaded) body.is-home { overflow: hidden; }
canvas { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: #00aaff; color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 1rem; inset-inline-start: 1rem; z-index: 10000; background: #000; color: #fff; padding: 0.75rem 1.25rem; border-radius: 2rem; transform: translateY(-200%); transition: transform 0.2s; text-decoration: none; }
.skip-link:focus { transform: none; }

.webgl { position: fixed; top: 0; left: 0; pointer-events: none; }
:root[dir='rtl'] .webgl { transform: scaleX(-1); }
.bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
:root[dir='rtl'] .bg-canvas { transform: scaleX(-1); }

.preload-hidden { opacity: 0 !important; pointer-events: none !important; }
.reveal-anim {
  transition: transform 1.6s var(--ease) 0.6s, opacity 1.6s ease 0.6s;
  will-change: transform, opacity;
}
.preload-hidden.reveal-anim.from-top { transform: translateY(-20px); }
.preload-hidden.reveal-anim.from-bottom { transform: translateY(20px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #000; font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1; direction: ltr; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand b { font-weight: 600; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .brand-tld { opacity: 0.45; }

/* ---------- Header (hero-style, scrolls with the page) ---------- */
.hero-logo { position: absolute; top: 2.5rem; inset-inline-start: var(--gutter); z-index: 6; }
.hero-nav {
  position: absolute; top: 2.5rem; inset-inline-end: var(--gutter); z-index: 6;
  font-weight: 400; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}
.hero-nav a {
  color: #000; text-decoration: none; font-size: 1.1rem; font-weight: 400;
  text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s ease; cursor: pointer;
}
.hero-nav a:hover { transform: translateX(-4px); }
:root[dir='rtl'] .hero-nav a:hover { transform: translateX(4px); }
.hero-nav a[aria-current='page'] { font-weight: 500; }
.hero-nav a[aria-current='page']::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--rainbow); }
.nav-arrow { font-size: 1.2rem; font-weight: 400; line-height: 1; display: inline-block; }
:root[dir='rtl'] .nav-arrow { transform: scaleX(-1); }

.lang-switch { display: flex; gap: 0.25rem; margin-top: 0.75rem; padding: 0.25rem; border: 1px solid var(--hair); border-radius: 2rem; background: rgba(255,255,255,0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); direction: ltr; }
.lang-switch a { font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.35rem 0.7rem; border-radius: 2rem; text-decoration: none; text-transform: uppercase; opacity: 0.6; transition: opacity 0.2s, background 0.2s; }
.lang-switch a:hover { opacity: 1; transform: none; }
.lang-switch a[aria-current='true'] { background: #000; color: #fff; opacity: 1; }
.lang-switch a[aria-current='true']::before { display: none; }

/* Floating menu pill + fullscreen overlay */
.menu-pill {
  position: fixed; top: 1.5rem; inset-inline-end: var(--gutter); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.1rem 0.7rem 1.4rem;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 3rem; background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0, 40, 90, 0.08);
  font: 400 0.9rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #000; cursor: pointer;
  transform: translateY(-220%); transition: transform 0.6s var(--ease);
}
.menu-pill.is-visible, .menu-open .menu-pill { transform: none; }
.menu-pill-icon { position: relative; width: 1.25rem; height: 0.7rem; }
.menu-pill-icon::before, .menu-pill-icon::after { content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-pill-icon::before { top: 0; }
.menu-pill-icon::after { top: calc(100% - 1.5px); }
.menu-open .menu-pill-icon::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-open .menu-pill-icon::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem;
  padding: 8rem var(--gutter) 3rem; box-sizing: border-box;
  background: rgba(246, 250, 254, 0.78); backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease); visibility: hidden;
}
.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 0.25rem; align-self: end; }
.menu-overlay nav a {
  font-weight: 200; font-size: clamp(2.75rem, 7vw, 8rem); line-height: 1.05; letter-spacing: -0.03em; text-decoration: none;
  display: flex; align-items: baseline; gap: 1.5rem; transition: transform 0.4s var(--ease), opacity 0.3s;
  opacity: 0; transform: translateY(40px);
}
.menu-open .menu-overlay nav a { opacity: 1; transform: none; }
.menu-overlay nav a small { font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.4; font-weight: 400; }
.menu-overlay nav a:hover { transform: translateX(1rem); }
:root[dir='rtl'] .menu-overlay nav a:hover { transform: translateX(-1rem); }
.menu-overlay nav a[aria-current='page'] { font-weight: 400; }
.menu-overlay aside { align-self: end; display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.05rem; }
.menu-overlay aside .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.5; }
.menu-overlay aside a { text-decoration: none; }
.menu-overlay .lang-switch { align-self: flex-start; }

/* ---------- Clarix hero ---------- */
.hero-title {
  position: absolute; top: 43%; transform: translateY(-50%); inset-inline-start: var(--gutter);
  font-weight: 200; font-size: max(2.5rem, 7vw); color: #000; margin: 0; z-index: 2;
  pointer-events: none; line-height: 1.0; white-space: nowrap; letter-spacing: -0.02em;
}
.hero-subtitle { font-weight: 400; color: #000; }
.char-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-top: 0.2em; margin-top: -0.2em;
  padding-bottom: 1.2em; margin-bottom: -1.2em; perspective: 500px;
}
.hero-char {
  display: inline-block;
  transform: translateY(110%) translateZ(-60px) rotateX(-65deg);
  transform-origin: bottom center; filter: blur(14px); opacity: 0;
  will-change: transform, filter, opacity;
  transition: transform 1.6s var(--ease), filter 1.6s ease, opacity 1.2s ease;
}
.hero-char.revealed { transform: translateY(0) translateZ(0) rotateX(0deg); filter: blur(0px); opacity: 1; }
/* Non-hero titles animate much faster for snappy scrolling */
.animated-title .hero-char { transition: transform 0.8s var(--ease), filter 0.8s ease, opacity 0.6s ease; }
/* Hebrew/Cyrillic words are split per word, not per letter, to keep shaping and kerning intact */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.2em 0 1.2em; margin: -0.2em 0 -1.2em; perspective: 500px; }

.hero-info-block {
  position: absolute; bottom: var(--gutter); inset-inline-start: var(--gutter); z-index: 5;
  color: #000; width: 22rem; display: flex; flex-direction: column;
}
.hi-top { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 400; text-transform: uppercase; margin-bottom: 2rem; direction: ltr; }
:root[dir='rtl'] .hi-top { direction: rtl; }
.hi-text { font-size: 1.0625rem; line-height: 1.55; opacity: 0.72; margin-bottom: 2.5rem; }
.hi-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.875rem 2.25rem;
  border: 1px solid #000; border-radius: 2.5rem; background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #000; text-decoration: none; font-size: 0.95rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.2s; cursor: pointer; font-family: inherit;
}
.hi-btn:hover { background: #000; color: #fff; transform: translateY(-2px); }
.hi-btn.is-solid { background: #000; color: #fff; }
.hi-btn.is-solid:hover { background: transparent; color: #000; }

/* Preloader */
.preloader { position: fixed; inset: 0; height: 100vh; z-index: 9999; pointer-events: none; transition: opacity 1s ease; }
.preloader-count { position: absolute; top: 2.5rem; inset-inline-start: var(--gutter); color: #000; font-weight: 200; font-size: 4rem; letter-spacing: -0.02em; line-height: 1; direction: ltr; }
.odo-window { height: 4rem; overflow: hidden; position: relative; width: 6.5rem; display: inline-block; vertical-align: top; }
.odo-numbers { position: absolute; top: 0; left: 0; width: 100%; transition: transform 0.05s linear; text-align: center; }
.preloader-brand { position: absolute; bottom: 2.5rem; inset-inline-start: var(--gutter); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; }

/* Scroll flow content */
.scroll-content-wrapper {
  position: absolute; top: calc(100vh + 34.375rem); left: 0; width: 100%;
  z-index: 2; display: flex; flex-direction: column;
}
.scroll-title-container { padding-inline-start: var(--gutter); margin-bottom: 37.5rem; }
.scroll-title-container h2, .feature-title, .gc-top-left {
  font-weight: 200; font-size: max(2.625rem, 5.5vw);
  letter-spacing: -0.02em; white-space: nowrap; color: #000; margin: 0; line-height: 1.1;
}
.clients-container { width: 100%; display: flex; flex-direction: column; margin-bottom: 37.5rem; }
.clients-subtitle { font-size: 1.1rem; font-weight: 400; text-transform: uppercase; padding-inline-start: var(--gutter); margin-bottom: 1rem; }
.clients-line { height: 1px; margin-inline: var(--gutter); background: var(--rainbow); margin-bottom: 3rem; }
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; direction: ltr; }
.marquee-content { display: inline-flex; align-items: center; gap: 4rem; padding-right: 4rem; animation: marquee 40s linear infinite; }
:root[dir='rtl'] .marquee-content { animation-direction: reverse; }
@keyframes marquee { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.marquee-item { font-weight: 200; font-size: max(2rem, 3.2vw); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 4rem; }
.marquee-item::after { content: ''; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--rainbow); flex: none; }
.feature-container { width: 100%; display: flex; flex-direction: column; align-items: flex-end; padding-inline: var(--gutter); box-sizing: border-box; }
.feature-container .feature-title { text-align: end; }
.feature-link { margin-top: 2.5rem; }

/* Flying words */
.words-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; perspective: 1500px; z-index: 2; pointer-events: none; }
.flying-word {
  position: absolute; top: 50%; left: 50%; font-weight: 400;
  font-size: max(80px, 22vw); color: #000; margin: 0; padding: 0 0.2em; opacity: 0;
  white-space: nowrap; transform: translate3d(-50%, -50%, 0) rotateY(0deg); letter-spacing: -0.03em;
}
.flying-word .char { display: inline-block; padding: 0 0.15em; margin: 0 -0.15em; }

/* Glass stats panel */
.glass-container {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.4); z-index: 10; transform: translateY(100vh); pointer-events: none;
}
.glass-gradient-wrapper {
  position: absolute; top: 50%; left: 50%; width: calc(100% - 8rem); height: calc(100% - 8rem);
  transform: translate(-50%, -50%) scale(0.65); border-radius: 0; overflow: hidden; pointer-events: auto;
}
.glass-gradient-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.5; }
:root[dir='rtl'] .glass-gradient-img { transform: scaleX(-1); }
.gradient-content {
  position: absolute; inset: 0; z-index: 2; padding: 2.5rem; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between; color: #000;
}
.gc-eyebrow { font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1.25rem; }
.gc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.gc-bottom-left { font-size: 0.95rem; font-weight: 400; opacity: 0.8; max-width: 20rem; line-height: 1.5; }
.gc-bottom-right { display: flex; gap: 3.75rem; align-items: flex-end; }
.stat-col { position: relative; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; max-width: 15rem; }
.stat-col-tall { margin-bottom: 120px; }
.stat-col::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0));
}
.stat-col-tall::before { bottom: -120px; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.stat-num { font-size: max(42px, 5vw); font-weight: 200; line-height: 1; letter-spacing: -0.03em; direction: ltr; text-align: start; }
.stat-num sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.35em; margin-inline-end: 0.08em; }
.stat-desc { font-size: 14px; line-height: 1.5; opacity: 0.85; }
.stat-btn {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.05);
  display: flex; align-items: center; justify-content: center; margin-top: 8px;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease); border: 1px solid rgba(0,0,0,0.1);
}
:root[dir='rtl'] .stat-btn span { transform: scaleX(-1); }
.stat-col:hover .stat-btn { background: #000; color: #fff; transform: translateX(4px); }

/* Phase 4 split feature */
.phase4-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 5;
  pointer-events: none; display: flex; align-items: flex-end; justify-content: flex-end;
  opacity: 0; transform: translateY(50px);
}
.split-feature-container { display: flex; flex-direction: column; padding-inline: var(--gutter); box-sizing: border-box; }
.phase4-container .split-feature-container {
  pointer-events: auto; padding-top: 4rem; padding-bottom: 4rem;
  height: 100vh; justify-content: space-between; width: auto; align-items: flex-start; max-width: 52rem;
}
.phase4-container .feature-title { white-space: normal; }
.split-line { height: 1px; background: var(--rainbow); margin: 3rem 0; width: 100%; }

/* Phase 5 */
.phase5-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 4; pointer-events: none; opacity: 0; }
.phase5-title-left { position: absolute; top: 2.5rem; inset-inline-start: var(--gutter); text-align: start; margin: 0; }
.phase5-title-right { position: absolute; bottom: 2.5rem; inset-inline-end: var(--gutter); text-align: end; margin: 0; white-space: normal !important; max-width: 40rem; }
.phase5-desc-left { position: absolute; bottom: 2.5rem; inset-inline-start: var(--gutter); margin: 0; max-width: 28rem; pointer-events: auto; }
.phase5-desc-left ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; counter-reset: post; }
.phase5-desc-left li { counter-increment: post; display: flex; gap: 1rem; align-items: baseline; }
.phase5-desc-left li::before { content: '0' counter(post); font-size: 0.8rem; opacity: 0.5; letter-spacing: 0.1em; }
.phase5-desc-left a { text-decoration: none; font-size: 1.1rem; line-height: 1.4; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.phase5-desc-left a:hover { background-size: 100% 1px; }
.phase5-label-right { position: absolute; top: 2.5rem; inset-inline-end: calc(var(--gutter) + 9rem); width: 12rem; margin: 0; }

/* Phase 6 finale + footer */
.phase6-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 2; pointer-events: none; opacity: 0; display: flex; align-items: center; justify-content: center; }
.phase6-title {
  position: absolute; top: 24vh; transform: translateY(-50%); left: 0; width: 100%;
  font-weight: 200; font-size: max(2.5rem, 7vw); color: #000; margin: 0; line-height: 1.0; text-align: center; white-space: nowrap;
}
.phase6-sub { position: absolute; top: calc(24vh + max(2.5rem, 7vw) * 1.4); left: 0; width: 100%; text-align: center; font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.phase6-footer-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 4; pointer-events: none; transform: translateY(100vh); }
.phase6-footer-wrapper .glass-footer { position: absolute; bottom: 2.5rem; inset-inline: var(--gutter); pointer-events: auto; }

.glass-footer {
  padding: 3rem; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  display: flex; flex-direction: column; color: #000;
}
.footer-top { display: flex; justify-content: space-between; gap: 3rem; }
.footer-left { width: 34%; display: flex; flex-direction: column; }
.footer-left .brand { margin-bottom: 2rem; }
.footer-heading { font-size: 1.5rem; font-weight: 200; margin: 0 0 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.footer-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-subtext { font-size: 0.85rem; opacity: 0.6; line-height: 1.5; max-width: 24rem; }
.footer-right { display: flex; gap: 4.5rem; padding-inline-end: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-col-title { font-size: 0.8rem; font-weight: 500; margin-bottom: 0.4rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
.footer-col a, .footer-col span { color: #000; opacity: 0.75; text-decoration: none; font-size: 0.95rem; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-col .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-line { height: 1px; background: var(--hair); margin-top: 3rem; margin-bottom: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.85rem; opacity: 0.6; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }

/* ---------- Inner pages ---------- */
.page { position: relative; z-index: 2; min-height: 100vh; }
.page-head { position: relative; min-height: 64vh; padding: 16rem var(--gutter) 5rem; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { display: flex; gap: 1.5rem; align-items: center; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2.5rem; }
.eyebrow .bar { flex: 0 0 6rem; height: 1px; background: var(--rainbow); }
.eyebrow a { text-decoration: none; opacity: 0.6; }
.eyebrow a:hover { opacity: 1; }
.display { font-weight: 200; font-size: clamp(2.75rem, 6.2vw, 9rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 18ch; }
.display.is-long { font-size: clamp(2.25rem, 4.6vw, 6.5rem); max-width: 22ch; }
.display strong { font-weight: 500; }
.lede { font-size: clamp(1.15rem, 1.35vw, 1.5rem); line-height: 1.6; max-width: 44rem; opacity: 0.75; margin: 2.5rem 0 0; font-weight: 300; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.5rem; font-size: 0.95rem; opacity: 0.7; align-items: center; }

.section { padding: 6rem var(--gutter); position: relative; }
.section-tight { padding-block: 3rem; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 4rem; align-items: end; }
.h-xl { font-weight: 200; font-size: clamp(2.25rem, 4.4vw, 6rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.h-lg { font-weight: 200; font-size: clamp(1.9rem, 3vw, 3.75rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.h-md { font-weight: 400; font-size: clamp(1.3rem, 1.6vw, 1.9rem); line-height: 1.25; margin: 0; }
.muted { opacity: 0.7; }
.rule { height: 1px; background: var(--rainbow); border: 0; margin: 0; }

.glass-card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 20px 60px -20px rgba(0, 60, 120, 0.12);
}
.gradient-frame { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.gradient-frame::before { content: ''; position: absolute; inset: 0; background: url('/assets/img/gradient.jpg') center/cover; opacity: 0.55; z-index: -1; }
.gradient-frame img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(0.15) contrast(1.05); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; text-decoration: none; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px -30px rgba(80, 0, 160, 0.25); }
.card .num { font-size: 0.85rem; letter-spacing: 0.12em; opacity: 0.5; direction: ltr; text-align: start; }
.card h3 { font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin: 0; }
.card p { margin: 0; line-height: 1.6; opacity: 0.75; font-size: 1.02rem; }
.card .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--rainbow); }

/* Services */
.service { display: grid; grid-template-columns: 5rem 1.3fr 1fr auto; gap: 3rem; align-items: center; padding: 3rem; }
.service + .service { margin-top: 1.5rem; }
.service-icon { width: 5rem; height: 5rem; border-radius: 1.5rem; overflow: hidden; background: #fff; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.service p { margin: 0; line-height: 1.6; opacity: 0.75; }
.price { text-align: end; }
.price .from { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; display: block; margin-bottom: 0.4rem; }
.price .amount { font-weight: 200; font-size: clamp(2.75rem, 4.5vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; direction: ltr; display: inline-block; }
.price .amount sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.3em; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
.portrait { position: sticky; top: 6rem; aspect-ratio: 4 / 5; }
.story { display: flex; flex-direction: column; gap: 5rem; }
.story-block h2 { font-weight: 200; font-size: clamp(2rem, 3.2vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 2rem; }
.story-block > p { font-size: 1.2rem; line-height: 1.7; opacity: 0.8; margin: 0 0 1.5rem; }
.story-block .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.check-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; font-size: 1.15rem; line-height: 1.5; }
.check-list li::before { content: counter(list-item, decimal-leading-zero); font-size: 0.8rem; opacity: 0.45; padding-top: 0.35rem; letter-spacing: 0.08em; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cert { padding: 1rem; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.cert img { max-height: 100%; object-fit: contain; border-radius: 0.75rem; }

/* CTA band */
.cta-band { margin: 4rem var(--gutter) 6rem; padding: 5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; overflow: hidden; }
.cta-band .h-xl { max-width: 16ch; }
.cta-band .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { padding: 2rem 2.25rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; text-decoration: none; }
.contact-item .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.55; margin-bottom: 0.5rem; }
.contact-item .value { font-size: clamp(1.3rem, 1.7vw, 1.9rem); font-weight: 300; direction: ltr; unicode-bidi: isolate; }
.contact-item .stat-btn { margin: 0; }
a.contact-item:hover .stat-btn { background: #000; color: #fff; }
.form { padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form h2 { grid-column: 1 / -1; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.field input, .field textarea {
  font: 300 1.1rem/1.5 var(--font); color: #000; background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.12);
  border-radius: 1rem; padding: 1rem 1.25rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(128, 0, 255, 0.1); }
.form .hi-btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; opacity: 0.6; margin: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.post-card { display: flex; flex-direction: column; gap: 1.25rem; text-decoration: none; }
.post-card .thumb { aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; position: relative; background: #eef4fb; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.post-card .thumb::after { content: ''; position: absolute; inset: 0; background: url('/assets/img/gradient.jpg') center/cover; mix-blend-mode: color; opacity: 0; transition: opacity 0.6s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card:hover .thumb::after { opacity: 0.55; }
.post-card .date { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.post-card h3 { font-weight: 300; font-size: 1.5rem; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.post-card p { margin: 0; opacity: 0.7; line-height: 1.6; }
.post-card.is-featured { grid-column: span 2; }
.post-card.is-featured .thumb { aspect-ratio: 16 / 9; }
.post-card.is-featured h3 { font-size: 2.1rem; font-weight: 200; }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 5rem; direction: ltr; }
.pagination a, .pagination span { min-width: 3rem; height: 3rem; border-radius: 2rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--hair); padding: 0 1rem; box-sizing: border-box; }
.pagination [aria-current] { background: #000; color: #fff; border-color: #000; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: 0.85rem; padding: 0.4rem 1rem; border: 1px solid rgba(0,0,0,0.15); border-radius: 2rem; text-decoration: none; transition: background 0.2s, color 0.2s; background: rgba(255,255,255,0.5); }
a.chip:hover { background: #000; color: #fff; }

/* Article */
.article-hero { margin: 0 var(--gutter); aspect-ratio: 21 / 9; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr); gap: 3rem; padding: 6rem var(--gutter); }
.article-layout > .prose { grid-column: 2; }
.article-aside { grid-column: 3; position: sticky; top: 7rem; align-self: start; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.95rem; }
.article-aside .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; }
.progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--rainbow); transform-origin: left; transform: scaleX(0); z-index: 70; }
:root[dir='rtl'] .progress { transform-origin: right; }

.prose { font-size: 1.2rem; line-height: 1.75; font-weight: 300; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-weight: 200; font-size: clamp(1.9rem, 2.6vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 2.5em 0 0.8em; }
.prose h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.3; margin: 2em 0 0.6em; }
.prose h4, .prose h5, .prose h6 { font-weight: 500; font-size: 1.15rem; margin: 1.8em 0 0.6em; }
.prose strong, .prose b { font-weight: 500; }
.prose a { text-decoration: none; background: var(--rainbow) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.prose a:hover { background-size: 100% 100%; color: #fff; }
.prose ul, .prose ol { padding-inline-start: 1.5em; margin: 0 0 1.5em; }
.prose li { margin: 0.5em 0; }
.prose ul > li::marker { color: var(--purple); }
.prose ol > li::marker { color: var(--purple); font-weight: 400; }
.prose blockquote { margin: 2em 0; padding: 1.5em 2em; border-radius: 1.5rem; background: var(--glass); border: 1px solid var(--glass-border); font-size: 1.35rem; font-weight: 300; position: relative; }
.prose blockquote::before { content: ''; position: absolute; inset-block: 1.25em; inset-inline-start: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--purple), var(--pink)); }
.prose img { border-radius: 1.25rem; display: block; margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 0.9rem; opacity: 0.6; text-align: center; margin-top: 0.75em; }
.prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.9em 1em; border-bottom: 1px solid var(--hair); text-align: start; vertical-align: top; }
.prose th { font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--rainbow); margin: 3em 0; }
.prose code { font-size: 0.9em; background: rgba(0,0,0,0.05); padding: 0.1em 0.4em; border-radius: 0.4em; }
.prose.glass-card { padding: 4rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0 var(--gutter) 4rem; }
.post-nav a { padding: 2.5rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.75rem; }
.post-nav a:last-child { text-align: end; align-items: flex-end; }
.post-nav .label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
.post-nav .t { font-size: 1.35rem; font-weight: 300; line-height: 1.3; }

/* Product / generic */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.product .gradient-frame { aspect-ratio: 1; }
.product .price-tag { font-weight: 200; font-size: 4rem; letter-spacing: -0.03em; margin: 1.5rem 0; direction: ltr; }
.product .price-tag del { opacity: 0.4; font-size: 0.5em; margin-inline-end: 0.5em; }
.product .price-tag ins { text-decoration: none; }
.team-photo { aspect-ratio: 4 / 5; }

.list-rows { border-top: 1px solid var(--hair); }
.list-row { display: grid; grid-template-columns: 4rem 1fr auto; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--hair); text-decoration: none; align-items: center; transition: padding 0.4s var(--ease); }
.list-row:hover { padding-inline-start: 1rem; }
.list-row .n { font-size: 0.85rem; opacity: 0.45; letter-spacing: 0.08em; direction: ltr; }
.list-row .t { font-size: clamp(1.4rem, 2vw, 2.25rem); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; }

.site-footer { position: relative; z-index: 3; padding: 0 var(--gutter) 2.5rem; }

/* Scroll reveal for blocks */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 2rem; }
  .cards, .cards.four, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 4rem 1fr auto; }
  .service p { grid-column: 2 / -1; grid-row: 2; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout > .prose, .article-aside { grid-column: 1; position: static; }
  .about-grid, .contact-grid, .product, .cta-band, .section-head { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: relative; top: 0; max-width: 34rem; }
  .footer-top { flex-direction: column; }
  .footer-left { width: 100%; }
  .footer-right { flex-wrap: wrap; gap: 2.5rem 3rem; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-overlay { grid-template-columns: 1fr; align-content: end; }
}
@media (max-width: 760px) {
  :root { --gutter: 1rem; --radius: 1.5rem; }
  html { font-size: 15px; }
  .hero-nav > a { display: none; }
  .hero-nav .lang-switch { margin-top: 0; }
  .is-loaded .menu-pill { transform: none; }
  .menu-pill { top: 1rem; padding: 0.6rem 0.9rem 0.6rem 1.1rem; font-size: 0.8rem; }
  .hero-logo { top: 1.4rem; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 1.7rem; height: 1.7rem; }
  .hero-nav { top: 4.5rem; }
  .phase4-container .split-feature-container > div:last-child { background: rgba(255,255,255,0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; }
  .phase4-container .hi-text { opacity: 0.85; }
  .phase6-footer-wrapper .footer-posts, .phase6-footer-wrapper .footer-subtext { display: none !important; }
  .phase6-footer-wrapper .footer-heading { font-size: 1.25rem; }
  .phase6-footer-wrapper .footer-right .footer-col:not(:nth-child(3)) { display: none; }
  .phase6-footer-wrapper .footer-right { grid-template-columns: 1fr; }
  .phase6-footer-wrapper .footer-line { margin-top: 1.5rem; }
  .hero-title { white-space: normal; font-size: 2.75rem; top: 38%; inset-inline-end: var(--gutter); }
  .hero-info-block { width: auto; inset-inline-end: var(--gutter); bottom: 2rem; }
  .hi-text { margin-bottom: 1.5rem; font-size: 1rem; }
  .scroll-title-container h2, .feature-title, .gc-top-left { white-space: normal; font-size: 2.4rem; }
  .scroll-title-container { padding-inline-end: var(--gutter); }
  .gradient-content { padding: 1.5rem; }
  .glass-gradient-wrapper { width: calc(100% - 2rem); height: calc(100% - 2rem); }
  .gc-bottom { flex-direction: column; align-items: flex-start; }
  .gc-bottom-right { gap: 1rem; flex-direction: column; align-items: stretch; width: 100%; }
  .stat-col { flex-direction: row; align-items: center; justify-content: space-between; max-width: none; gap: 0.75rem; }
  .stat-col-tall { margin-bottom: 0; }
  .stat-col-tall::before { bottom: 0; }
  .stat-num { font-size: 2.2rem; }
  .stat-label, .stat-btn { display: none; }
  .phase4-container .split-feature-container { padding-top: 5rem; padding-bottom: 2rem; }
  .phase5-title-left { top: 5rem; }
  .phase5-label-right { display: none; }
  .phase5-title-right { font-size: 1.8rem; bottom: auto; top: 12rem; }
  .phase5-desc-left { inset-inline-end: var(--gutter); max-width: none; }
  .phase6-title { white-space: normal; font-size: 2.5rem; top: 12vh; padding-inline: var(--gutter); box-sizing: border-box; }
  .phase6-sub { top: calc(16vh + 5.5rem); }
  .phase6-footer-wrapper .glass-footer { bottom: 1rem; max-height: calc(100vh - 12rem); overflow: auto; }
  .glass-footer { padding: 1.75rem; }
  .footer-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .flying-word { font-size: 34vw; }
  .page-head { padding-top: 9rem; min-height: 0; padding-bottom: 3rem; }
  .section { padding-block: 4rem; }
  .cards, .cards.two, .cards.four, .post-grid, .story-block .cards, .form, .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-card.is-featured { grid-column: auto; }
  .service { grid-template-columns: 1fr; padding: 2rem; gap: 1.25rem; }
  .service p { grid-column: auto; grid-row: auto; }
  .price { text-align: start; }
  .cta-band { padding: 2.5rem 1.75rem; margin-inline: var(--gutter); }
  .prose { font-size: 1.1rem; }
  .prose.glass-card { padding: 1.75rem; }
  .article-hero { aspect-ratio: 4 / 3; }
  .article-layout { padding-block: 3rem; }
  .list-row { grid-template-columns: 2.5rem 1fr; }
  .list-row .stat-btn { display: none; }
  .form { padding: 1.75rem; }
  .menu-overlay { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .hero-char, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- QA fixes: readable body text + touch targets ---------- */
.prose { font-size: max(17px, 1.2rem); }
.lede { font-size: max(17px, clamp(1.15rem, 1.35vw, 1.5rem)); }
.hi-text, .card p, .service p, .gc-bottom-left, .footer-subtext, .contact-item .label, .post-card p { font-size: max(16px, 1.0625rem); }
.stat-desc, .footer-col a, .footer-col span, .meta-row, .post-card .date { font-size: max(15px, 0.95rem); }
.field label, .eyebrow, .stat-label, .footer-col-title, .article-aside .label, .form-note { font-size: max(13px, 0.8rem); }
.hero-nav a, .hi-btn, .chip, .menu-pill { min-height: 44px; box-sizing: border-box; }
.hero-nav { gap: 0.1rem; }
.hero-nav a { padding-block: 0.35rem; }
.lang-switch a { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: max(13px, 0.8rem); }
.brand { min-height: 44px; }
.chip { display: inline-flex; align-items: center; }
.footer-col a { padding-block: 0.35rem; }
@media (max-width: 760px) {
  .hero-nav { top: 4.25rem; }
  .field input, .field textarea { font-size: 16px; } /* prevents iOS zoom on focus */
}
@media (max-width: 760px) {
  .footer-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col a, .footer-col span { overflow-wrap: anywhere; min-height: 40px; display: flex; align-items: center; }
  .footer-col { gap: 0.25rem; min-width: 0; }
}
.check-list { counter-reset: pm4u-item; }
.check-list li { counter-increment: pm4u-item; }
.check-list li::before { content: counter(pm4u-item, decimal-leading-zero); }

/* ---------- Accessibility: contrast (WCAG 1.4.3 ≥ 4.5:1 on white/glass) ---------- */
.brand .brand-tld, .footer-col-title, .card .num, .service-title .num, .label, .stat-label, .post-card .date,
.eyebrow a, .footer-bottom, .form-note, .muted, .meta-row, .menu-overlay nav a small, .menu-overlay aside .label,
.post-nav .label, .list-row .n, .price .from, .gc-eyebrow, .preloader-brand, .article-aside .label, .field label,
.lang-switch a:not([aria-current='true']), .phase5-desc-left li::before, .check-list li::before, .footer-col a, .footer-col span { opacity: 0.72; }
.hi-text, .card p, .service p, .lede, .post-card p, .story-block > p { opacity: 0.82; }

/* Card / service titles are now h2 for a correct heading outline; keep their look */
.post-card .card-title { font-weight: 300; font-size: 1.5rem; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.post-card.is-featured .card-title { font-size: 2.1rem; font-weight: 200; }
.service .service-title { font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.service-title .num { display: block; }

/* ---------- Accessibility menu ---------- */
.a11y { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 9000; font-family: var(--font); }
.a11y-toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #0a3d91; color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 30, 80, 0.3); transition: transform 0.2s;
}
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-panel {
  position: absolute; bottom: 64px; inset-inline-start: 0; width: min(300px, calc(100vw - 2.5rem)); box-sizing: border-box;
  background: #fff; color: #000; border: 1px solid #1a1a1a; border-radius: 1rem; padding: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 0.25rem; }
.a11y-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #000; border-radius: 50%; }
.a11y-opt {
  display: flex; align-items: center; gap: 0.75rem; min-height: 44px; width: 100%; padding: 0.5rem 0.75rem; box-sizing: border-box;
  border: 1px solid #c8c8c8; border-radius: 0.6rem; background: #fff; color: #000; font: 400 16px/1.2 var(--font); text-align: start; cursor: pointer;
}
.a11y-opt:hover { border-color: #000; }
.a11y-opt[aria-pressed='true'] { background: #0a3d91; border-color: #0a3d91; color: #fff; }
.a11y-ico { width: 1.8rem; text-align: center; font-weight: 700; }
.a11y-reset { margin-top: 0.25rem; }
.a11y-statement { font-size: 15px; color: #0a3d91; text-decoration: underline; padding: 0.5rem 0.25rem; }
.is-home .a11y { bottom: 1rem; }

/* Larger text (2 steps) */
html.a11y-text-1 { font-size: max(14px, 0.96vw); }
html.a11y-text-2 { font-size: max(16px, 1.1vw); }
html.a11y-text-1 .prose, html.a11y-text-1 .hi-text, html.a11y-text-1 .lede, html.a11y-text-1 .card p { font-size: max(19px, 1.35rem) !important; }
html.a11y-text-2 .prose, html.a11y-text-2 .hi-text, html.a11y-text-2 .lede, html.a11y-text-2 .card p { font-size: max(22px, 1.5rem) !important; }
html.a11y-text-1 .a11y *, html.a11y-text-2 .a11y * { font-size: 16px !important; }

/* Underline links */
html.a11y-links a:not(.a11y-statement) { text-decoration: underline !important; text-underline-offset: 3px; }

/* Readable font */
html.a11y-font body, html.a11y-font body * { font-family: Arial, 'Helvetica Neue', 'Heebo', sans-serif !important; letter-spacing: 0.01em !important; font-weight: 400 !important; }
html.a11y-font .hero-title, html.a11y-font .display, html.a11y-font h1, html.a11y-font h2 { font-weight: 600 !important; }

/* High contrast */
html.a11y-contrast body { background: #fff !important; }
html.a11y-contrast .bg-canvas, html.a11y-contrast .glass-gradient-img, html.a11y-contrast .gradient-frame::before { display: none !important; }
html.a11y-contrast body *:not(.a11y *):not(svg):not(svg *) { color: #000 !important; text-shadow: none !important; }
/* Only secondary text gets full opacity; layer opacity drives the home scroll choreography and must not be overridden. */
html.a11y-contrast :is(.brand-tld, .footer-col-title, .num, .label, .stat-label, .date, .eyebrow a, .footer-bottom, .form-note, .muted, .meta-row,
  .menu-overlay small, .post-nav .label, .list-row .n, .price .from, .gc-eyebrow, .article-aside .label, .field label, .lang-switch a, .footer-col a,
  .footer-col span, .hi-text, .card p, .service p, .lede, .post-card p, .story-block > p, .gc-bottom-left, .stat-desc, .check-list li) { opacity: 1 !important; }
html.a11y-contrast .glass-card, html.a11y-contrast .glass-footer, html.a11y-contrast .menu-overlay, html.a11y-contrast .menu-pill,
html.a11y-contrast .glass-container, html.a11y-contrast .phase4-container .split-feature-container > div:last-child {
  background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 2px solid #000 !important; box-shadow: none !important;
}
html.a11y-contrast a:not(.hi-btn):not(.a11y-statement):not(.brand) { color: #0000cc !important; text-decoration: underline !important; }
html.a11y-contrast .hi-btn, html.a11y-contrast .hi-btn.is-solid { background: #000 !important; color: #fff !important; border: 2px solid #000 !important; }
html.a11y-contrast .hi-btn * { color: #fff !important; }
html.a11y-contrast .brand b { -webkit-text-fill-color: #000; background: none; }
html.a11y-contrast :focus-visible { outline: 3px solid #d00 !important; outline-offset: 3px; }
html.a11y-contrast .webgl { opacity: 0.35 !important; }

/* Stop animations (WCAG 2.2.2) — also applied automatically for prefers-reduced-motion */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation-play-state: paused !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
html.a11y-still .hero-char, html.a11y-still .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
.marquee-container:hover .marquee-content, .marquee-container:focus-within .marquee-content { animation-play-state: paused; }

@media (max-width: 760px) {
  .a11y { bottom: 0.9rem; inset-inline-start: 0.9rem; }
  .a11y-toggle { width: 48px; height: 48px; }
}
@media print { .a11y, .menu-pill, .webgl, .bg-canvas { display: none !important; } }
.glass-card .label, .contact-item .label { opacity: 0.82; }
html.a11y-contrast .lang-switch a[aria-current='true'] { background: #000 !important; color: #fff !important; text-decoration: none !important; }
/* Higher specificity than the global contrast colour rule */
html.a11y-contrast body :is(a, button).hi-btn.hi-btn.hi-btn, html.a11y-contrast body :is(a, button).hi-btn.hi-btn.hi-btn * { background-color: #000 !important; color: #fff !important; }
html.a11y-contrast body .lang-switch.lang-switch a[aria-current='true'][hreflang] { background: #000 !important; color: #fff !important; }
.footer-credit a { text-decoration: none; font-weight: 500; }
.footer-credit a:hover { text-decoration: underline; }
.a11y-coordinator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.a11y-coordinator dt { font-size: max(13px, 0.8rem); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.72; margin-bottom: 0.4rem; }
.a11y-coordinator dd { margin: 0; font-size: clamp(1.3rem, 1.7vw, 1.9rem); font-weight: 300; }
@media (max-width: 760px) { .a11y-coordinator { grid-template-columns: 1fr; } }
