/* Deif Clinics. Dark, cinematic, one cyan accent: the slit-lamp beam. */

:root {
  --ink: #06090b;
  --ink-1: #0a0f12;
  --ink-2: #0f161a;
  --bone: #efe9df;
  --bone-2: #c5beb2;
  --mute: #8d9498;
  --line: rgba(239, 233, 223, 0.1);
  --line-2: rgba(239, 233, 223, 0.2);
  --beam: #62d6ee;
  --beam-2: #2aa9c6;
  --beam-ink: #03171c;
  --beam-glow: rgba(98, 214, 238, 0.32);
  --beam-soft: rgba(98, 214, 238, 0.09);
  --danger: #ff9d8c;
  --grade: saturate(0.8) contrast(1.06) brightness(0.84);
  --header-bg: rgba(6, 9, 11, 0.74);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  --field-bg: rgba(255, 255, 255, 0.03);
  --shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
  --pupil: #06090b;
  --grain: 0.05;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --header-h: 84px;
  --f-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-latin: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-brand: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --lh-display: 1.06;
  --lh-body: 1.7;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

html[lang="ar"] {
  --f-display: "El Messiri", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh-display: 1.32;
  --lh-body: 1.95;
}

/* Light theme: follows the device setting unless the visitor picked a theme with the toggle. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #f2f4f4;
    --ink-1: #e8eded;
    --ink-2: #dfe5e6;
    --bone: #0f1a1f;
    --bone-2: #3b4a51;
    --mute: #5f6e75;
    --line: rgba(15, 26, 31, 0.1);
    --line-2: rgba(15, 26, 31, 0.2);
    --beam: #087086;
    --beam-2: #087086;
    --beam-ink: #ffffff;
    --beam-glow: rgba(8, 112, 134, 0.25);
    --beam-soft: rgba(8, 112, 134, 0.07);
    --danger: #b3402c;
    --grade: saturate(0.92) contrast(1.03) brightness(0.98);
    --header-bg: rgba(242, 244, 244, 0.84);
    --card-bg: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.55));
    --field-bg: #ffffff;
    --shadow: 0 40px 90px -50px rgba(15, 26, 31, 0.45), 0 0 0 1px var(--line);
    --pupil: #0f1a1f;
    --grain: 0.03;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #f2f4f4;
  --ink-1: #e8eded;
  --ink-2: #dfe5e6;
  --bone: #0f1a1f;
  --bone-2: #3b4a51;
  --mute: #5f6e75;
  --line: rgba(15, 26, 31, 0.1);
  --line-2: rgba(15, 26, 31, 0.2);
  --beam: #087086;
  --beam-2: #087086;
  --beam-ink: #ffffff;
  --beam-glow: rgba(8, 112, 134, 0.25);
  --beam-soft: rgba(8, 112, 134, 0.07);
  --danger: #b3402c;
  --grade: saturate(0.92) contrast(1.03) brightness(0.98);
  --header-bg: rgba(242, 244, 244, 0.84);
  --card-bg: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.55));
  --field-bg: #ffffff;
  --shadow: 0 40px 90px -50px rgba(15, 26, 31, 0.45), 0 0 0 1px var(--line);
  --pupil: #0f1a1f;
  --grain: 0.03;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--beam) 30%, transparent); color: var(--bone); }

:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--beam);
  color: var(--beam-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- type ---------- */
.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
html[lang="ar"] .display { font-weight: 500; letter-spacing: 0; }
.display em { font-style: italic; color: var(--beam); }
html[lang="ar"] .display em { font-style: normal; }

.hero-title { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.h2 { font-size: clamp(1.95rem, 3.7vw, 3.15rem); }
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); }
html[lang="ar"] .hero-title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
html[lang="ar"] .h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

h3 { margin: 0 0 0.5em; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--f-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beam);
}
html[lang="ar"] .eyebrow { font-family: var(--f-body); font-size: 0.98rem; font-weight: 500; letter-spacing: 0; }

.lead { max-width: 58ch; margin: 24px 0 0; font-size: clamp(1.08rem, 1.35vw, 1.24rem); color: var(--bone-2); }
.prose p { max-width: 62ch; color: var(--bone-2); }
.muted { color: var(--mute); }
.small-note { margin: 40px 0 0; font-size: 0.92rem; color: var(--mute); }
.tbc { color: var(--bone-2); font-style: italic; border-bottom: 1px dashed var(--beam-2); }
html[lang="ar"] .tbc { font-style: normal; }

/* ---------- buttons & links ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }

.btn {
  --pad: 15px 26px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.btn .icon { width: 18px; height: 18px; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--beam); color: var(--beam-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--beam-glow); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--bone); }
.btn-ghost:hover { border-color: var(--beam); color: var(--beam); }
.btn-sm { --pad: 10px 18px; font-size: 0.88rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--beam); border-color: var(--beam); }

.arrow { transition: transform 0.4s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] a:hover .arrow { transform: scaleX(-1) translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  view-transition-name: site-header;
}
.site-header.is-scrolled,
body.menu-open .site-header {
  background: var(--header-bg);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height 0.45s var(--ease); }
.is-scrolled .header-inner { height: 66px; }

.brand {
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--f-brand);
}
.brand-name { font-size: 1.7rem; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--f-latin); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--beam); }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative;
  padding-block: 6px;
  color: var(--bone-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--beam);
  box-shadow: 0 0 8px var(--beam-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
[dir="rtl"] .nav-link::after { transform-origin: right; }
.nav-link:hover,
.nav-link[aria-current] { color: var(--bone); }
.nav-link:hover::after,
.nav-link[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch,
.mm-lang {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone-2);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.lang-switch:hover,
.mm-lang:hover { border-color: var(--beam); color: var(--bone); }
html[lang="en"] .lang-switch,
html[lang="en"] .mm-lang { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] .lang-switch,
html[lang="ar"] .mm-lang { font-family: var(--f-latin); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--bone-2);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: var(--beam); color: var(--bone); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}
.mm-foot .theme-toggle { width: 44px; height: 44px; }
.mm-tools { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { transform: translateY(-6px); }
.menu-lines::after { transform: translateY(6px); }
[aria-expanded="true"] .menu-lines { background: transparent; }
[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); }
[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 36px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) max(36px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--beam) 10%, transparent), transparent 70%), var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mm-link {
  display: block;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.25;
  text-decoration: none;
}
.mm-link[aria-current] { color: var(--beam); }
.mobile-menu.is-open li { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.mm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 88px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -25%;
  inset-inline-end: -15%;
  width: min(80vw, 1100px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--beam) 13%, transparent), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(36px, 5vw, 84px); width: 100%; }
.hero-copy { min-width: 0; }

.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; filter: var(--grade); }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 9, 11, 0.8)), radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(6, 9, 11, 0.45));
}
/* the slit-lamp beam that sweeps across the portrait on load */
.hero-figure::after {
  content: "";
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  z-index: 2;
  width: 2px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #62d6ee 18%, #eafcff 50%, #62d6ee 82%, transparent);
  box-shadow: 0 0 22px 6px rgba(98, 214, 238, 0.32), 0 0 70px 22px rgba(98, 214, 238, 0.14);
}
[dir="rtl"] .hero-figure::after { left: auto; right: 0; }
.js .hero-figure img { animation: reveal-ltr 1.8s var(--ease) 0.15s both; }
.js .hero-figure::after { animation: beam-ltr 1.8s var(--ease) 0.15s both; }
html.js[dir="rtl"] .hero-figure img { animation-name: reveal-rtl; }
html.js[dir="rtl"] .hero-figure::after { animation-name: beam-rtl; }

.rating-chip {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  inset-inline-start: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(239, 233, 223, 0.2);
  border-radius: 999px;
  color: #efe9df;
  background: rgba(6, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}
.rating-chip .icon { color: #62d6ee; }
.js .rating-chip { animation: rise 0.9s var(--ease) 1.7s both; }

/* ---------- credentials strip ---------- */
.creds { border-block: 1px solid var(--line); background: var(--ink-1); }
.creds-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 26px 0; list-style: none; }
.creds-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px;
  border-inline-start: 1px solid var(--line);
  color: var(--bone-2);
  font-size: 0.92rem;
  line-height: 1.45;
}
.creds-list li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.creds-list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--beam); box-shadow: 0 0 10px var(--beam); }

/* ---------- section heads & layout ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 96px); }
.split.is-reverse > .split-media { order: 2; }
.split.is-text { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.split-copy,
.split-media { min-width: 0; }
.split-copy .section-head { margin-bottom: 28px; }

/* ---------- cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--beam-soft), transparent 60%);
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--beam) 45%, transparent); }

.glyph { fill: none; stroke: var(--beam); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card .glyph { width: 46px; height: 46px; margin-bottom: 44px; }
.service-card h3,
.option h3,
.qual h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
html[lang="ar"] .service-card h3,
html[lang="ar"] .option h3,
html[lang="ar"] .qual h3 { font-weight: 500; line-height: 1.4; }
.option h3 em { font-style: normal; }
.service-card p,
.option p,
.qual p { flex: 1; margin: 0; color: var(--bone-2); font-size: 0.97rem; }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--beam); font-size: 0.9rem; font-weight: 600; }

.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* ---------- frames ---------- */
.frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.frame.is-wide { aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: filter 1.6s var(--ease), transform 1.8s var(--ease); }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 11, 0.55));
  box-shadow: inset 0 0 0 1px var(--line);
}
.page-hero-media .frame { max-height: 640px; }

/* ---------- eye chart ---------- */
.snellen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 72%, color-mix(in srgb, var(--beam) 8%, transparent), transparent 60%), var(--ink-1);
  font-family: var(--f-latin);
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.34em;
  color: var(--bone);
}
.sn-row { position: relative; display: block; padding-inline-start: 0.34em; white-space: nowrap; opacity: 0.9; }
.sn-r1 { font-size: 4.6em; }
.sn-r2 { font-size: 3.4em; }
.sn-r3 { font-size: 2.55em; }
.sn-r4 { font-size: 1.9em; }
.sn-r5 { font-size: 1.45em; }
.sn-r6 { font-size: 1.12em; }
.sn-r7 { font-size: 0.86em; opacity: 0.4; }
.sn-row.is-target { padding: 0.55em 0.4em 0.55em 0.74em; color: var(--beam); text-shadow: 0 0 18px var(--beam-glow); opacity: 1; }
.sn-row.is-target::before {
  content: "";
  position: absolute;
  left: -2.5em;
  right: -2.5em;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beam), transparent);
  box-shadow: 0 0 12px var(--beam);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 1.4s var(--ease) 0.9s, opacity 1s ease 0.9s;
}
.snellen.is-in .sn-row.is-target::before,
html:not(.js) .sn-row.is-target::before { transform: scaleX(1); opacity: 1; }
.sn-mark {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.8em);
  transform: translateY(-50%);
  padding: 0.35em 0.7em;
  border: 1px solid color-mix(in srgb, var(--beam) 50%, transparent);
  border-radius: 999px;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  text-shadow: none;
}
.js .snellen .sn-row { opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 85ms); }
.js .snellen.is-in .sn-row { opacity: 0.9; transform: none; }
.js .snellen.is-in .sn-r7 { opacity: 0.4; }
.js .snellen.is-in .sn-row.is-target { opacity: 1; }

/* ---------- iris ---------- */
.iris-wrap { position: relative; display: grid; place-items: center; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.iris-wrap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--beam) 12%, transparent), transparent); }
.iris { position: relative; width: 100%; height: auto; overflow: visible; }
.iris-halo { fill: none; stroke: var(--line-2); stroke-width: 1; }
.iris-ring { fill: none; stroke: color-mix(in srgb, var(--beam) 30%, transparent); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 200px 200px; animation: spin 220s linear infinite reverse; }
.iris-fibers line { stroke: var(--beam); stroke-width: 1; }
.iris-fibers { transform-origin: 200px 200px; animation: spin 160s linear infinite; }
.iris.is-alt .iris-fibers { animation-direction: reverse; }
.iris-limbus { fill: none; stroke: color-mix(in srgb, var(--beam) 55%, transparent); stroke-width: 1.4; }
.iris-pupil { fill: var(--pupil); stroke: var(--beam); stroke-width: 1.2; transform-origin: 200px 200px; transition: transform 2.2s var(--ease) 0.2s; }
.iris-glint { fill: #eafcff; opacity: 0.85; }
.js .iris-wrap .iris-pupil { transform: scale(1.55); }
.js .iris-wrap.is-in .iris-pupil { transform: scale(1); }
.iris-wrap.is-small { position: absolute; bottom: -70px; inset-inline-end: -70px; width: 240px; opacity: 0.3; pointer-events: none; }

/* ---------- rating & quote ---------- */
.rating { background: var(--ink-1); }
.rating-grid { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num { direction: ltr; display: flex; align-items: baseline; font-family: var(--f-display); font-size: clamp(3.8rem, 8vw, 6.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
html[lang="ar"] .stat-num { justify-content: flex-end; }
.stat-unit { margin-left: 6px; font-size: 0.34em; color: var(--mute); }
.stat-label { color: var(--bone-2); font-size: 0.95rem; }
.quote { margin: 0; padding-inline-start: 32px; border-inline-start: 1px solid var(--beam); }
.quote p { margin: 0 0 14px; font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-style: italic; line-height: 1.42; }
html[lang="ar"] .quote p { font-style: normal; line-height: 1.7; }
.quote cite { color: var(--mute); font-size: 0.9rem; font-style: normal; }
.quote cite a { color: var(--beam); }

/* ---------- facts, signs, steps ---------- */
.facts { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: flex-start; gap: 14px; color: var(--bone-2); line-height: 1.6; }
.facts .icon { width: 20px; height: 20px; margin-top: 0.2em; color: var(--beam); }
.facts a { color: var(--bone); text-decoration: none; }
.facts a:hover { color: var(--beam); }

.sign-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.sign-list li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sign-list .icon { width: 22px; height: 22px; margin-top: 0.15em; color: var(--beam); }

.exam-note { display: flex; align-items: center; gap: 14px; margin: 34px 0 0; color: var(--bone-2); }
.exam-note .glyph { width: 34px; height: 34px; flex: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.steps.is-three { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 34px; padding-inline-end: 30px; border-top: 1px solid var(--line-2); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: var(--beam);
  box-shadow: 0 0 10px var(--beam-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
[dir="rtl"] .step::before { transform-origin: right; }
.step.is-in::before,
html:not(.js) .step::before { transform: scaleX(1); }
.step::after { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border: 1px solid var(--beam); border-radius: 50%; background: var(--ink); }
.step-num { display: block; margin-bottom: 18px; font-family: var(--f-latin); font-size: 0.78rem; letter-spacing: 0.22em; color: var(--beam); }
.step h3 { font-family: var(--f-display); font-size: 1.55rem; font-weight: 400; }
html[lang="ar"] .step h3 { font-weight: 500; }
.step p { margin: 0; color: var(--bone-2); font-size: 0.97rem; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--beam); }
.faq-mark { position: relative; width: 20px; height: 20px; flex: none; }
.faq-mark::before,
.faq-mark::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: var(--beam); transition: transform 0.45s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }
.faq-body { padding-bottom: 26px; }
.faq-body p { max-width: 64ch; margin: 0; color: var(--bone-2); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.55s var(--ease), content-visibility 0.55s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* ---------- related ---------- */
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.35s, transform 0.5s var(--ease);
}
.related-link > span { flex: 1; }
.related-link .glyph { width: 34px; height: 34px; flex: none; }
.related-link:hover { border-color: color-mix(in srgb, var(--beam) 50%, transparent); transform: translateY(-3px); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 110px); }
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-start: 30%;
  width: min(90vw, 1100px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--beam) 10%, transparent), transparent 70%);
}
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(36px, 6vw, 90px); }
.page-hero-grid.no-media { grid-template-columns: 1fr; }
.page-hero-grid.no-media .page-hero-copy { max-width: 900px; }
.page-hero-copy,
.page-hero-media { min-width: 0; }

/* ---------- services index ---------- */
.service-rows .section::before { display: none; }
.service-row { padding-block: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line); }
.service-row:first-child { padding-top: 0; border-top: 0; }
.service-row .glyph { width: 48px; height: 48px; margin-bottom: 26px; }
.service-row .iris-wrap { max-width: 420px; }
.service-row .frame { max-height: 580px; }

/* ---------- stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.story::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--beam-soft), transparent 60%); transition: opacity 0.4s; }
.story:hover::before { opacity: 1; }
.story.is-lead { grid-column: 1 / -1; background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--beam) 12%, transparent), transparent 55%), var(--ink-1); }
.story.is-lead .h3 { font-size: clamp(2rem, 4vw, 3rem); }
.story p { max-width: 70ch; margin: 0; color: var(--bone-2); }
.story .text-link { align-self: flex-start; margin-top: auto; }
.story-tag { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--beam); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="ar"] .story-tag { font-size: 0.95rem; letter-spacing: 0; }
.story-tag .glyph { width: 26px; height: 26px; }

/* ---------- media clips ---------- */
.clip-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.clip { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.clip-num { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--beam); }
.clip-date { margin: 0 0 6px; color: var(--mute); font-size: 0.86rem; }
.clip h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; }
html[lang="ar"] .clip h3 { font-weight: 500; }
.clip p { margin: 0; color: var(--bone-2); }

/* ---------- contact ---------- */
.contact-section::before { display: none; }
.contact-section { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: start; gap: 22px; }
.booking-form { display: grid; gap: 20px; }
.booking-form h2 { margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--bone);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--beam); box-shadow: 0 0 0 3px color-mix(in srgb, var(--beam) 20%, transparent); }
.field select option { background: var(--ink-2); color: var(--bone); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 0.88rem; }
.form-help { margin: 0; color: var(--mute); font-size: 0.88rem; }
.booking-form .btn { justify-self: start; }
.contact-card { min-height: 100%; }
.contact-card .actions { position: relative; z-index: 1; margin-top: 30px; }

/* ---------- booking band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(84px, 11vw, 150px);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 90% at 50% 125%, color-mix(in srgb, var(--beam) 20%, transparent), transparent 70%), var(--ink-1);
}
.cta-beam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beam), transparent);
  box-shadow: 0 0 18px var(--beam);
  animation: breathe 6s ease-in-out infinite;
}
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta-copy { max-width: 640px; }
.cta-inner .actions { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { padding-block: 72px 104px; border-top: 1px solid var(--line); color: var(--bone-2); font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 0.8fr; gap: 40px; }
.footer-brand p { max-width: 34ch; margin: 18px 0 0; }
.footer-title { margin: 0 0 18px; color: var(--mute); font-family: var(--f-latin); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
html[lang="ar"] .footer-title { font-family: var(--f-body); font-size: 0.95rem; letter-spacing: 0; }
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-link { color: var(--bone-2); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--beam); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.86rem; }
.footer-bottom p { margin: 0; }
.demo-note { padding: 4px 14px; border: 1px dashed color-mix(in srgb, var(--beam) 40%, transparent); border-radius: 999px; color: var(--bone-2); }

/* ---------- floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  z-index: 40;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--beam);
  color: var(--beam-ink);
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--beam) 60%, transparent);
  transition: transform 0.45s var(--ease);
}
.float-wa .icon { width: 28px; height: 28px; }
.float-wa::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--beam); border-radius: 50%; animation: ping 2.8s var(--ease) infinite; }
.float-wa:hover { transform: translateY(-3px) scale(1.04); }
body.menu-open .float-wa { display: none; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; clip-path: inset(0 0 100% 0); transform: translate3d(0, 0.3em, 0); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-in { clip-path: inset(-25% -6% -30% -6%); transform: none; }
.js [data-focus] img { filter: blur(16px) saturate(0.4) brightness(0.55); transform: scale(1.1); }
.js [data-focus].is-in img { filter: var(--grade); transform: scale(1); }

/* ---------- keyframes ---------- */
@keyframes reveal-ltr { from { clip-path: inset(0 100% 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes reveal-rtl { from { clip-path: inset(0 0 0 100%); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes beam-ltr { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes beam-rtl { 0% { right: 0; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { right: 100%; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .hero-grid,
  .page-hero-grid,
  .split,
  .split.is-text,
  .contact-grid { grid-template-columns: 1fr; }
  .split.is-reverse > .split-media { order: 0; }
  .hero-figure { aspect-ratio: 4 / 3.6; }
  .creds-list { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .creds-list li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .rating-grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-column: 1 / -1; }
  .steps,
  .steps.is-three { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .related-list { grid-template-columns: 1fr; }
  .page-hero-media .frame,
  .service-row .frame { max-height: 460px; aspect-ratio: 4 / 3.4; }
  .story-feature .split-media { order: 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .service-grid,
  .qual-grid,
  .story-grid,
  .sign-list { grid-template-columns: 1fr; }
  .creds-list { grid-template-columns: 1fr; }
  .creds-list li { padding-inline-start: 0; border-inline-start: 0; }
  .steps,
  .steps.is-three { grid-template-columns: 1fr; }
  .clip { grid-template-columns: 1fr; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .booking-form .btn { justify-self: stretch; justify-content: center; }
  .rating-grid { gap: 28px; }
  .header-actions .lang-switch,
  .header-actions .theme-toggle { display: none; }
  .header-book { --pad: 10px; }
  .header-book span { display: none; }
  .brand-name { font-size: 1.5rem; }
  .iris-wrap.is-small { width: 180px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js [data-reveal],
  .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-focus] img { filter: var(--grade); transform: none; }
  .js .snellen .sn-row { opacity: 0.9; transform: none; }
  .js .snellen .sn-r7 { opacity: 0.4; }
  .sn-row.is-target::before,
  .step::before { transform: scaleX(1); opacity: 1; }
  .js .iris-wrap .iris-pupil { transform: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
