/* =====================================================================
   Home — "Clinic Canvas" hero, tabbed profile and treatment bento,
   followed by the editorial sections
   Same palette as lama.css (porcelain, ice, teal → mint, ink). Only the
   homepage loads this file; every rule is scoped to .x-* classes.
   ===================================================================== */

.page-index {
  --x-serif: "Instrument Serif", "Times New Roman", serif;
  --x-arch: 999px 999px 28px 28px;
  --x-sticky: 112px;

  /* ---- night stage: the hero's own colours, carried down the whole page ---- */
  --x-night: #0a1b26;              /* page base */
  --x-card: #10293a;               /* card surface */
  --x-card-2: #16354a;             /* raised / hovered surface */
  --x-fg: #f3f9fc;                 /* main text */
  --x-fg-2: rgba(243, 249, 252, 0.84);
  --x-accent: #5fdcea;             /* bright teal for labels and rules */

  /* shared tokens retuned for ink, so every inherited rule lands on dark */
  --bg: #0a1b26;
  --ice: #13303f;
  --ice-2: #1a3d54;
  --mist: rgba(243, 249, 252, 0.62);
  --mist-2: rgba(243, 249, 252, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --sky-50: rgba(255, 255, 255, 0.05);
  --sky-100: rgba(255, 255, 255, 0.09);
  --sky-200: rgba(255, 255, 255, 0.16);
  --teal: #2ec9d8;
  --teal-bright: #5fdcea;
  --grad-text: linear-gradient(100deg, #6fdfc2 0%, #3fd0dc 48%, #9af0dd 100%);
  --grad-tint: linear-gradient(150deg, #12293a 0%, #0e2433 55%, #123342 100%);
  --mesh:
    radial-gradient(45% 55% at 86% 34%, rgba(63, 208, 220, 0.16), transparent 70%),
    radial-gradient(40% 50% at 6% 74%, rgba(111, 223, 194, 0.12), transparent 70%),
    radial-gradient(30% 40% at 48% 40%, rgba(14, 165, 181, 0.1), transparent 70%),
    var(--x-night);
  --hair: linear-gradient(140deg, rgba(63, 208, 220, 0.5), rgba(111, 223, 194, 0.22) 35%, rgba(255, 255, 255, 0) 60%, rgba(63, 208, 220, 0.32));
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(63, 208, 220, 0.3), 0 30px 60px -26px rgba(14, 165, 181, 0.45);
}
[dir="rtl"] .page-index { --x-serif: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; }

.x-home { position: relative; }
.x-sec { position: relative; padding-block: clamp(80px, 8.5vw, 128px); }

/* ---------- Shared typography ---------- */
.x-display {
  font-family: var(--x-serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--x-fg);
  text-wrap: balance;
}
.x-display em, .x-hero__title em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.08em;
}
[dir="rtl"] .x-display { font-weight: 500; line-height: 1.22; letter-spacing: 0; font-size: clamp(2.2rem, 4.6vw, 4.1rem); }
[dir="rtl"] .x-display em, [dir="rtl"] .x-hero__title em { font-style: normal; }

.x-chapter {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
  font-family: var(--font-caps); font-size: 0.76rem; font-weight: 500;
  letter-spacing: var(--caps-spacing); text-transform: uppercase; color: var(--x-accent);
}
.x-chapter__num {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--sky-200); background: var(--x-card);
  box-shadow: var(--shadow-xs); letter-spacing: 0;
}
.x-chapter__rule { width: 72px; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }
[dir="rtl"] .x-chapter__rule { background: linear-gradient(-90deg, var(--teal), transparent); }
[dir="rtl"] .x-chapter { font-size: 0.92rem; }

/* ---------- Buttons ---------- */
.x-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding-inline: 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.35s, color 0.35s, border-color 0.35s;
}
.x-btn:hover { transform: translateY(-3px); }
.x-btn:active { transform: translateY(0) scale(0.98); }
.x-btn__icon {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 0.9rem;
  transition: transform 0.55s var(--ease), background-color 0.35s, color 0.35s;
}
.x-btn:hover .x-btn__icon { transform: rotate(-45deg); }
[dir="rtl"] .x-btn:hover .x-btn__icon { transform: rotate(45deg); }

.x-btn--primary { background: var(--grad); color: var(--paper); box-shadow: var(--shadow-teal); padding-inline: 28px 7px; }
[dir="rtl"] .x-btn--primary { padding-inline: 28px 7px; }
.x-btn--primary .x-btn__icon { background: var(--paper); color: var(--teal-700); }
.x-btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.x-btn--primary:hover::before { transform: translateX(120%); }
.x-btn--primary:hover { box-shadow: 0 22px 44px -16px rgba(14, 165, 181, 0.7); }

.x-btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--x-fg); backdrop-filter: blur(10px); }
.x-btn--ghost:hover { border-color: var(--teal); color: var(--x-accent); background: var(--x-card); }
.x-btn--ghost .fa-whatsapp, .x-btn--ink .fa-whatsapp { color: #1fb760; font-size: 1.15rem; }
.x-btn--ghost i { color: var(--teal); }

.x-btn--ink { background: var(--x-card-2); color: var(--paper); border-color: var(--line-2); }
.x-btn--ink i { color: var(--aqua); }
.x-btn--ink:hover { background: var(--grad); box-shadow: var(--shadow-teal); }

.x-btn--line { min-height: 0; padding: 0; border-radius: 0; gap: 16px; color: var(--x-fg); font-size: 1.02rem; }
.x-btn--line .x-btn__icon { border: 1px solid var(--line-2); color: var(--x-accent); width: 52px; height: 52px; }
.x-btn--line:hover { transform: none; color: var(--x-accent); }
.x-btn--line:hover .x-btn__icon { background: var(--grad); color: var(--paper); border-color: transparent; }

.x-btn--white { background: var(--paper); color: var(--teal-700); padding-inline: 28px 7px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); }
.x-btn--white .x-btn__icon { background: var(--grad); color: var(--paper); }
.x-btn--glass { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.42); color: var(--paper); backdrop-filter: blur(10px); }
.x-btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.x-btn--glass .fa-whatsapp { color: var(--paper); }

/* ---------- Reveal variants ---------- */
/* Split headings: the heading is observed, its masked lines slide up in turn */
html.js .x-split[data-reveal] { opacity: 1; translate: none; filter: none; }
html.js .x-split .x-line > * { display: inline-block; translate: 0 108%; transition: translate 1.25s var(--ease); transition-delay: var(--d, 0s); }
html.js .x-split.is-in .x-line > * { translate: none; }
html.js .x-line > [data-reveal] { display: inline-block; opacity: 1; filter: none; translate: 0 108%; transition: translate 1.25s var(--ease); transition-delay: var(--d, 0s); }
html.js .x-line > [data-reveal].is-in { translate: none; }

/* =====================================================================
   1 · HERO — dark ink stage: copy · centred portrait on a halo · stats
   ===================================================================== */
.x-hero { position: relative; padding: clamp(104px, 13vh, 124px) clamp(6px, 0.6vw, 10px) clamp(8px, 0.8vw, 12px); background: var(--bg); }
.x-stage { position: relative; overflow: hidden; isolation: isolate; max-width: 1760px; margin-inline: auto; border-radius: clamp(28px, 3vw, 44px); color: var(--paper);
  background:
    radial-gradient(55% 75% at 50% 112%, rgba(14, 165, 181, 0.55), transparent 70%),
    radial-gradient(40% 55% at 0% 0%, rgba(63, 208, 220, 0.14), transparent 70%),
    radial-gradient(35% 50% at 100% 30%, rgba(111, 223, 194, 0.1), transparent 70%),
    var(--ink);
  box-shadow: 0 60px 120px -70px rgba(14, 36, 51, 0.9); }
.x-stage__lines { position: absolute; inset: -80px; z-index: -1; will-change: transform; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 85%); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 85%); }

.x-stage__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.42fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-inline: clamp(24px, 4.4vw, 72px); min-height: clamp(600px, 74vh, 700px); }
.x-stage__copy { position: relative; z-index: 2; padding-block: clamp(56px, 6vw, 84px) clamp(120px, 11vw, 160px); }

.x-stage__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--font-caps); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
[dir="rtl"] .x-stage__eyebrow { padding: 8px 12px 8px 16px; font-size: 0.86rem; letter-spacing: 0; }
.x-stage__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(111, 223, 194, 0.2); }

.x-hero__title { margin: clamp(22px, 2.4vw, 30px) 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 4.3vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; color: var(--paper); }
.x-hero__title em { display: inline-block; font-family: var(--x-serif); font-weight: 400; font-size: 1.1em; letter-spacing: -0.02em; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: 0.06em; }
[dir="rtl"] .x-hero__title { font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.34; letter-spacing: 0; }
[dir="rtl"] .x-hero__title em { font-family: var(--font-display); font-weight: 600; font-size: 1em; }
.x-line { display: block; overflow: hidden; padding-block: 0.02em 0.12em; }
.x-hero__desc { margin-top: clamp(18px, 2vw, 24px); max-width: 430px; color: rgba(255, 255, 255, 0.66); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.75; }
.x-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 36px); }
.x-stage__wa { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--paper); font-weight: 600; text-decoration: none; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.x-stage__wa i { color: var(--mint); font-size: 1.15rem; }
.x-stage__wa:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(111, 223, 194, 0.6); }

/* portrait on halo */
.x-stage__photo { position: relative; align-self: end; height: clamp(540px, 68vh, 640px); display: flex; align-items: flex-end; justify-content: center; }
.x-hero__doctor { position: relative; z-index: 1; height: 100%; width: auto; max-width: 118%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 40px rgba(4, 18, 28, 0.55)); transform: translate3d(var(--hx, 0), 0, 0); transition: transform 0.8s var(--ease); }

/* stats column */
.x-stage__stats { position: relative; z-index: 2; margin: 0; display: grid; gap: 0; align-self: center; padding-bottom: clamp(40px, 6vw, 90px); }
.x-stage__stats > div { padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.x-stage__stats > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.x-stage__stats dt { display: flex; align-items: center; gap: 8px; font-family: var(--x-serif); font-weight: 400; font-size: clamp(2.2rem, 3vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--paper); direction: ltr; }
[dir="rtl"] .x-stage__stats dt { font-family: "Sora", sans-serif; font-weight: 300; font-size: clamp(1.8rem, 2.4vw, 2.3rem); justify-content: flex-end; }
.x-stage__stats dt i { font-size: 0.42em; color: var(--star); }
.x-stage__stats > div:first-child dt { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-stage__stats dd { margin: 8px 0 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }

@keyframes x-spin { to { transform: rotate(360deg); } }
@keyframes x-float { 50% { translate: 0 -10px; } }

/* =====================================================================
   2 · ABOUT — portrait composition + tabbed profile
   ===================================================================== */



@keyframes x-panel { from { opacity: 0; translate: 0 14px; } }


/* =====================================================================
   3 · TREATMENTS — filterable bento of image cards
   ===================================================================== */
.x-treat { background: linear-gradient(180deg, var(--x-night) 0%, #0c2231 45%, var(--x-night) 100%); overflow: clip; isolation: isolate; }
.x-tr__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.x-tr__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.55; mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 85%); -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 85%); animation: x-tr-pan 40s linear infinite; }
@keyframes x-tr-pan { to { background-position: 72px 72px, 72px 72px; } }
.x-tr__blob { position: absolute; border-radius: 50%; }
.x-tr__blob--a { width: 560px; height: 480px; inset-inline-end: -8%; top: -6%; background: radial-gradient(closest-side, rgba(63, 208, 220, 0.18), rgba(63, 208, 220, 0.08) 55%, transparent); animation: x-drift-b 24s ease-in-out infinite; }
.x-tr__blob--b { width: 520px; height: 460px; inset-inline-start: -10%; top: 42%; background: radial-gradient(closest-side, rgba(111, 223, 194, 0.18), rgba(111, 223, 194, 0.07) 55%, transparent); animation: x-drift-a 28s ease-in-out infinite; }

.x-treat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(26px, 3vw, 38px); }
.x-treat__head > * { min-width: 0; }
.x-treat .x-display em { background-image: linear-gradient(100deg, #087584 0%, #0ea5b5 30%, #6fdfc2 50%, #0ea5b5 70%, #087584 100%); background-size: 220% 100%; animation: x-shimmer 7s ease-in-out infinite; }
.x-treat__aside p { color: var(--mist); max-width: 500px; margin-bottom: 22px; font-size: 1.04rem; }

/* filter with sliding indicator */
.x-filter { position: relative; isolation: isolate; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.6); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.x-filter__ind { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: var(--ix, 6px); width: var(--iw, 0px); border-radius: 999px; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(14, 165, 181, 0.7); transition: left 0.55s var(--ease), width 0.55s var(--ease); }
.x-filter__ind::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%); background-size: 250% 100%; animation: x-shimmer 4s ease-in-out infinite; }
.x-filter__btn { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--x-fg-2); white-space: nowrap; cursor: pointer; transition: color 0.4s; }
.x-filter__btn b { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--sky-50); color: var(--x-accent); font-family: var(--font-caps); font-size: 0.72rem; font-weight: 500; transition: background-color 0.4s, color 0.4s; }
.x-filter__btn:hover { color: var(--x-accent); }
.x-filter__btn.is-active { color: var(--paper); }
.x-filter:not(.has-ind) .x-filter__btn.is-active { background: var(--grad); }
.x-filter__btn.is-active b { background: rgba(255, 255, 255, 0.14); color: var(--aqua); }
.x-filter__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* marquee of treatment names */
.x-tr__marquee { position: relative; margin-inline: calc(50% - 50vw); margin-bottom: clamp(26px, 3vw, 40px); padding-block: 14px; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.x-tr__track { display: flex; width: max-content; animation: x-tr-marquee 46s linear infinite; }
[dir="rtl"] .x-tr__track { animation-name: x-tr-marquee-rtl; }
.x-tr__marquee:hover .x-tr__track { animation-play-state: paused; }
.x-tr__group { display: flex; align-items: center; flex: none; }
.x-tr__group span { padding-inline: 26px; font-family: var(--x-serif); font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--teal); }
.x-tr__group span:nth-child(4n+1) { color: var(--x-accent); -webkit-text-stroke: 0; }
[dir="rtl"] .x-tr__group span { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.x-tr__group i { color: var(--rose); font-size: 1.05rem; animation: x-tr-spin 8s linear infinite; }
@keyframes x-tr-marquee { to { transform: translateX(-50%); } }
@keyframes x-tr-marquee-rtl { to { transform: translateX(50%); } }
@keyframes x-tr-spin { to { rotate: 360deg; } }

/* grid — soft "arch" cards: pearl card, arched photo window, serif titles, rose + teal details */
.x-treat { --pearl: var(--x-card); --rose: var(--mint); --rose-200: rgba(111,223,194,0.28); --rose-50: rgba(63,208,220,0.07); }
.x-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; margin: 0; padding: 0; list-style: none; }
.x-tcard { min-width: 0; }
.x-tcard[hidden] { display: none; }
.x-tcard.is-pop { animation: x-pop 0.6s var(--ease) both; }
/* the homepage treatments grid now uses the shared square cards from lama.css */
.s-grid--home { margin: 0; }
.s-grid--home [hidden] { display: none; }
.s-grid--home .s-card.is-pop { animation: x-card-pop 0.55s var(--ease) both; }
@keyframes x-card-pop { from { opacity: 0; scale: 0.96; } }

.x-tcard__link { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; padding: 10px 10px 24px; border-radius: 50% 50% 30px 30px / 150px 150px 30px 30px; background: var(--pearl); border: 1px solid var(--rose-200); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 26px 50px -42px rgba(120, 60, 75, 0.45); color: var(--x-fg); text-decoration: none; transition: translate 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.5s; }
.x-tcard__link::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--rose-50) 0%, var(--pearl) 45%, var(--sky-50) 100%); opacity: 0; transition: opacity 0.6s; }
.x-tcard__link:hover { translate: 0 -10px; border-color: rgba(192, 127, 141, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 40px 70px -40px rgba(192, 127, 141, 0.55), 0 0 0 6px rgba(239, 211, 216, 0.35); }
.x-tcard__link:hover::before { opacity: 1; }
.x-tcard__link:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

/* arched photo */
.x-tcard__media { position: relative; display: block; aspect-ratio: 4 / 4.7; border-radius: 50% 50% 22px 22px / 140px 140px 22px 22px; overflow: hidden; background: var(--rose-50); }
.x-tcard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease), filter 0.8s var(--ease); }
.x-tcard__link:hover .x-tcard__media img { scale: 1.08; filter: saturate(1.08) brightness(1.03); }
.x-tcard__media::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(120, 60, 75, 0.28)); pointer-events: none; }
/* inner arch line drawn on hover */
.x-tcard__media::after { content: ""; position: absolute; z-index: 2; inset: 9px; border-radius: 50% 50% 15px 15px / 131px 131px 15px 15px; border: 1px solid rgba(255, 255, 255, 0.85); opacity: 0; scale: 0.93; transition: opacity 0.6s var(--ease), scale 0.8s var(--ease); pointer-events: none; }
.x-tcard__link:hover .x-tcard__media::after { opacity: 1; scale: 1; }
.x-tcard__num { position: absolute; z-index: 3; bottom: 16px; left: 50%; translate: -50% 0; min-width: 52px; padding: 5px 14px 6px; border-radius: 999px; background: rgba(10, 27, 38, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--x-serif); font-style: italic; font-size: 1.05rem; line-height: 1; text-align: center; color: var(--rose); box-shadow: 0 10px 24px -14px rgba(120, 60, 75, 0.6); transition: background-color 0.5s, color 0.5s; }
.x-tcard__link:hover .x-tcard__num { background: var(--rose); color: var(--pearl); }

/* copy */
.x-tcard__body { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 20px 12px 0; text-align: center; }
.x-tcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.x-tcard__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-caps); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); }
[dir="rtl"] .x-tcard__tag { font-size: 0.78rem; letter-spacing: 0; }
.x-tcard__tag::before, .x-tcard__tag::after { content: "\2726"; font-size: 0.6rem; letter-spacing: 0; color: var(--rose); animation: x-tr-twinkle 3.2s ease-in-out infinite; }
.x-tcard__tag::after { animation-delay: 1.6s; }
@keyframes x-tr-twinkle { 0%, 100% { opacity: 0.35; scale: 0.8; } 50% { opacity: 1; scale: 1.2; } }
.x-tcard__badge { position: absolute; z-index: 3; top: 34px; left: 50%; translate: -50% 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--rose); color: var(--pearl); font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; box-shadow: 0 8px 18px -10px rgba(192, 127, 141, 0.9); }
.x-tcard__badge i { font-size: 0.62rem; color: #ffe3a8; }
.x-tcard h3 { margin-top: 10px; font-family: var(--x-serif); font-weight: 400; font-size: clamp(1.5rem, 1.9vw, 1.8rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--x-fg); text-wrap: balance; transition: color 0.4s; }
[dir="rtl"] .x-tcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.4; }
.x-tcard__link:hover h3 { color: var(--x-accent); }
.x-tcard__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; color: var(--mist); font-size: 0.88rem; line-height: 1.6; }
.x-tcard__more { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; color: var(--x-accent); }
.x-tcard__more span { display: inline-flex; align-items: center; gap: 10px; }
.x-tcard__more span::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; transition: width 0.6s var(--ease); }
.x-tcard__link:hover .x-tcard__more span::before { width: 34px; }
.x-tcard__more i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sky-200); font-size: 0.72rem; transition: background-color 0.4s, color 0.4s, border-color 0.4s, translate 0.5s var(--ease); }
.x-tcard__link:hover .x-tcard__more i { background: var(--grad); border-color: var(--x-accent); color: var(--paper); translate: 4px 0; }
[dir="rtl"] .x-tcard__link:hover .x-tcard__more i { translate: -4px 0; }

/* the most-requested card gets a blush wash + slow halo */
.x-tcard--feature .x-tcard__link { background: linear-gradient(180deg, var(--rose-50), var(--pearl) 55%); border-color: rgba(192, 127, 141, 0.45); animation: x-tr-halo 3.6s ease-in-out infinite; }
@keyframes x-tr-halo { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 26px 50px -42px rgba(120, 60, 75, 0.45), 0 0 0 0 rgba(239, 211, 216, 0.6); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 26px 50px -42px rgba(120, 60, 75, 0.45), 0 0 0 9px rgba(239, 211, 216, 0); } }
.x-tcard--feature .x-tcard__link:hover { animation: none; }

/* reveal: card rises, arch photo opens from the bottom */
html.js .x-tcard[data-reveal] { transition-delay: var(--d, 0s); }
html.js .x-tcard[data-reveal] .x-tcard__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) calc(var(--d, 0s) + 0.15s); }
html.js .x-tcard[data-reveal].is-in .x-tcard__media { clip-path: inset(0 0 0 0); }
html.js .x-tcard[data-reveal] .x-tcard__media img { scale: 1.25; transition: scale 1.8s var(--ease) calc(var(--d, 0s) + 0.15s), filter 0.8s var(--ease); }
html.js .x-tcard[data-reveal].is-in .x-tcard__media img { scale: 1; }
html.js .x-tcard[data-reveal].is-in .x-tcard__link:hover .x-tcard__media img { scale: 1.08; transition-delay: 0s; }

/* footer strip */
.x-treat__foot { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(28px, 3.4vw, 44px); padding: 18px 18px 18px 22px; border-radius: 30px; background: var(--grad-tint); border: 1px solid var(--sky-100); overflow: hidden; }
[dir="rtl"] .x-treat__foot { padding: 18px 22px 18px 18px; }
.x-treat__foot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--x-ang), transparent 0 70%, var(--teal), var(--mint), transparent 98%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: x-ang 6s linear infinite; pointer-events: none; }
.x-treat__foot-copy { display: flex; align-items: center; gap: 16px; }
.x-treat__foot-icon { position: relative; width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: var(--paper); font-size: 1.2rem; box-shadow: var(--shadow-teal); }
.x-treat__foot-icon::before { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 1.5px solid var(--teal); opacity: 0; animation: x-tr-ring 2.6s ease-out infinite; }
@keyframes x-tr-ring { 0% { opacity: 0.7; scale: 0.85; } 100% { opacity: 0; scale: 1.25; } }
.x-treat__foot-copy strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--x-fg); }
.x-treat__foot-copy p span { display: block; color: var(--mist); font-size: 0.94rem; }
.x-treat__foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1100px) {
  .x-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .x-treat__head { grid-template-columns: 1fr; }
  .x-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .x-tgrid { gap: 16px 12px; }
  .x-tcard__link { padding: 6px 6px 16px; border-radius: 50% 50% 22px 22px / 92px 92px 22px 22px; }
  .x-tcard__media { border-radius: 50% 50% 16px 16px / 86px 86px 16px 16px; }
  .x-tcard__media::after { inset: 6px; border-radius: 50% 50% 11px 11px / 80px 80px 11px 11px; }
  .x-tcard__num { bottom: 10px; min-width: 40px; padding: 4px 10px 5px; font-size: 0.86rem; }
  .x-tcard__body { padding: 12px 4px 0; }
  .x-tcard__tag { font-size: 0.54rem; letter-spacing: 0.14em; gap: 5px; }
  [dir="rtl"] .x-tcard__tag { font-size: 0.68rem; }
  .x-tcard__badge { top: 22px; padding: 3px 8px; font-size: 0.6rem; }
  .x-tcard h3 { margin-top: 6px; font-size: 1.22rem; }
  [dir="rtl"] .x-tcard h3 { font-size: 0.98rem; }
  .x-tcard__desc { display: none; }
  .x-tcard__more { padding-top: 10px; font-size: 0.74rem; }
  .x-tcard__more span::before { display: none; }
  .x-tcard__more i { width: 26px; height: 26px; font-size: 0.62rem; }
  .x-filter__btn { padding: 9px 12px; gap: 6px; font-size: 0.86rem; }
  .x-tr__group span { padding-inline: 16px; }
  .x-treat__foot { padding: 20px; }
  .x-treat__foot-actions, .x-treat__foot-actions .x-btn { width: 100%; }
}

/* Sections 4–10 (Why → CTA) live in the "Atelier" block at the end of this file. */

/* =====================================================================
   1b · HERO motion — dental "chamber" scene behind the portrait:
   operating lamp + glowing scanned tooth, floating chips, aurora
   ===================================================================== */
@property --x-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.x-stage__aurora { position: absolute; z-index: -1; border-radius: 50%; opacity: 0.55; pointer-events: none; will-change: transform; }
.x-stage__aurora--a { width: 520px; height: 420px; left: -8%; top: -18%; background: radial-gradient(closest-side, rgba(63, 208, 220, 0.32), rgba(63, 208, 220, 0.14) 55%, transparent); animation: x-drift-a 18s ease-in-out infinite; }
.x-stage__aurora--b { width: 560px; height: 460px; right: 12%; bottom: -30%; background: radial-gradient(closest-side, rgba(14, 165, 181, 0.5), rgba(14, 165, 181, 0.22) 55%, transparent); animation: x-drift-b 22s ease-in-out infinite; }
.x-stage__aurora--c { width: 380px; height: 320px; right: -6%; top: 6%; background: radial-gradient(closest-side, rgba(111, 223, 194, 0.22), rgba(111, 223, 194, 0.1) 55%, transparent); animation: x-drift-a 26s ease-in-out -8s infinite reverse; }
@keyframes x-drift-a { 50% { translate: 90px 60px; scale: 1.15; } }
@keyframes x-drift-b { 50% { translate: -120px -50px; scale: 0.9; } }
.x-stage__lines { animation: x-grid-pan 30s linear infinite; }
@keyframes x-grid-pan { to { translate: 72px 72px; } }

.x-stage__sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.x-stage__sparks i { position: absolute; left: var(--l); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 223, 194, 0.95), rgba(111, 223, 194, 0.35) 60%, transparent); opacity: 0; will-change: transform; animation: x-rise 9s linear var(--t) infinite; }
@keyframes x-rise { 10% { opacity: 0.9; } 80% { opacity: 0.5; } 100% { opacity: 0; translate: 18px -620px; } }

/* eyebrow + copy accents */
.x-stage__dot { position: relative; }
.x-stage__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--mint); animation: x-ping 2.2s var(--ease) infinite; }
@keyframes x-ping { 0% { scale: 1; opacity: 0.8; } 100% { scale: 3.2; opacity: 0; } }
.x-hero__title em { background-image: linear-gradient(100deg, var(--aqua) 0%, var(--mint) 30%, #ffffff 45%, var(--mint) 60%, var(--aqua) 100%); background-size: 220% 100%; animation: x-shimmer 6s ease-in-out infinite; }
@keyframes x-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.x-hero__rule { display: flex; align-items: center; gap: 12px; margin-top: clamp(18px, 2vw, 24px); color: var(--mint); font-size: 0.9rem; }
.x-hero__rule::before { content: ""; height: 1px; width: 0; background: linear-gradient(90deg, var(--mint), transparent); transition: width 1.4s var(--ease) 0.5s; }
[dir="rtl"] .x-hero__rule::before { background: linear-gradient(-90deg, var(--mint), transparent); }
.x-hero__rule.is-in::before, html:not(.js) .x-hero__rule::before { width: 96px; }
.x-hero__rule i { animation: x-tilt 4s ease-in-out infinite; }
@keyframes x-tilt { 0%, 100% { rotate: -10deg; } 50% { rotate: 10deg; translate: 0 -3px; } }
html.js .x-stage__copy [data-reveal] { transition-delay: var(--d, 0s); }

.x-btn--shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); translate: -130% 0; animation: x-sweep 4.5s var(--ease) 2s infinite; pointer-events: none; }
@keyframes x-sweep { 0% { translate: -130% 0; } 35%, 100% { translate: 130% 0; } }
.x-btn--primary .x-btn__icon i { animation: x-nudge 2.4s var(--ease) infinite; }
@keyframes x-nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 4px 0; } }
[dir="rtl"] .x-btn--primary .x-btn__icon i { animation-name: x-nudge-rtl; }
@keyframes x-nudge-rtl { 0%, 60%, 100% { translate: 0 0; } 30% { translate: -4px 0; } }
.x-stage__wa i { animation: x-wiggle 3.6s ease-in-out 1.5s infinite; }
@keyframes x-wiggle { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -16deg; } 88% { rotate: 14deg; } 92% { rotate: -8deg; } 96% { rotate: 4deg; } }

/* stats: lines draw in, numbers rise one after another */
.x-stage__stats > div { position: relative; border-top-color: transparent; }
.x-stage__stats > div::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--mint), rgba(255, 255, 255, 0.12) 60%); transform-origin: 0 50%; }
[dir="rtl"] .x-stage__stats > div::before { transform-origin: 100% 50%; background: linear-gradient(-90deg, var(--mint), rgba(255, 255, 255, 0.12) 60%); }
html.js .x-stage__stats[data-reveal] { opacity: 1; translate: none; filter: none; }
html.js .x-stage__stats[data-reveal] > div::before { scale: 0 1; transition: scale 1.1s var(--ease); }
html.js .x-stage__stats[data-reveal] > div > * { opacity: 0; translate: 0 18px; transition: opacity 0.8s var(--ease), translate 0.9s var(--ease); }
html.js .x-stage__stats[data-reveal].is-in > div::before { scale: 1 1; }
html.js .x-stage__stats[data-reveal].is-in > div > * { opacity: 1; translate: none; }
.x-stage__stats > div:nth-child(1)::before, .x-stage__stats > div:nth-child(1) > * { transition-delay: 0.7s; }
.x-stage__stats > div:nth-child(2)::before, .x-stage__stats > div:nth-child(2) > * { transition-delay: 0.85s; }
.x-stage__stats > div:nth-child(3)::before, .x-stage__stats > div:nth-child(3) > * { transition-delay: 1s; }
.x-stage__stats dt { gap: 0; }
.x-stage__stats dt i { margin-inline-start: 8px; animation: x-star 3s ease-in-out infinite; }
@keyframes x-star { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.25; rotate: 72deg; filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.8)); } }

/* portrait entrance */
.x-hero__doctor { animation: x-doc-in 1.4s var(--ease) 0.15s both; }
@keyframes x-doc-in { from { opacity: 0; translate: 0 60px; scale: 0.96; } }
.x-stage__live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(111, 223, 194, 0.6); animation: x-live 2s ease-out infinite; }
@keyframes x-live { 70% { box-shadow: 0 0 0 8px rgba(111, 223, 194, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 223, 194, 0); } }

/* dental scene */
.x-dent { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 38% at 50% 34%, rgba(14, 165, 181, 0.34), rgba(14, 165, 181, 0.1) 55%, transparent 78%); }
.x-dent__tooth { position: absolute; left: 50%; top: 2%; width: min(124%, 580px); height: auto; translate: -50% 0; overflow: visible; will-change: transform; animation: x-tooth-in 1.6s var(--ease) both, x-breathe 7s ease-in-out 1.6s infinite; }
@keyframes x-tooth-in { from { opacity: 0; scale: 0.82; } }
@keyframes x-breathe { 50% { translate: -50% -12px; } }
.x-dent__fill { opacity: 0; animation: x-fade 1.6s var(--ease) 1.2s forwards; }
@keyframes x-fade { to { opacity: 1; } }
.x-dent__line { stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: x-draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
.x-dent__run { stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.06 0.94; opacity: 0; animation: x-run 5s linear 2.8s infinite; }
@keyframes x-run { 0% { stroke-dashoffset: 1; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.x-dent__echo { stroke: var(--aqua); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: 50% 45%; animation: x-echo 4.8s var(--ease) 2.4s infinite; }
.x-dent__echo--2 { animation-delay: 4.8s; }
@keyframes x-echo { 0% { opacity: 0.55; scale: 1; } 100% { opacity: 0; scale: 1.28; } }
.x-dent__mesh path { stroke: rgba(111, 223, 194, 0.16); stroke-width: 0.6; stroke-dasharray: 3 4; }
.x-dent__mesh { animation: x-mesh 6s linear infinite; }
@keyframes x-mesh { to { transform: translateY(14px); } }
.x-dent__scan { animation: x-scan 4.2s cubic-bezier(0.45, 0, 0.55, 1) 2s infinite; }
@keyframes x-scan { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(270px); } }
.x-dent__shine { stroke: rgba(255, 255, 255, 0.7); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: x-fade 1s ease 2.4s forwards; }
.x-dent__twinkle { fill: #ffffff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: x-twinkle 3.4s ease-in-out calc(2.6s + var(--tw)) infinite; }
@keyframes x-twinkle { 0%, 100% { opacity: 0; scale: 0.3; } 40% { opacity: 1; scale: 1; } 60% { opacity: 0.9; scale: 0.9; } }

.x-dent__lamp { position: absolute; top: -6%; inset-inline-end: -16%; width: 54%; height: auto; overflow: visible; animation: x-lamp-in 1.4s var(--ease) 0.6s both; }
[dir="rtl"] .x-dent__lamp { scale: -1 1; }
@keyframes x-lamp-in { from { opacity: 0; translate: 0 -40px; } }
.x-dent__arm { stroke: rgba(255, 255, 255, 0.22); stroke-width: 6; stroke-linecap: round; }
.x-dent__rim { stroke: rgba(111, 223, 194, 0.45); stroke-width: 1.2; }
.x-dent__led { fill: #ffffff; animation: x-led 3s ease-in-out infinite; }
@keyframes x-led { 50% { opacity: 0.7; } }
.x-dent__head { transform-box: fill-box; transform-origin: 80% 0; }
.x-dent__beam { animation: x-beam 5s ease-in-out infinite; }
@keyframes x-beam { 0%, 100% { opacity: 0.34; } 45% { opacity: 0.5; } 55% { opacity: 0.26; } }

/* floating chips */
.x-float { transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform 0.9s var(--ease); }
@keyframes x-chip-in { from { opacity: 0; scale: 0.6; } }
@keyframes x-bob { 50% { translate: 0 -14px; } }

/* =====================================================================
   2b · ABOUT motion — same light palette, hero-grade motion
   ===================================================================== */
@keyframes x-grid-pan-dots { to { background-position: 26px 52px; } }
@keyframes x-ghost { 50% { translate: 0 -30px; rotate: 12deg; } }

.x-chapter__num { position: relative; }
@keyframes x-ang { to { --x-ang: 360deg; } }

/* media: tilt, spinning gradient frame, scanning light, floating chips */
@keyframes x-photo-scan { 0% { translate: 0 -100%; } 55%, 100% { translate: 0 360%; } }

/* text side: staggered reveals */




/* hero: one tidy identity card instead of scattered tags */
.x-idcard { position: absolute; z-index: 3; left: 50%; bottom: 24px; translate: -50% 0; width: min(92%, 380px); padding: 14px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(14, 36, 51, 0.62); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12); animation: x-card-up 1s var(--ease) 1.1s both; }
@keyframes x-card-up { from { opacity: 0; translate: -50% 26px; } to { translate: -50% 0; } }
.x-idcard::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--x-ang), transparent 0 60%, var(--mint), var(--aqua), transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: x-ang 6s linear infinite; pointer-events: none; }
.x-idcard__head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.x-idcard__avatar { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--paper); font-size: 1rem; box-shadow: var(--shadow-teal); }
.x-idcard__name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.x-idcard__name strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--paper); }
.x-idcard__name small { font-size: 0.8rem; color: var(--mint); }
.x-idcard__head .x-stage__live { flex: none; }
.x-idcard__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.x-idcard__tag { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; color: rgba(255, 255, 255, 0.9); white-space: nowrap; transition: background 0.35s, border-color 0.35s; }
.x-idcard__tag i { color: var(--mint); font-size: 0.8rem; }
.x-idcard__tag:hover { background: rgba(111, 223, 194, 0.12); border-color: rgba(111, 223, 194, 0.4); }

/* =====================================================================
   2 · ABOUT — clean editorial layout: square photo with corner brackets,
   offset hairline frame, vertical caption, stat tab, bordered inset photo;
   copy, 2×2 service boxes, two square buttons. Light palette (paper, teal, ink).
   ===================================================================== */
.x-about { --ab-head: "Teko", var(--font-display); --ab-acc: var(--x-accent); background: var(--x-night); overflow: clip; isolation: isolate; padding-block: clamp(64px, 6vw, 96px); }
[dir="rtl"] .x-about { --ab-head: var(--font-display); }
.x-ab__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.x-ab__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 108px 108px; opacity: 0.45; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 90%); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 90%); }

.x-ab__layout { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: clamp(28px, 2.4vw, 40px); align-items: center; }

/* media */
.x-ab__media { position: relative; padding: 12px 30px 40px 22px; }
[dir="rtl"] .x-ab__media { padding: 12px 22px 40px 30px; }
.x-ab__frame { position: relative; aspect-ratio: 612 / 520; }
.x-ab__photo { position: relative; z-index: 1; height: 100%; margin: 0; overflow: hidden; background: var(--ice); }
.x-ab__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: scale 1.6s var(--ease); }
.x-ab__photo::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--sky-50); transform-origin: 100% 50%; transform: scaleX(0); pointer-events: none; }
[dir="rtl"] .x-ab__photo::before { transform-origin: 0 50%; }
.x-ab__media:hover .x-ab__photo img { scale: 1.04; }

.x-ab__outline { position: absolute; z-index: 0; inset: 16px -18px -16px 18px; border: 1px solid var(--sky-200); pointer-events: none; }
[dir="rtl"] .x-ab__outline { inset: 16px 18px -16px -18px; }

.x-ab__corner { position: absolute; z-index: 2; top: -10px; width: 38px; height: 30px; pointer-events: none; border-block-start: 3px solid var(--ab-acc); }
.x-ab__corner--tl { inset-inline-start: -10px; border-inline-start: 3px solid var(--ab-acc); }
.x-ab__corner--tr { inset-inline-end: -10px; border-inline-end: 3px solid var(--ab-acc); }

.x-ab__vertical { position: absolute; z-index: 1; top: 30%; right: -30px; writing-mode: vertical-rl; rotate: 180deg; font-family: var(--ab-head); font-size: 0.82rem; font-weight: 500; line-height: 1; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ab-acc); white-space: nowrap; }
[dir="rtl"] .x-ab__vertical { right: auto; left: -30px; rotate: none; font-size: 0.78rem; letter-spacing: 0.04em; }

.x-ab__stat { position: absolute; z-index: 4; top: 77.5%; inset-inline-start: -20px; display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 24px; background: var(--x-card); border-inline-start: 3px solid var(--ab-acc); box-shadow: 0 18px 40px -24px rgba(14, 36, 51, 0.35); white-space: nowrap; }
.x-ab__stat b { font-family: var(--ab-head); font-weight: 600; font-size: 3rem; line-height: 0.8; padding-top: 0.12em; color: var(--ab-acc); direction: ltr; }
[dir="rtl"] .x-ab__stat b { font-size: 2.3rem; padding-top: 0; }
.x-ab__stat-copy { display: grid; line-height: 1.1; }
.x-ab__stat-copy small { font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }
[dir="rtl"] .x-ab__stat-copy small { font-size: 0.74rem; letter-spacing: 0; }
.x-ab__stat-copy strong { margin-top: 2px; font-family: var(--ab-head); font-weight: 500; font-size: 1.45rem; line-height: 1; color: var(--x-fg-2); }
[dir="rtl"] .x-ab__stat-copy strong { font-size: 1rem; font-weight: 600; margin-top: 4px; }

.x-ab__inset { position: absolute; z-index: 3; top: 59%; inset-inline-start: 60%; inset-inline-end: -24px; bottom: -36px; margin: 0; border: 8px solid var(--x-card); background: var(--x-card); box-shadow: 0 34px 50px -26px rgba(14, 36, 51, 0.45); overflow: hidden; transition: translate 0.7s var(--ease); }
.x-ab__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.x-ab__media:hover .x-ab__inset { translate: 0 -6px; }

/* media reveal */
html.js .x-ab__media[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-ab__media[data-reveal] .x-ab__photo::before { transform: scaleX(1); transition: transform 1.2s var(--ease) 0.1s; }
html.js .x-ab__media[data-reveal].is-in .x-ab__photo::before { transform: scaleX(0); }
html.js .x-ab__media[data-reveal] .x-ab__photo img { scale: 1.12; }
html.js .x-ab__media[data-reveal].is-in .x-ab__photo img { scale: 1; }
html.js .x-ab__media[data-reveal].is-in:hover .x-ab__photo img { scale: 1.04; }
html.js .x-ab__media[data-reveal] .x-ab__outline { opacity: 0; translate: -18px -16px; transition: opacity 1s var(--ease) 0.6s, translate 1.2s var(--ease) 0.6s; }
[dir="rtl"] .x-ab__media[data-reveal] .x-ab__outline { translate: 18px -16px; }
html.js .x-ab__media[data-reveal] .x-ab__corner { opacity: 0; scale: 0.4; transition: opacity 0.7s var(--ease) 0.9s, scale 0.8s var(--ease) 0.9s; }
html.js .x-ab__media[data-reveal] .x-ab__corner--tl { transform-origin: 0 0; }
html.js .x-ab__media[data-reveal] .x-ab__corner--tr { transform-origin: 100% 0; }
[dir="rtl"] .x-ab__media[data-reveal] .x-ab__corner--tl { transform-origin: 100% 0; }
[dir="rtl"] .x-ab__media[data-reveal] .x-ab__corner--tr { transform-origin: 0 0; }
html.js .x-ab__media[data-reveal] .x-ab__vertical { opacity: 0; transition: opacity 1.2s var(--ease) 1.1s; }
html.js .x-ab__media[data-reveal] .x-ab__stat { opacity: 0; translate: -30px 0; transition: opacity 0.8s var(--ease) 0.9s, translate 0.9s var(--ease) 0.9s; }
[dir="rtl"] .x-ab__media[data-reveal] .x-ab__stat { translate: 30px 0; }
html.js .x-ab__media[data-reveal] .x-ab__inset { opacity: 0; translate: 0 40px; transition: opacity 0.8s var(--ease) 1s, translate 1s var(--ease) 1s; }
html.js .x-ab__media[data-reveal].is-in .x-ab__outline,
html.js .x-ab__media[data-reveal].is-in .x-ab__corner,
html.js .x-ab__media[data-reveal].is-in .x-ab__vertical,
html.js .x-ab__media[data-reveal].is-in .x-ab__stat,
html.js .x-ab__media[data-reveal].is-in .x-ab__inset { opacity: 1; translate: none; scale: 1; }
html.js .x-ab__media[data-reveal].is-in:hover .x-ab__inset { translate: 0 -6px; transition-delay: 0s; }

/* copy */
.x-ab__text { min-width: 0; }
.x-ab__eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font-family: var(--ab-head); font-size: 1.15rem; font-weight: 500; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ab-acc); }
[dir="rtl"] .x-ab__eyebrow { font-size: 0.95rem; letter-spacing: 0; }
.x-ab__eyebrow-line { width: 56px; height: 2px; background: var(--ab-acc); }
html.js .x-ab__eyebrow[data-reveal] .x-ab__eyebrow-line { scale: 0 1; transform-origin: 0 50%; transition: scale 1s var(--ease) 0.2s; }
[dir="rtl"] .x-ab__eyebrow-line { transform-origin: 100% 50%; }
html.js .x-ab__eyebrow[data-reveal].is-in .x-ab__eyebrow-line { scale: 1 1; }

.x-about .x-ab__title { max-width: 13em; font-family: var(--ab-head); font-weight: 600; font-size: clamp(2.4rem, 3.9vw, 3.5rem); line-height: 1.08; letter-spacing: 0; color: var(--x-fg); }
.x-about .x-ab__title .x-line { display: inline-block; vertical-align: top; margin-inline-end: 0.22em; }
.x-about .x-ab__title em { font-style: normal; background: none; color: var(--x-fg); -webkit-text-fill-color: currentColor; padding: 0; animation: none; }
[dir="rtl"] .x-about .x-ab__title { font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.35; }

.x-ab__lead, .x-ab__body { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.78; color: var(--mist); }
.x-ab__lead { margin-top: clamp(18px, 2vw, 26px); }
.x-ab__body { margin-top: 22px; }
html.js .x-ab__text [data-reveal] { transition-delay: var(--d, 0s); }

.x-ab__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.x-ab__services a { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 58px; padding: 10px 16px; background: var(--x-card); border: 1px solid var(--line-2); color: var(--x-fg); text-decoration: none; transition: border-color 0.35s, box-shadow 0.45s var(--ease), translate 0.45s var(--ease); }
.x-ab__services a:hover { border-color: var(--ab-acc); translate: 0 -2px; box-shadow: 0 16px 30px -22px rgba(14, 36, 51, 0.4); }
.x-ab__services a:focus-visible { outline: 2px solid var(--ab-acc); outline-offset: 2px; }
.x-ab__svc-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--sky-50); color: var(--ab-acc); font-size: 0.82rem; transition: background 0.35s, color 0.35s; }
.x-ab__services a:hover .x-ab__svc-icon { background: var(--ab-acc); color: var(--paper); }
.x-ab__svc-name { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--x-fg); }
html.js .x-ab__services[data-reveal] { opacity: 1; translate: none; filter: none; }
html.js .x-ab__services[data-reveal] li { opacity: 0; translate: 0 20px; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease); }
html.js .x-ab__services[data-reveal].is-in li { opacity: 1; translate: none; }
html.js .x-ab__services[data-reveal].is-in li:nth-child(2) { transition-delay: 0.08s; }
html.js .x-ab__services[data-reveal].is-in li:nth-child(3) { transition-delay: 0.16s; }
html.js .x-ab__services[data-reveal].is-in li:nth-child(4) { transition-delay: 0.24s; }

.x-ab__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.x-ab__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 48px; background: var(--ab-acc); border: 2px solid var(--ab-acc); color: var(--paper); font-family: var(--font-body); font-weight: 500; font-size: 1.02rem; text-decoration: none; transition: background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease); }
.x-ab__btn:hover { background: var(--grad); border-color: transparent; box-shadow: 0 18px 34px -20px rgba(14, 36, 51, 0.6); }
.x-ab__ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 24px; background: var(--x-card); border: 2px solid var(--line-2); color: var(--x-fg); font-family: var(--font-body); font-weight: 500; font-size: 1.02rem; text-decoration: none; transition: border-color 0.3s, color 0.3s; }
.x-ab__ghost-btn:hover { border-color: var(--ab-acc); color: var(--ab-acc); }
.x-ab__btn:focus-visible, .x-ab__ghost-btn:focus-visible { outline: 2px solid var(--ab-acc); outline-offset: 3px; }

@media (max-width: 900px) {
  .x-ab__layout { grid-template-columns: 1fr; gap: 56px; }
  .x-ab__media { max-width: 640px; width: 100%; margin-inline: auto; }
  .x-about .x-ab__title { max-width: none; }
}
@media (max-width: 600px) {
  .x-ab__media { padding: 10px 26px 34px 14px; }
  [dir="rtl"] .x-ab__media { padding: 10px 14px 34px 26px; }
  .x-ab__frame { aspect-ratio: 1 / 1; }
  .x-ab__outline { inset: 12px -12px -12px 12px; }
  [dir="rtl"] .x-ab__outline { inset: 12px 12px -12px -12px; }
  .x-ab__corner { width: 28px; height: 22px; top: -8px; }
  .x-ab__corner--tl { inset-inline-start: -8px; }
  .x-ab__corner--tr { inset-inline-end: -8px; }
  .x-ab__vertical { right: -22px; font-size: 0.66rem; letter-spacing: 0.22em; }
  [dir="rtl"] .x-ab__vertical { right: auto; left: -22px; font-size: 0.66rem; letter-spacing: 0; }
  .x-ab__stat { top: auto; bottom: 18%; inset-inline-start: -14px; padding: 10px 16px; gap: 10px; }
  .x-ab__stat b { font-size: 2.3rem; }
  .x-ab__stat-copy strong { font-size: 1.15rem; }
  .x-ab__inset { top: 56%; inset-inline-start: 52%; inset-inline-end: -18px; bottom: -30px; border-width: 6px; }
  .x-ab__services { grid-template-columns: 1fr; gap: 12px; }
  .x-ab__ctas > * { flex: 1 1 auto; padding-inline: 20px; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
}

@media (max-width: 1100px) {
  .x-stage__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .x-stage__stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding-bottom: 32px; margin-top: -8px; position: relative; z-index: 3; }
  .x-stage__stats > div { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .x-stage__copy { padding-bottom: 40px; }
}

@media (max-width: 900px) {
  .page-index { --x-sticky: 92px; }
  .x-stage__grid { grid-template-columns: 1fr; min-height: 0; padding-inline: 22px; }
  .x-stage__copy { padding-block: 44px 8px; text-align: start; }
  .x-stage__photo { height: clamp(420px, 105vw, 560px); width: 100%; max-width: 520px; margin-inline: auto; }


}

@media (max-width: 600px) {
  .x-sec { padding-block: 84px; }
  .x-hero { padding-top: 92px; padding-inline: 6px; }
  .x-hero__title { font-size: clamp(2.3rem, 10.8vw, 3.2rem); }
  [dir="rtl"] .x-hero__title { font-size: clamp(2rem, 9.4vw, 2.7rem); }
  .x-stage__eyebrow { font-size: 0.6rem; letter-spacing: 0.08em; }
  [dir="rtl"] .x-stage__eyebrow { font-size: 0.78rem; }
  .x-hero__cta > * { flex: 1 1 auto; justify-content: center; }
  .x-stage__stats { gap: 0 14px; }
  .x-stage__stats dt { white-space: nowrap; font-size: 1.9rem; }
  [dir="rtl"] .x-stage__stats dt { font-size: 1.45rem; }
  .x-stage__stats dd { font-size: 0.74rem; }
  .x-dent__lamp { inset-inline-end: -10%; width: 46%; }
  .x-idcard { bottom: 16px; padding: 12px; border-radius: 22px; }
  .x-idcard__tag { font-size: 0.72rem; padding: 8px 6px; gap: 6px; }



  .x-btn { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-hero *, .x-hero *::before, .x-hero *::after, .x-about *, .x-about *::before, .x-about *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}


/* =====================================================================
   ATELIER · sections 4–10 (Why → CTA)
   Calm editorial system: centred italic kicker heads, hairline/dashed
   cards, square icon tiles, offset frames behind photos and nothing
   printed on top of the pictures. Same teal / porcelain / ink palette.
   ===================================================================== */
.page-index {
  --at-line: rgba(255, 255, 255, 0.1);
  --at-dash: rgba(255, 255, 255, 0.2);
  --at-cream: #10293a;
  --at-tile: linear-gradient(150deg, rgba(63, 208, 220, 0.18) 0%, rgba(111, 223, 194, 0.08) 100%);
  --at-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -32px rgba(0, 0, 0, 0.65);
  --at-lift-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 34px 60px -30px rgba(0, 0, 0, 0.75);
}

/* ---------- shared centred head ---------- */
.x-head { max-width: 760px; margin: 0 auto clamp(48px, 5.4vw, 76px); text-align: center; }
.x-head__kicker {
  display: inline-block; font-family: var(--x-serif); font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; color: var(--x-accent);
}
.x-head__kicker--caps { font-family: var(--font-caps); font-style: normal; font-size: 0.74rem; letter-spacing: var(--caps-spacing); text-transform: uppercase; }
[dir="rtl"] .x-head__kicker { font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; }
.x-head__title {
  margin-top: 12px; font-family: var(--x-serif); font-weight: 400;
  font-size: clamp(2.35rem, 4.2vw, 3.7rem); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--x-fg); text-wrap: balance;
}
.x-head__title em { font-style: italic; color: var(--x-accent); }
[dir="rtl"] .x-head__title { font-weight: 500; line-height: 1.3; letter-spacing: 0; font-size: clamp(2rem, 3.6vw, 3rem); }
[dir="rtl"] .x-head__title em { font-style: normal; }
.x-head__lead { max-width: 58ch; margin: 16px auto 0; color: var(--mist); font-size: 1.05rem; line-height: 1.75; }
.x-head__orn { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; }
.x-head__orn i { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal)); }
.x-head__orn i:last-child { background: linear-gradient(90deg, var(--teal), transparent); }
.x-head__orn b { width: 7px; height: 7px; rotate: 45deg; border: 1px solid var(--teal); background: var(--x-card); }
.x-head__orn--light i { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6)); }
.x-head__orn--light i:last-child { background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent); }
.x-head__orn--light b { border-color: var(--aqua); background: transparent; }
.x-rule { display: block; width: 46px; height: 2px; margin: 18px 0 0; border-radius: 2px; background: var(--grad); }

/* shared square icon tile */
.x-pillar__icon, .x-cred__icon, .x-mile__icon, .x-hcard__icon, .x-train__fact-icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--at-tile); color: var(--x-accent); font-size: 1.12rem;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 181, 0.12);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease);
}

/* =====================================================================
   4 · WHY — split: copy + rotating 2×2 cards | framed photo collage
   ===================================================================== */
.x-why { position: relative; overflow: clip;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, var(--x-night), #0c2231);
}
.x-why__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }

.x-why__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: 999px;
  border: 1px solid rgba(14,165,181,0.35); background: var(--x-card);
  font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--x-accent);
}
.x-why__pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--sky-100); }
[dir="rtl"] .x-why__pill { letter-spacing: 0; font-family: var(--font-display); font-size: 0.85rem; }
.x-why__title { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--x-fg); }
[dir="rtl"] .x-why__title { letter-spacing: 0; line-height: 1.4; }
.x-why__lead { margin-top: 16px; max-width: 520px; color: var(--mist); font-size: 1rem; line-height: 1.75; }

.x-why__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.x-wc {
  position: relative; overflow: hidden; cursor: pointer; padding: 22px 22px 26px; border-radius: 18px;
  background: var(--x-card); border: 1px solid var(--at-line); box-shadow: 0 10px 30px -22px rgba(14,36,51,0.35);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
  outline: none;
}
.x-wc:focus-visible { box-shadow: 0 0 0 3px rgba(14,165,181,0.35); }
.x-wc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.x-wc__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--at-tile); color: var(--x-accent); font-size: 1.05rem; transition: all 0.5s var(--ease);
}
.x-wc__num { font-family: var(--font-caps); font-weight: 600; font-size: 0.9rem; color: rgba(243,249,252,0.45); transition: color 0.5s var(--ease); }
.x-wc__title { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--x-fg); transition: color 0.5s var(--ease); }
.x-wc__text { margin-top: 8px; color: var(--mist); font-size: 0.92rem; line-height: 1.65; transition: color 0.5s var(--ease); }
.x-wc__ghost {
  position: absolute; inset-inline-end: -6px; bottom: -22px; font-family: var(--font-display); font-weight: 800; font-size: 5.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(111,223,194,0.18); pointer-events: none; transition: -webkit-text-stroke-color 0.5s var(--ease);
}
.x-wc::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--mint); transition: width 0.6s var(--ease); }
.x-wc:hover { transform: translateY(-3px); border-color: rgba(14,165,181,0.3); }
.x-wc.is-active { background: linear-gradient(140deg, #0a8b9a, #0b2b3a); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(8,117,132,0.75); }
.x-wc.is-active::after { width: 46px; }
.x-wc.is-active .x-wc__icon { background: rgba(255,255,255,0.12); color: var(--paper); box-shadow: 0 0 0 6px rgba(255,255,255,0.06); outline: 1px dashed rgba(255,255,255,0.35); outline-offset: 6px; }
.x-wc.is-active .x-wc__num { color: rgba(255,255,255,0.6); }
.x-wc.is-active .x-wc__title { color: var(--paper); }
.x-wc.is-active .x-wc__text { color: rgba(255,255,255,0.8); }
.x-wc.is-active .x-wc__ghost { -webkit-text-stroke-color: rgba(255,255,255,0.14); }

.x-why__dots { display: flex; gap: 8px; margin-top: 22px; }
.x-why__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.18); cursor: pointer; transition: width 0.4s var(--ease), background 0.4s var(--ease); }
.x-why__dots button.is-active { width: 28px; background: linear-gradient(90deg, var(--teal-700), var(--mint)); }

.x-why__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.x-why__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: all 0.35s var(--ease); }
.x-why__btn--solid { background: var(--grad); color: var(--paper); box-shadow: 0 14px 28px -16px rgba(8,117,132,0.8); }
.x-why__btn--solid:hover { background: var(--ink); transform: translateY(-2px); }
.x-why__btn--line { border: 1px solid var(--at-line); background: var(--x-card); color: var(--x-fg); }
.x-why__btn--line:hover { border-color: var(--teal); color: var(--x-accent); }

/* visual collage */
.x-why__visual { position: relative; padding: 40px 30px 60px 50px; }
[dir="rtl"] .x-why__visual { padding: 40px 50px 60px 30px; }
.x-why__dotgrid { position: absolute; top: 0; inset-inline-start: 0; width: 140px; height: 110px; background: radial-gradient(rgba(111,223,194,0.35) 1.5px, transparent 1.6px) 0 0 / 16px 16px; }
.x-why__ring { position: absolute; top: -10px; inset-inline-end: -40px; width: 230px; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(14,165,181,0.35); }
.x-why__frame {
  position: relative; margin: 0; padding: 8px; border-radius: 22px; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(14,165,181,0.3), 14px 16px 0 -2px rgba(111,223,194,0.55), 0 40px 70px -40px rgba(14,36,51,0.6);
}
[dir="rtl"] .x-why__frame { box-shadow: 0 0 0 1px rgba(14,165,181,0.3), -14px 16px 0 -2px rgba(111,223,194,0.55), 0 40px 70px -40px rgba(14,36,51,0.6); }
.x-why__frame img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 15%; border-radius: 16px; }
.x-why__corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--mint); z-index: 1; }
.x-why__corner--a { top: 26px; left: 26px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.x-why__corner--b { top: 26px; right: 26px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.x-why__inset {
  position: absolute; bottom: 10px; inset-inline-start: 0; width: 34%; margin: 0; padding: 6px; border-radius: 16px;
  background: var(--x-card); box-shadow: 0 24px 50px -24px rgba(14,36,51,0.55); z-index: 2;
}
.x-why__inset img { display: block; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 20%; border-radius: 11px; }
.x-why__call {
  position: absolute; top: 4px; inset-inline-end: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px; background: rgba(255,255,255,0.07); backdrop-filter: blur(8px);
  border: 1px solid var(--at-line); box-shadow: 0 20px 40px -24px rgba(14,36,51,0.45); color: var(--x-fg); transition: transform 0.35s var(--ease);
}
.x-why__call:hover { transform: translateY(-3px); }
.x-why__call-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--grad); color: var(--paper); }
.x-why__call small { display: block; font-family: var(--font-caps); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
[dir="rtl"] .x-why__call small { letter-spacing: 0; font-family: var(--font-display); font-size: 0.8rem; }
.x-why__call b { font-size: 1rem; font-weight: 700; }
.x-why__checks {
  position: absolute; bottom: 0; inset-inline-end: 0; z-index: 3; width: min(270px, 58%); list-style: none; margin: 0;
  display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--x-card);
  border: 1px solid var(--at-line); box-shadow: 0 24px 50px -26px rgba(14,36,51,0.5);
}
.x-why__checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; line-height: 1.45; font-weight: 500; color: var(--x-fg); }
.x-why__checks i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: var(--paper); font-size: 0.55rem; margin-top: 1px; }

/* =====================================================================
   SECTIONS 5–10 · rebuilt from the hero / about / treatments / why
   vocabulary: chapter heads, bracketed square frames, dark ink stages
   with aurora + grid, hairline stat columns, outline ghost numbers,
   square crop-mark tiles and Teko / Sora headings. Same palette.
   ===================================================================== */
.x-ba, .x-visit { --ab-head: "Teko", var(--font-display); --ab-acc: var(--x-accent); }
[dir="rtl"] .x-ba, [dir="rtl"] .x-visit { --ab-head: var(--font-display); }

/* =====================================================================
   5 · BEFORE / AFTER — chapter copy + switch | bracketed comparison frame
   ===================================================================== */
.x-ba { background: var(--x-night); overflow: clip; isolation: isolate; }
.x-ba__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.x-ba__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.55; mask-image: radial-gradient(55% 65% at 72% 50%, #000, transparent 85%); -webkit-mask-image: radial-gradient(55% 65% at 72% 50%, #000, transparent 85%); animation: x-tr-pan 40s linear infinite; }
.x-ba__blob { position: absolute; width: 540px; height: 460px; inset-inline-end: -8%; top: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 208, 220, 0.16), rgba(63, 208, 220, 0.07) 55%, transparent); animation: x-drift-b 24s ease-in-out infinite; }

.x-ba__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.x-ba__copy { min-width: 0; }
.x-ba__h em { font-style: normal; background-image: linear-gradient(100deg, #087584 0%, #0ea5b5 30%, #6fdfc2 50%, #0ea5b5 70%, #087584 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: x-shimmer 7s ease-in-out infinite; }
.x-ba .x-why__lead { max-width: 460px; }

/* Why-style cards that drive the comparison: Before · Compare · After */
.x-ba__cards { display: grid; gap: 12px; max-width: 540px; margin-top: 30px; }
.x-bc {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 22px; border-radius: 18px; text-align: start; cursor: pointer; font: inherit;
  background: var(--x-card); border: 1px solid var(--at-line); box-shadow: 0 10px 30px -22px rgba(14,36,51,0.35);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.x-bc:hover { transform: translateY(-3px); border-color: rgba(14,165,181,0.3); }
.x-bc:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14,165,181,0.35); }
.x-bc__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--at-tile); color: var(--x-accent); font-size: 1.02rem; transition: all 0.5s var(--ease); }
.x-bc__body { flex: 1; min-width: 0; display: grid; gap: 3px; position: relative; z-index: 1; }
.x-bc__title { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1.3; color: var(--x-fg); transition: color 0.5s var(--ease); }
.x-bc__text { color: var(--mist); font-size: 0.9rem; line-height: 1.55; transition: color 0.5s var(--ease); }
.x-bc__num { align-self: flex-start; font-family: var(--font-caps); font-weight: 600; font-size: 0.9rem; color: rgba(243,249,252,0.45); transition: color 0.5s var(--ease); }
.x-bc__ghost { position: absolute; inset-inline-end: 42px; bottom: -20px; font-family: var(--font-display); font-weight: 800; font-size: 4.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(111,223,194,0.18); pointer-events: none; transition: -webkit-text-stroke-color 0.5s var(--ease); }
.x-bc::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--mint); transition: width 0.6s var(--ease); }
.x-bc.is-on { background: linear-gradient(140deg, #0a8b9a, #0b2b3a); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(8,117,132,0.75); }
.x-bc.is-on::after { width: 46px; }
.x-bc.is-on .x-bc__icon { background: rgba(255,255,255,0.12); color: var(--paper); box-shadow: 0 0 0 6px rgba(255,255,255,0.06); outline: 1px dashed rgba(255,255,255,0.35); outline-offset: 6px; }
.x-bc.is-on .x-bc__title { color: var(--paper); }
.x-bc.is-on .x-bc__text { color: rgba(255,255,255,0.8); }
.x-bc.is-on .x-bc__num { color: rgba(255,255,255,0.6); }
.x-bc.is-on .x-bc__ghost { -webkit-text-stroke-color: rgba(255,255,255,0.14); }
.x-ba .x-why__cta { margin-top: 30px; }

.x-ba__media { position: relative; min-width: 0; padding: 14px 44px 22px 14px; }
[dir="rtl"] .x-ba__media { padding: 14px 14px 22px 44px; }
.x-ba__frame { position: relative; }
.x-ba__outline { position: absolute; z-index: 0; inset: 18px -18px -18px 18px; border: 1px solid var(--sky-200); pointer-events: none; }
[dir="rtl"] .x-ba__outline { inset: 18px 18px -18px -18px; }
.x-ba__corner { position: absolute; z-index: 3; width: 38px; height: 30px; border: 0 solid var(--ab-acc); pointer-events: none; }
.x-ba__corner--tl { top: -10px; inset-inline-start: -10px; border-top-width: 3px; border-inline-start-width: 3px; }
.x-ba__corner--tr { top: -10px; inset-inline-end: -10px; border-top-width: 3px; border-inline-end-width: 3px; }
.x-ba__corner--bl { bottom: -10px; inset-inline-start: -10px; border-bottom-width: 3px; border-inline-start-width: 3px; }
.x-ba__corner--br { bottom: -10px; inset-inline-end: -10px; border-bottom-width: 3px; border-inline-end-width: 3px; }
.x-ba .before-after-slider { z-index: 1; aspect-ratio: 5 / 4; max-height: none; border: 0; border-radius: 0; box-shadow: 0 40px 80px -44px rgba(14, 36, 51, 0.55); }
.x-ba .before-after-slider img { object-position: 50% 42%; }
.x-ba .before-after-slider.is-animating .before-after-reveal { transition: clip-path 0.8s var(--ease); }
.x-ba .before-after-slider.is-animating .before-after-handle { transition: left 0.8s var(--ease); }
.x-ba .before-after-handle { width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 10px rgba(14, 36, 51, 0.25); }
.x-ba .before-after-handle i { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 0; background: var(--ink); color: var(--mint); font-size: 0.85rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 12px 26px rgba(14, 36, 51, 0.35); }
.x-ba__vertical { position: absolute; z-index: 1; top: 18%; right: -40px; writing-mode: vertical-rl; rotate: 180deg; font-family: var(--ab-head); font-size: 0.82rem; font-weight: 500; line-height: 1; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ab-acc); white-space: nowrap; }
[dir="rtl"] .x-ba__vertical { right: auto; left: -40px; rotate: none; letter-spacing: 0.04em; }
.x-ba__disclaimer { display: flex; gap: 8px; margin: 36px 0 0; color: var(--mist); font-size: 0.78rem; line-height: 1.55; }
.x-ba__disclaimer i { margin-top: 3px; color: var(--teal); }

/* =====================================================================
   6 · QUALIFICATIONS — dark ink stage (hero language)
   ===================================================================== */
.x-train { padding: clamp(28px, 3vw, 44px) clamp(6px, 0.6vw, 10px); background: var(--x-night); }
.x-train__stage {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1760px; margin-inline: auto;
  padding-block: clamp(72px, 8vw, 120px); border-radius: clamp(28px, 3vw, 44px); color: var(--paper);
  background:
    radial-gradient(50% 60% at 50% -8%, rgba(14, 165, 181, 0.45), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(111, 223, 194, 0.12), transparent 70%),
    radial-gradient(35% 50% at 0% 60%, rgba(63, 208, 220, 0.1), transparent 70%),
    var(--ink);
  box-shadow: 0 60px 120px -70px rgba(14, 36, 51, 0.9);
}
.x-train__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.82fr) minmax(0, 0.62fr); gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.x-train__copy { min-width: 0; }
.x-train__h { margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 3.8vw, 3.6rem); line-height: 1.06; letter-spacing: -0.04em; color: var(--paper); text-wrap: balance; }
[dir="rtl"] .x-train__h { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.35; letter-spacing: 0; }
.x-train__eyebrow { margin-top: 22px; font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: var(--caps-spacing); text-transform: uppercase; color: var(--mint); }
[dir="rtl"] .x-train__eyebrow { font-size: 0.9rem; }
.x-train__title { margin-top: 8px; font-family: var(--x-serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.12; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .x-train__title { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.5; }
.x-train__text { max-width: 540px; margin-top: 16px; color: rgba(255, 255, 255, 0.66); font-size: 1rem; line-height: 1.8; }
.x-train__quote { margin: 22px 0 0; padding: 16px 20px; border-inline-start: 2px solid var(--mint); border-radius: 0 14px 14px 0; background: rgba(255, 255, 255, 0.05); }
[dir="rtl"] .x-train__quote { border-radius: 14px 0 0 14px; }
.x-train__quote p { font-family: var(--x-serif); font-style: italic; font-size: 1.22rem; line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
[dir="rtl"] .x-train__quote p { font-family: var(--font-display); font-style: normal; font-size: 1rem; line-height: 1.8; }

/* arched portrait with a spinning gradient rim */
.x-train__photo { position: relative; justify-self: center; width: 100%; max-width: 380px; margin: 0; }
.x-train__halo { position: absolute; inset: -18% -16% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(50% 50% at 50% 45%, rgba(63, 208, 220, 0.38), transparent 70%); filter: blur(10px); animation: x-halo 6s ease-in-out infinite; }
@keyframes x-halo { 50% { opacity: 0.6; scale: 1.06; } }
.x-train__photo::before { content: ""; position: absolute; z-index: 2; inset: -1px; border-radius: 999px 999px 30px 30px; padding: 1.5px; background: conic-gradient(from var(--x-ang), transparent 0 55%, var(--mint), var(--aqua), transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: x-ang 6s linear infinite; pointer-events: none; }
.x-train__img { position: relative; display: block; aspect-ratio: 480 / 620; overflow: hidden; border-radius: 999px 999px 30px 30px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--ink-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75); }
.x-train__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale 1.6s var(--ease); }
.x-train__photo:hover .x-train__img img { scale: 1.04; }

/* fact column — hero stat hairlines */
.x-train__facts { display: grid; align-self: center; }
.x-train__fact { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding-block: 22px; }
.x-train__fact::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--mint), rgba(255, 255, 255, 0.12) 60%); transform-origin: 0 50%; }
[dir="rtl"] .x-train__fact::before { background: linear-gradient(-90deg, var(--mint), rgba(255, 255, 255, 0.12) 60%); transform-origin: 100% 50%; }
.x-train__fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.x-train__fact-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--mint); font-size: 0.95rem; }
.x-train__fact strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--paper); }
.x-train__fact small { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; line-height: 1.55; }

/* glass credential cards with ghost numbers */
.x-creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 5vw, 76px); }
.x-cred { position: relative; overflow: hidden; isolation: isolate; padding: 24px 22px 30px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.x-cred::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--mint); transition: width 0.6s var(--ease); }
.x-cred:hover { transform: translateY(-6px); background: linear-gradient(140deg, rgba(14, 165, 181, 0.38), rgba(14, 36, 51, 0.2)); border-color: rgba(111, 223, 194, 0.42); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.x-cred:hover::after { width: 46px; }
.x-cred__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.x-cred__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: var(--paper); font-size: 1rem; box-shadow: var(--shadow-teal); }
.x-cred__num { font-family: var(--font-caps); font-weight: 600; font-size: 0.9rem; color: rgba(255, 255, 255, 0.4); }
.x-cred h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.35; color: var(--paper); }
.x-cred p { margin-top: 10px; color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; line-height: 1.65; }
.x-cred__ghost { position: absolute; z-index: -1; inset-inline-end: -6px; bottom: -24px; font-family: var(--font-display); font-weight: 800; font-size: 5.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09); pointer-events: none; transition: -webkit-text-stroke-color 0.5s var(--ease); }
.x-cred:hover .x-cred__ghost { -webkit-text-stroke-color: rgba(111, 223, 194, 0.3); }

/* =====================================================================
   7 · RECOGNITION — chapter head + spotlight strip, marquee, square tiles
   ===================================================================== */
.x-high { --rose: var(--mint); background: linear-gradient(180deg, var(--x-night) 0%, #0c2231 50%, var(--x-night) 100%); overflow: clip; isolation: isolate; }
.x-high__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.x-high__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.55; mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 85%); -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 85%); animation: x-tr-pan 40s linear infinite; }
.x-high__blob { position: absolute; border-radius: 50%; }
.x-high__blob--a { width: 520px; height: 460px; inset-inline-start: -8%; top: -4%; background: radial-gradient(closest-side, rgba(63, 208, 220, 0.2), rgba(63, 208, 220, 0.08) 55%, transparent); animation: x-drift-a 26s ease-in-out infinite; }
.x-high__blob--b { width: 500px; height: 440px; inset-inline-end: -10%; bottom: 0; background: radial-gradient(closest-side, rgba(111, 223, 194, 0.16), rgba(111, 223, 194, 0.06) 55%, transparent); animation: x-drift-b 28s ease-in-out infinite; }

.x-high__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(30px, 3.4vw, 44px); }
.x-high__head > * { min-width: 0; }
.x-high__h { max-width: 9em; }

.x-spot { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 26px 20px 20px; border-radius: 26px; background: var(--grad-tint); border: 1px solid var(--sky-100); }
[dir="rtl"] .x-spot { padding: 20px 20px 20px 26px; }
.x-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--x-ang), transparent 0 70%, var(--teal), var(--mint), transparent 98%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: x-ang 6s linear infinite; pointer-events: none; }
.x-spot__icon { position: relative; display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 18px; background: var(--grad); color: var(--paper); font-size: 1.3rem; box-shadow: var(--shadow-teal); }
.x-spot__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 1.5px solid var(--teal); opacity: 0; animation: x-tr-ring 2.6s ease-out infinite; }
.x-spot__copy { min-width: 0; }
.x-spot__kicker { display: block; font-family: var(--font-caps); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--x-accent); }
[dir="rtl"] .x-spot__kicker { letter-spacing: 0; font-size: 0.82rem; }
.x-spot__title { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--x-fg); }
.x-spot__text { margin-top: 2px; color: var(--mist); font-size: 0.92rem; line-height: 1.55; }

.x-high__marquee { margin-bottom: clamp(30px, 3.4vw, 46px); }
.x-high__marquee .x-tr__group i { font-size: 0.8rem; }

/* square crop-mark tiles that flood with ink on hover */
.x-miles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.x-mile {
  --c: var(--teal);
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: var(--x-card); border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -36px rgba(14, 70, 90, 0.35);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.x-mile::before {
  content: ""; position: absolute; z-index: 1; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 18px no-repeat;
  opacity: 0.7; transition: inset 0.55s var(--ease), opacity 0.4s;
}
.x-mile::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(63, 208, 220, 0.3), transparent 70%), linear-gradient(160deg, var(--teal-700), var(--ink) 75%); transform: translateY(101%); transition: transform 0.7s var(--ease); }
.x-mile:hover { --c: var(--mint); border-color: transparent; transform: translateY(-4px); box-shadow: 0 34px 60px -30px rgba(14, 36, 51, 0.55); }
.x-mile:hover::before { inset: 10px; opacity: 1; }
.x-mile:hover::after { transform: none; }
.x-mile__num { position: absolute; top: 24px; inset-inline-end: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(111, 223, 194, 0.3); transition: -webkit-text-stroke-color 0.5s var(--ease); }
.x-mile__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; background: var(--sky-50); color: var(--x-accent); font-size: 1rem; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.x-mile h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--x-fg); transition: color 0.5s var(--ease); }
.x-mile__rule { display: block; width: 28px; height: 2px; margin: 12px 0; background: var(--teal); transition: width 0.6s var(--ease), background 0.5s; }
.x-mile p { min-height: 3.2em; color: var(--mist); font-size: 0.88rem; line-height: 1.6; transition: color 0.5s var(--ease); }
.x-mile:hover .x-mile__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.35); }
.x-mile:hover .x-mile__icon { background: rgba(255, 255, 255, 0.12); color: var(--mint); }
.x-mile:hover h3 { color: var(--paper); }
.x-mile:hover .x-mile__rule { width: 48px; background: var(--mint); }
.x-mile:hover p { color: rgba(255, 255, 255, 0.75); }

/* =====================================================================
   8 · REVIEWS — split (why language): copy + score + reviewer cards |
   framed ink quote panel with offset mint shadow
   ===================================================================== */
.x-rev { position: relative; overflow: clip;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, var(--x-night), #0c2231);
}
.x-rev__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.x-rev__copy { min-width: 0; }

.x-score { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 12px 24px 12px 12px; border-radius: 18px; background: var(--x-card); border: 1px solid var(--at-line); box-shadow: 0 10px 30px -22px rgba(14, 36, 51, 0.35); }
[dir="rtl"] .x-score { padding: 12px 12px 12px 24px; }
.x-score__g { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--at-tile); color: var(--x-accent); font-size: 1.1rem; }
.x-score__num { font-family: var(--x-serif); font-weight: 400; font-size: 2.7rem; line-height: 1; color: var(--x-fg); direction: ltr; }
.x-score__meta { display: grid; gap: 4px; }
.x-score__stars { display: inline-flex; gap: 3px; color: var(--star); font-size: 0.86rem; }
.x-score__label { color: var(--mist); font-size: 0.82rem; }

.x-rev__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.x-rev__person { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--x-card); border: 1px solid var(--at-line); box-shadow: 0 10px 30px -24px rgba(14, 36, 51, 0.35); font: inherit; text-align: start; color: var(--x-fg); cursor: pointer; transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.x-rev__person:hover:not(.is-active) { transform: translateY(-3px); border-color: rgba(14, 165, 181, 0.3); }
.x-rev__person:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.x-rev__av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--at-tile); color: var(--x-accent); font-size: 0.95rem; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.x-rev__pname { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
[dir="rtl"] .x-rev__pname { line-height: 1.5; gap: 0; }
.x-rev__pname strong { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; transition: color 0.5s var(--ease); }
.x-rev__pname small { color: var(--mist); font-size: 0.76rem; transition: color 0.5s var(--ease); }
.x-rev__pnum { align-self: flex-start; font-family: var(--font-caps); font-weight: 600; font-size: 0.8rem; color: rgba(243, 249, 252, 0.45); transition: color 0.5s var(--ease); }
.x-rev__person::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .x-rev__person::after { transform-origin: 100% 50%; }
.x-rev__person.is-active { background: linear-gradient(140deg, #0a8b9a, #0b2b3a); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(8, 117, 132, 0.75); color: var(--paper); }
.x-rev__person.is-active .x-rev__av { background: rgba(255, 255, 255, 0.12); color: var(--paper); }
.x-rev__person.is-active .x-rev__pname small { color: rgba(255, 255, 255, 0.72); }
.x-rev__person.is-active .x-rev__pnum { color: rgba(255, 255, 255, 0.6); }
.x-rev__person.is-active::after { animation: x-rev-fill var(--x-dur, 7s) linear forwards; }
.x-rev__grid.is-paused .x-rev__person.is-active::after { animation-play-state: paused; }
@keyframes x-rev-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.x-rev__visual { position: relative; min-width: 0; padding: 40px 30px 40px 50px; }
[dir="rtl"] .x-rev__visual { padding: 40px 50px 40px 30px; }
.x-rev__stage {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 440px;
  padding: clamp(40px, 4.4vw, 60px) clamp(28px, 4vw, 56px) clamp(30px, 3.4vw, 44px);
  border-radius: 24px; color: var(--paper);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(63, 208, 220, 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(111, 223, 194, 0.14), transparent 70%),
    var(--ink);
  box-shadow: 0 0 0 1px rgba(14, 165, 181, 0.3), 14px 16px 0 -2px rgba(111, 223, 194, 0.55), 0 40px 70px -40px rgba(14, 36, 51, 0.6);
}
[dir="rtl"] .x-rev__stage { box-shadow: 0 0 0 1px rgba(14, 165, 181, 0.3), -14px 16px 0 -2px rgba(111, 223, 194, 0.55), 0 40px 70px -40px rgba(14, 36, 51, 0.6); }
.x-rev__stage::before { content: ""; position: absolute; z-index: -1; inset: 8px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: none; }
.x-rev__corner { position: absolute; width: 26px; height: 26px; top: 22px; border: 2px solid var(--mint); }
.x-rev__corner--a { left: 22px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.x-rev__corner--b { right: 22px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.x-rev__mark { position: absolute; z-index: -1; bottom: clamp(24px, 3vw, 40px); inset-inline-end: clamp(28px, 3.4vw, 48px); font-size: clamp(4.4rem, 7vw, 6.6rem); line-height: 1; color: rgba(111, 223, 194, 0.12); }
.x-rev__slides { display: grid; flex: 1; }
.x-rev__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), visibility 0.7s; }
.x-rev__slide.is-active { opacity: 1; visibility: visible; translate: none; }
.x-rev__stars { display: inline-flex; gap: 4px; color: var(--star); font-size: 0.9rem; }
.x-rev__quote { margin-top: 18px; font-family: var(--x-serif); font-style: italic; font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.42; color: var(--paper); }
[dir="rtl"] .x-rev__quote { font-style: normal; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.9; }
.x-rev__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 26px; }
.x-rev__who::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--grad-soft); }
.x-rev__who strong { font-family: var(--font-display); font-size: 1rem; color: var(--paper); }
.x-rev__who span { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; }
.x-rev__ctrl { display: flex; gap: 10px; margin-top: 30px; }
.x-rev__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--paper); cursor: pointer; transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease); }
.x-rev__btn:hover { background: var(--mint); border-color: var(--mint); color: var(--x-fg); }
.x-rev__btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* =====================================================================
   9 · VISIT — about language: bracketed map + clock tab | copy, square rows
   ===================================================================== */
.x-visit { background: var(--x-night); overflow: clip; isolation: isolate; }
.x-visit__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.x-visit__media { position: relative; min-width: 0; padding: 12px 34px 44px 22px; }
[dir="rtl"] .x-visit__media { padding: 12px 22px 44px 34px; }
.x-visit__frame { position: relative; aspect-ratio: 612 / 560; }
.x-visit__map { position: relative; z-index: 1; height: 100%; overflow: hidden; background: var(--x-card); box-shadow: 0 34px 60px -40px rgba(0, 0, 0, 0.7); }
.x-visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(178deg) saturate(0.7) contrast(0.95); }
.x-visit .x-ab__vertical { top: 24%; }

.x-clock { position: absolute; z-index: 4; bottom: -24px; inset-inline-start: -20px; display: grid; justify-items: start; min-width: 220px; padding: 18px 26px 18px 24px; background: #0c2231; color: var(--paper); border-inline-start: 3px solid var(--mint); box-shadow: 0 24px 50px -24px rgba(14, 36, 51, 0.6); }
.x-clock__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.x-clock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 4px rgba(34, 197, 139, 0.22); animation: x-live 2s ease-out infinite; }
.x-clock.is-closed .x-clock__dot { background: var(--star); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.2); animation: none; }
.x-clock__time { margin-top: 8px; font-family: "Teko", var(--font-display); font-weight: 600; font-size: 3rem; line-height: 0.9; padding-top: 0.1em; letter-spacing: 0.01em; color: var(--paper); }
[dir="rtl"] .x-clock__time { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.2; padding-top: 0; }
.x-clock__zone { margin-top: 4px; font-family: var(--font-caps); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mint); }
[dir="rtl"] .x-clock__zone { letter-spacing: 0; font-size: 0.8rem; }

.x-visit__text { min-width: 0; }
.x-visit__h { font-family: var(--ab-head); font-weight: 600; font-size: clamp(2.4rem, 3.9vw, 3.5rem); line-height: 1.08; color: var(--x-fg); }
[dir="rtl"] .x-visit__h { font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.35; }
.x-visit__lead { margin-top: 14px; color: var(--mist); font-size: 1.02rem; line-height: 1.78; }

.x-hours { display: grid; gap: 14px; margin-top: 26px; }
.x-hcard { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 18px; background: var(--x-card); border: 1px solid var(--line-2); transition: border-color 0.35s, box-shadow 0.45s var(--ease), transform 0.45s var(--ease); }
[dir="rtl"] .x-hcard { padding: 16px 18px 16px 22px; }
.x-hcard:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(14, 36, 51, 0.4); }
.x-hcard::before { content: ""; position: absolute; top: -1px; bottom: -1px; inset-inline-start: -1px; width: 3px; background: var(--ab-acc); transform: scaleY(0); transition: transform 0.5s var(--ease); }
.x-hcard__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: var(--sky-50); color: var(--ab-acc); font-size: 0.95rem; transition: background 0.35s, color 0.35s; }
.x-hcard--closed .x-hcard__icon { background: var(--bg); color: var(--mist); }
.x-hcard__titles { flex: 1; min-width: 0; }
.x-hcard__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.x-hcard h3 { font-family: var(--ab-head); font-weight: 500; font-size: 1.6rem; line-height: 1; padding-top: 0.12em; color: var(--x-fg-2); }
[dir="rtl"] .x-hcard h3 { font-weight: 600; font-size: 1.08rem; line-height: 1.4; padding-top: 0; }
.x-hcard__time { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; color: var(--mist); }
.x-hcard__num { font-family: var(--ab-head); font-weight: 600; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(111, 223, 194, 0.3); }
.x-hcard__today { display: none; padding: 4px 10px; background: var(--ab-acc); color: var(--paper); font-family: var(--font-caps); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }
[dir="rtl"] .x-hcard__today { letter-spacing: 0; font-size: 0.74rem; }
.x-hcard.is-today { border-color: var(--ab-acc); box-shadow: 0 18px 34px -24px rgba(8, 117, 132, 0.55); }
.x-hcard.is-today::before { transform: none; }
.x-hcard.is-today .x-hcard__today { display: inline-block; }
.x-hcard.is-today .x-hcard__icon { background: var(--ab-acc); color: var(--paper); }

.x-visit__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin: 24px 0 0; padding: 0; list-style: none; }
.x-visit__info li { display: flex; gap: 12px; color: var(--mist); font-size: 0.9rem; line-height: 1.6; }
.x-visit__info i { width: 14px; flex: none; margin-top: 5px; text-align: center; color: var(--teal); }
.x-visit__info .fa-whatsapp { color: #1fb760; }
.x-visit__info strong { color: var(--x-fg); font-weight: 600; }
.x-visit .x-ab__ctas { margin-top: 28px; }
.x-visit .x-ab__btn, .x-visit .x-ab__ghost-btn { gap: 10px; padding-inline: 30px; }
.x-visit__book { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--x-accent); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.x-visit__book i { transition: translate 0.3s var(--ease); }
.x-visit__book:hover i { translate: 4px 0; }
[dir="rtl"] .x-visit__book:hover i { translate: -4px 0; }

/* =====================================================================
   10 · CTA — hero ink stage: copy + buttons | signature + stat column
   ===================================================================== */
.x-cta { padding: clamp(28px, 3vw, 44px) clamp(6px, 0.6vw, 10px) clamp(8px, 0.8vw, 12px); background: var(--x-night); }
.x-cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 4vw, 72px); align-items: center; max-width: 1400px; margin-inline: auto; padding: clamp(64px, 7vw, 108px) clamp(24px, 4.4vw, 72px); }
.x-cta__copy { min-width: 0; }
.x-cta__title { max-width: 15ch; margin: clamp(20px, 2.2vw, 28px) 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 4.3vw, 4.3rem); line-height: 1.05; letter-spacing: -0.045em; color: var(--paper); text-wrap: balance; }
[dir="rtl"] .x-cta__title { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.38; letter-spacing: 0; }
.x-cta__side { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.x-cta__sig { display: block; width: clamp(130px, 13vw, 190px); height: auto; opacity: 0.9; animation: x-float 7s ease-in-out infinite; }
.x-cta .x-stage__stats { width: 100%; padding-bottom: 0; }

/* ---------- responsive (why + sections 5–10) ---------- */
@media (max-width: 1100px) {
  .x-why__grid { grid-template-columns: 1fr; }
  .x-why__visual { width: min(100%, 620px); margin-inline: auto; }
  .x-train__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .x-train__facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .x-train__fact:last-child { border-bottom: 0; }
  .x-train__fact { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .x-creds, .x-miles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-rev__grid { grid-template-columns: 1fr; }
  .x-rev__visual { width: min(100%, 700px); margin-inline: auto; }
}
@media (max-width: 900px) {
  .x-ba__layout, .x-visit__layout, .x-high__head, .x-cta__grid { grid-template-columns: 1fr; }
  .x-ba__media, .x-visit__media { width: 100%; max-width: 640px; margin-inline: auto; }
  .x-train__grid { grid-template-columns: 1fr; }
  .x-train__photo { max-width: 320px; }
  .x-train__facts { grid-template-columns: 1fr; }
  .x-train__fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .x-cta .x-stage__stats { grid-column: auto; }
}
@media (max-width: 600px) {
  .x-why__cards { grid-template-columns: 1fr; }
  .x-why__visual, [dir="rtl"] .x-why__visual { padding: 70px 0 0; }
  .x-why__ring, .x-why__dotgrid { display: none; }
  .x-why__frame, [dir="rtl"] .x-why__frame { box-shadow: 0 0 0 1px rgba(14,165,181,0.3), 0 30px 50px -30px rgba(14,36,51,0.6); }
  .x-why__inset { display: none; }
  .x-why__checks { position: relative; width: 100%; margin-top: 16px; }
  .x-why__call { inset-inline: 0 auto; }
  .x-why__cta .x-why__btn { flex: 1 1 auto; justify-content: center; }

  .x-bc { padding: 16px 16px; gap: 14px; }
  .x-bc__icon { width: 42px; height: 42px; }
  .x-ba__media { padding: 10px 30px 18px 10px; }
  [dir="rtl"] .x-ba__media { padding: 10px 10px 18px 30px; }
  .x-ba__outline { inset: 12px -12px -12px 12px; }
  [dir="rtl"] .x-ba__outline { inset: 12px 12px -12px -12px; }
  .x-ba__corner { width: 26px; height: 22px; }
  .x-ba__corner--tl, .x-ba__corner--tr { top: -8px; }
  .x-ba__corner--bl, .x-ba__corner--br { bottom: -8px; }
  .x-ba__corner--tl, .x-ba__corner--bl { inset-inline-start: -8px; }
  .x-ba__corner--tr, .x-ba__corner--br { inset-inline-end: -8px; }
  .x-ba__vertical { right: -28px; font-size: 0.64rem; letter-spacing: 0.2em; }
  [dir="rtl"] .x-ba__vertical { right: auto; left: -28px; letter-spacing: 0; }
  .x-ba .before-after-slider { aspect-ratio: 1 / 1; }
  .x-ba__disclaimer { margin-top: 28px; }

  .x-train { padding-inline: 6px; }
  .x-train__stage { padding-block: 64px; }
  .x-creds { grid-template-columns: 1fr; gap: 12px; }

  .x-spot { align-items: flex-start; padding: 18px; }
  .x-spot__icon { width: 52px; height: 52px; font-size: 1.1rem; border-radius: 16px; }
  .x-miles { gap: 10px; }
  .x-mile { aspect-ratio: auto; min-height: 210px; padding: 18px 16px; }
  .x-mile::before { inset: 8px; background-size: 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px; }
  .x-mile__num { top: 14px; inset-inline-end: 16px; font-size: 2.1rem; }
  .x-mile__icon { width: 40px; height: 40px; font-size: 0.9rem; margin-bottom: 18px; }
  .x-mile h3 { font-size: 0.95rem; }
  .x-mile__rule { margin: 8px 0; }
  .x-mile p { font-size: 0.8rem; line-height: 1.5; }

  .x-score { display: flex; }
  .x-rev__people { grid-template-columns: 1fr; }
  .x-rev__visual, [dir="rtl"] .x-rev__visual { padding: 24px 0 0; }
  .x-rev__stage, [dir="rtl"] .x-rev__stage { min-height: 0; box-shadow: 0 0 0 1px rgba(14,165,181,0.3), 0 30px 50px -30px rgba(14,36,51,0.6); }

  .x-visit__media { padding: 10px 28px 40px 12px; }
  [dir="rtl"] .x-visit__media { padding: 10px 12px 40px 28px; }
  .x-visit__frame { aspect-ratio: 1 / 1.05; }
  .x-clock { inset-inline-start: -8px; bottom: -26px; min-width: 0; padding: 14px 18px; }
  .x-clock__time { font-size: 2.4rem; }
  .x-visit__info { grid-template-columns: 1fr; }
  .x-hcard { gap: 12px; padding: 14px; }
  .x-hcard h3 { font-size: 1.35rem; }
  .x-hcard__num { font-size: 1.9rem; }

  .x-cta { padding-inline: 6px; }
  .x-cta__grid { padding: 56px 22px; }
  .x-cta__title { font-size: clamp(2rem, 9.4vw, 2.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  .x-rev__slide, .x-cred, .x-mile, .x-rev__person { transition: none !important; }
  .x-rev__person.is-active::after { animation: none; transform: none; }
}

/* =====================================================================
   MOTION — entrances + gentle ambient movement for sections after the hero
   ===================================================================== */
@keyframes x-m-rise { from { opacity: 0; translate: 0 36px; scale: 0.97; filter: blur(6px); } to { opacity: 1; translate: none; scale: 1; filter: none; } }
@keyframes x-m-pop { 0% { scale: 0.4; opacity: 0; } 70% { scale: 1.12; opacity: 1; } 100% { scale: 1; } }
@keyframes x-m-clip { from { clip-path: inset(0 0 100% 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes x-m-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes x-m-wipe { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes x-m-zoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes x-m-float { 50% { translate: 0 -8px; } }
@keyframes x-m-spin { to { rotate: 360deg; } }
@keyframes x-m-drift { 50% { translate: 10px -8px; } }
@keyframes x-m-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 181, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(14, 165, 181, 0); } }
@keyframes x-m-slide-s { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: none; } }
@keyframes x-m-slide-e { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: none; } }

/* staggered cards */
html.js .x-anim { opacity: 0; }
html.js .x-anim.is-in { animation: x-m-rise 1s var(--ease) var(--md, 0s) both; }
html.js .x-anim.is-in [class*="__icon"] { animation: x-m-pop 0.8s var(--ease) calc(var(--md, 0s) + 0.25s) both; }

/* hairlines draw in as their rows arrive */
html.js .x-train__fact.x-anim::before { scale: 0 1; transition: scale 1.1s var(--ease) calc(var(--md, 0s) + 0.2s); }
html.js .x-train__fact.x-anim.is-in::before { scale: 1 1; }

/* why */
html.js .x-why__visual[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-why__visual[data-reveal] .x-why__frame { clip-path: inset(0 0 100% 0 round 22px); }
html.js .x-why__visual[data-reveal].is-in .x-why__frame { animation: x-m-clip 1.3s var(--ease) both; }
html.js .x-why__visual[data-reveal].is-in .x-why__frame img { animation: x-m-zoom 1.8s var(--ease) both; }
html.js .x-why__visual[data-reveal] :is(.x-why__inset, .x-why__call, .x-why__checks) { opacity: 0; }
html.js .x-why__visual[data-reveal].is-in .x-why__inset { animation: x-m-slide-s 0.9s var(--ease) 0.7s both, x-m-float 6s ease-in-out 1.8s infinite; }
html.js .x-why__visual[data-reveal].is-in .x-why__call { animation: x-m-rise 0.9s var(--ease) 0.9s both, x-m-float 5s ease-in-out 2s infinite; }
html.js .x-why__visual[data-reveal].is-in .x-why__checks { animation: x-m-slide-e 0.9s var(--ease) 1.05s both; }
.x-why__call-ico { animation: x-m-glow 2.6s ease-in-out infinite; }
.x-why__ring { animation: x-m-spin 40s linear infinite; }
.x-why__dotgrid { animation: x-m-drift 8s ease-in-out infinite; }
html.js .x-wc[data-reveal] { transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s, 0s; }

/* before / after: frame wipes open, brackets + outline settle in */
html.js .x-ba__media[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-ba__media[data-reveal] .before-after-slider { clip-path: inset(0 50% 0 50%); }
html.js .x-ba__media[data-reveal].is-in .before-after-slider { animation: x-m-wipe 1.3s var(--ease) both; }
html.js .x-ba__media[data-reveal] :is(.x-ba__outline, .x-ba__corner, .x-ba__vertical, .x-ba__disclaimer) { opacity: 0; transition: opacity 0.8s var(--ease) 0.8s, translate 1.1s var(--ease) 0.8s, scale 0.8s var(--ease) 0.9s; }
html.js .x-ba__media[data-reveal] .x-ba__outline { translate: -18px -16px; }
[dir="rtl"] .x-ba__media[data-reveal] .x-ba__outline { translate: 18px -16px; }
html.js .x-ba__media[data-reveal] .x-ba__corner { scale: 0.4; }
html.js .x-ba__media[data-reveal].is-in :is(.x-ba__outline, .x-ba__corner, .x-ba__vertical, .x-ba__disclaimer) { opacity: 1; translate: none; scale: 1; }
.x-ba .before-after-handle i { animation: x-m-glow 2.4s ease-in-out infinite; }

/* qualifications: arched portrait rises out of its frame */
html.js .x-train__photo[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-train__photo[data-reveal] .x-train__img { clip-path: inset(100% 0 0 0); }
html.js .x-train__photo[data-reveal].is-in .x-train__img { animation: x-m-up 1.4s var(--ease) both; }
html.js .x-train__photo[data-reveal].is-in .x-train__img img { animation: x-m-zoom 1.9s var(--ease) both; }
html.js .x-train__copy [data-reveal] { transition-delay: var(--d, 0s); }

/* reviews: ink panel opens from the top like the why frame */
html.js .x-rev__visual[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-rev__visual[data-reveal] .x-rev__stage { clip-path: inset(0 0 100% 0 round 24px); }
html.js .x-rev__visual[data-reveal].is-in .x-rev__stage { animation: x-m-clip-open 1.3s var(--ease) both; }
@keyframes x-m-clip-open { from { clip-path: inset(0 0 100% 0 round 24px); } to { clip-path: inset(-80px -80px -80px -80px round 24px); } }
.x-rev__mark { animation: x-m-float 6s ease-in-out infinite; }
html.js .x-score.is-in .x-score__stars i { animation: x-m-pop 0.6s var(--ease) both; }
html.js .x-score.is-in .x-score__stars i:nth-child(2) { animation-delay: 0.1s; }
html.js .x-score.is-in .x-score__stars i:nth-child(3) { animation-delay: 0.2s; }
html.js .x-score.is-in .x-score__stars i:nth-child(4) { animation-delay: 0.3s; }
html.js .x-score.is-in .x-score__stars i:nth-child(5) { animation-delay: 0.4s; }

/* visit: map wipes open, brackets + clock tab arrive */
html.js .x-visit__media[data-reveal] { opacity: 1; filter: none; translate: none; }
html.js .x-visit__media[data-reveal] .x-visit__map { clip-path: inset(0 50% 0 50%); }
html.js .x-visit__media[data-reveal].is-in .x-visit__map { animation: x-m-wipe 1.3s var(--ease) both; }
html.js .x-visit__media[data-reveal] :is(.x-ab__outline, .x-ab__corner, .x-ab__vertical) { opacity: 0; transition: opacity 0.8s var(--ease) 0.8s, translate 1.1s var(--ease) 0.8s, scale 0.8s var(--ease) 0.9s; }
html.js .x-visit__media[data-reveal] .x-ab__outline { translate: -18px -16px; }
[dir="rtl"] .x-visit__media[data-reveal] .x-ab__outline { translate: 18px -16px; }
html.js .x-visit__media[data-reveal] .x-ab__corner { scale: 0.4; }
html.js .x-visit__media[data-reveal] .x-clock { opacity: 0; translate: -30px 0; transition: opacity 0.8s var(--ease) 0.9s, translate 0.9s var(--ease) 0.9s; }
[dir="rtl"] .x-visit__media[data-reveal] .x-clock { translate: 30px 0; }
html.js .x-visit__media[data-reveal].is-in :is(.x-ab__outline, .x-ab__corner, .x-ab__vertical, .x-clock) { opacity: 1; translate: none; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  html.js .x-anim, html.js .x-why__visual[data-reveal] *, html.js .x-ba__media[data-reveal] *, html.js .x-train__photo[data-reveal] *, html.js .x-rev__visual[data-reveal] *, html.js .x-visit__media[data-reveal] * { opacity: 1 !important; animation: none !important; clip-path: none !important; scale: none !important; translate: none !important; }
  html.js .x-train__fact::before { scale: 1 1 !important; }
  .x-why__ring, .x-why__dotgrid, .x-rev__mark, .x-why__call-ico, .x-ba .before-after-handle i, .x-train__halo, .x-train__photo::before, .x-spot::after, .x-spot__icon::before, .x-cta__sig, .x-ba__grid, .x-ba__blob, .x-high__grid, .x-high__blob { animation: none !important; }
  .x-train *, .x-cta * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* =====================================================================
   NIGHT CHROME — the floating header + shared glass bits wear ink
   Only the homepage is a dark stage, so every rule here is scoped to
   .page-index and the other pages keep their porcelain header.
   ===================================================================== */
body.page-index { background: var(--x-night); color: var(--x-fg); }
body.page-index ::selection { background: var(--mint); color: #0a1b26; }

.page-index .lm-header__bar {
  color: var(--x-fg);
  background: rgba(10, 27, 38, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.page-index .lm-header.is-scrolled .lm-header__bar {
  background: rgba(10, 27, 38, 0.92);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.page-index .lm-header.is-open .lm-header__bar { background: rgba(10, 27, 38, 0.97); }
.page-index .lm-brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.page-index .lm-brand__copy { border-inline-start-color: var(--line-2); }
.page-index .lm-brand__copy strong { color: var(--x-fg); }
.page-index .lm-brand__copy small { color: var(--x-accent); }
.page-index .lm-nav { background: rgba(255, 255, 255, 0.05); }
.page-index .lm-nav .nav-link { color: var(--x-fg-2); }
.page-index .lm-nav .nav-link:hover { color: var(--x-fg); background: rgba(255, 255, 255, 0.08); }
.page-index .lm-menu { border-top-color: var(--line); }
.page-index .lm-burger { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); box-shadow: none; }
.page-index .lm-burger span, .page-index .lm-burger::before, .page-index .lm-burger::after { background: var(--x-fg); }
.page-index .lang-toggle { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--x-fg); }
.page-index .lang-toggle:hover { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(63, 208, 220, 0.16); }
.page-index .lang-menu {
  background: rgba(12, 34, 49, 0.96);
  border-color: var(--line-2);
  color: var(--x-fg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}
.page-index .lang-menu a:hover, .page-index .lang-menu a.active { background: rgba(255, 255, 255, 0.07); }
.page-index .lang-menu a.active { color: var(--x-accent); }
.page-index .lm-footer__langs a.is-active { color: #0a1b26; }

/* =====================================================================
   PHONE PEACE — on small screens the endless motion stops.
   Everything still looks the same: the ink stage, its glows, the grid,
   the tooth drawing, the lamp. Only the loops that never end (and the
   few pseudo-elements that only exist to animate) are switched off,
   because repainting them was what made scrolling feel heavy on a phone.
   One-off entrances — the tooth being drawn, cards rising in — stay.
   ===================================================================== */
@media (max-width: 700px) {
  .x-stage__sparks { display: none; }
  .x-btn--shine::after,
  .x-treat__foot-icon::before,
  .x-spot__icon::before { display: none; }

  .x-stage__lines,
  .x-stage__aurora,
  .x-stage__dot::after,
  .x-hero__title em,
  .x-hero__rule i,
  .x-btn--primary .x-btn__icon i,
  .x-stage__wa i,
  .x-stage__stats dt i,
  .x-stage__live,
  .x-dent__tooth,
  .x-dent__run,
  .x-dent__echo,
  .x-dent__mesh,
  .x-dent__scan,
  .x-dent__twinkle,
  .x-dent__led,
  .x-dent__beam,
  .x-idcard::before,
  .x-tcard__tag::before,
  .x-tcard__tag::after,
  .x-tcard--feature .x-tcard__link,
  .x-treat .x-display em,
  .x-treat__foot::after,
  .x-filter__ind::after,
  .x-tr__grid,
  .x-tr__blob--a,
  .x-tr__blob--b,
  .x-tr__track,
  .x-tr__group i,
  .x-ba__grid,
  .x-ba__blob,
  .x-ba__h em,
  .x-ba .before-after-handle i,
  .x-high__grid,
  .x-high__blob--a,
  .x-high__blob--b,
  .x-spot::after,
  .x-train__halo,
  .x-train__photo::before,
  .x-rev__mark,
  .x-why__ring,
  .x-why__dotgrid,
  .x-why__call-ico,
  .x-why__visual[data-reveal].is-in .x-why__inset,
  .x-why__visual[data-reveal].is-in .x-why__call,
  .x-cta__sig {
    animation: none !important;
  }

  .x-dent__beam { opacity: 0.4; }
}
