/* The Data Mill — "Polder Dawn": a painted morning sky, frosted light glass, ink type */
:root {
  --ink: #14173A;
  --ink-2: #3A3E60;
  --paper: #FFFFFF;
  --accent: #B93E22;          /* warm sunrise red, for emphasis on light surfaces */
  --gold: #FFD592;            /* emphasis on the dark booking panel */
  --hair: rgba(20, 23, 58, .14);
  --glass: linear-gradient(140deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  --glass-solid: rgba(255, 255, 255, .92);
  --glass-edge: rgba(255, 255, 255, .85);
  --blur: 22px;
  --shadow: 0 30px 60px -28px rgba(46, 50, 110, .38), 0 3px 10px rgba(46, 50, 110, .07);
  --r-xl: 36px;
  --r-l: 28px;
  --r-m: 22px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ar"] {
  --serif: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* shown only until the painted scene has drawn */
  background: #F3DDD6 linear-gradient(180deg, #A9C2EC 0%, #E6D2E6 46%, #FFE3B8 72%, #C6D6BC 100%) fixed;
}
::selection { background: var(--ink); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .95); }
.serif { font-family: var(--serif); font-weight: 400; }
html[lang="ar"] .serif { font-weight: 600; letter-spacing: 0; }
.accent { color: var(--accent); font-style: italic; }
html[lang="ar"] .accent { font-style: normal; }
.skip { position: absolute; top: 8px; inset-inline-start: 16px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--ink); color: #fff; padding: 0; border-radius: 999px; z-index: 50; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 12px 18px; }

/* ------------------------------------------------------------ the scene */
.scene { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; }
.scene-in { position: absolute; top: 50%; left: 50%; width: max(100vw, 160vh); height: max(100vh, 62.5vw); width: max(100vw, 160lvh); height: max(100lvh, 62.5vw); transform: translate(-50%, -50%); }
html[dir="rtl"] .scene-in { transform: translate(-50%, -50%) scaleX(-1); }
.scene svg { position: absolute; display: block; overflow: visible; }
.scene .art { inset: 0; width: 100%; height: 100%; }
.scene .drift { top: 0; left: -4%; width: 108%; height: 100%; opacity: .8; will-change: transform; animation: drift 80s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2.2%, 0, 0); } to { transform: translate3d(2.2%, -.6%, 0); } }
.mill { position: absolute; left: 73.75%; top: 69.5%; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); color: #8785B6; opacity: .9; }
.mill svg { inset: 0; width: 100%; height: 100%; fill: currentColor; }
.mill-sails { will-change: transform; animation: turn 150s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
/* portrait screens: slide the painting so the sun and the mill stay in view */
@media (max-aspect-ratio: 1/1) {
  .scene-in { top: 0; left: calc(76vw - 118vh); left: calc(76vw - 118lvh); transform: none; }
  html[dir="rtl"] .scene-in { left: calc(24vw - 42vh); left: calc(24vw - 42lvh); transform: scaleX(-1); }
}
.page { position: relative; z-index: 1; }

/* ------------------------------------------------------------ glass */
.g {
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(175%); backdrop-filter: blur(var(--blur)) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .g { background: var(--glass-solid); }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .3s var(--ease), background-color .2s, box-shadow .3s var(--ease); }
.btn svg { flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: none; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -12px rgba(20, 23, 58, .7); }
.btn-ink:hover { background: #23286A; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #FFF3DC; }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-ghost:hover { background: #fff; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ------------------------------------------------------------ header */
.header { position: sticky; top: 0; z-index: 10; padding: 14px 16px 0; }
.nav { max-width: 960px; margin: 0 auto; padding-block: 7px; padding-inline: 20px 7px; border-radius: 999px; display: flex; align-items: center; gap: 6px 20px; --blur: 18px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; margin-inline-end: auto; min-height: 44px; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; transition: background-color .2s; }
.nav-links a:hover { background: rgba(20, 23, 58, .08); }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; min-width: 40px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.lang a:hover { background: rgba(20, 23, 58, .08); }
.lang a[aria-current="page"] { background: rgba(20, 23, 58, .1); box-shadow: inset 0 0 0 1px var(--hair); }
.nav .btn { min-height: 46px; padding: 10px 20px; font-size: 15px; box-shadow: none; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary:hover, .mnav[open] summary { background: rgba(20, 23, 58, .09); }
.mnav-panel { position: absolute; inset-inline-end: -4px; top: 58px; width: min(270px, calc(100vw - 32px)); padding: 10px; border-radius: 24px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .97); border: 1px solid #fff; box-shadow: var(--shadow), 0 0 0 1px var(--hair); }
.mnav-panel a { text-decoration: none; padding: 0 16px; min-height: 48px; display: flex; align-items: center; border-radius: 14px; font-size: 17px; font-weight: 500; }
.mnav-panel a:hover { background: rgba(20, 23, 58, .07); }
.mlang { display: none; gap: 6px; padding: 10px 6px 2px; border-top: 1px solid var(--hair); margin-top: 8px; }
.mlang a { flex: 1; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 0 10px; }
.mlang a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ layout + type */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 28px; }
.sec { padding-block: 76px; }
.panel { border-radius: var(--r-xl); padding: 56px; }
.h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.h2-xl { font-size: clamp(40px, 6vw, 84px); line-height: .98; }
html[lang="ar"] .h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.32; letter-spacing: 0; }
html[lang="ar"] .h2-xl { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
.head-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 20px 56px; margin-bottom: 40px; }
.head-row .lead { justify-self: end; }

/* open sections: type sits straight on the sky, with a breath of mist behind it */
.open { position: relative; }
.open::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5) 16%, rgba(255, 255, 255, .5) 84%, rgba(255, 255, 255, 0)); }
.open .lead, .open .timeline p { color: var(--ink); }

/* ------------------------------------------------------------ hero */
.hero { min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); display: flex; align-items: center; padding-block: 48px 72px; }
.hero-in { width: 100%; }
.hero h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .95; letter-spacing: -.025em; max-width: 9.6em; text-wrap: balance; margin-bottom: clamp(24px, 3.4vw, 44px); text-shadow: 0 1px 30px rgba(255, 255, 255, .55); }
html[lang="ar"] .hero h1 { font-size: clamp(34px, 5vw, 72px); line-height: 1.28; letter-spacing: 0; max-width: 12em; }
.hero-card { max-width: 590px; border-radius: var(--r-l); padding: 30px 32px 32px; }
.hero-card p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 24px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-note { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ticks { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--accent); }

/* ------------------------------------------------------------ trust */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.trust > div { border-radius: var(--r-m); padding: 22px 26px; }
.trust h2 { font: 600 14px/1.4 var(--sans); margin-bottom: 14px; }
.cert-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cert-list li { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.cert-list strong { font-size: 17px; }
.cert-list span { font-size: 13px; color: var(--ink-2); }
.logos { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; min-height: 56px; font-weight: 600; }

/* ------------------------------------------------------------ problem timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
.timeline li { position: relative; padding-block: 34px 0; padding-inline: 0 40px; border-top: 1.5px solid rgba(20, 23, 58, .32); }
.timeline li::before { content: ""; position: absolute; top: -8px; inset-inline-start: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.timeline li:last-child { border-top-color: var(--accent); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(185, 62, 34, .18); }
.timeline .when { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .timeline .when { letter-spacing: 0; font-size: 15px; }
.timeline li:last-child .when { color: var(--accent); }
.timeline h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; margin-bottom: 10px; }
html[lang="ar"] .timeline h3 { font-size: 26px; line-height: 1.4; }
.timeline p:last-child { font-size: 17px; line-height: 1.55; max-width: 22em; }

/* ------------------------------------------------------------ revenue tabs */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 26px; background: rgba(20, 23, 58, .07); box-shadow: inset 0 0 0 1px rgba(20, 23, 58, .06); margin-bottom: 20px; }
.tab { font: inherit; text-align: start; cursor: pointer; min-height: 64px; padding: 10px 24px; border-radius: 20px; border: 0; background: transparent; color: var(--ink); transition: background-color .25s, color .25s, box-shadow .25s; }
.tab:hover { background: rgba(255, 255, 255, .6); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -12px rgba(20, 23, 58, .7); }
.tab b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.tab small { display: block; font-size: 13px; opacity: .78; }
.tabpanel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.tabpanel[hidden] { display: none; }
.tabpanel li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.tabpanel li.tabpanel-title { grid-column: 1 / -1; display: block; border: 0; font-family: var(--serif); font-size: 28px; padding: 28px 0 0; color: var(--accent); }
.js .tabpanel li.tabpanel-title { display: none; }
.tickc { flex-shrink: 0; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(185, 62, 34, .3); }
.tabpanel h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.tabpanel p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.rev-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.rev-foot p { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.rev-foot p svg { flex-shrink: 0; color: var(--accent); }

/* ------------------------------------------------------------ offers: three rising steps */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.offer { border-radius: var(--r-l); padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.offer:nth-child(1) { min-height: 350px; }
.offer:nth-child(2) { min-height: 425px; }
.offer:nth-child(3) { min-height: 500px; }
.offer .meta { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(20, 23, 58, .08); margin-bottom: auto; }
.offer h3 { font-size: clamp(34px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.01em; margin-top: 28px; }
html[lang="ar"] .offer h3 { font-size: 28px; line-height: 1.35; }
.offer .desc { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; }
.offer.feat { color: #fff; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(120% 80% at 100% 0%, rgba(255, 178, 122, .5), rgba(255, 178, 122, 0) 55%), linear-gradient(165deg, #252A6E, #12143A); box-shadow: 0 40px 70px -30px rgba(20, 23, 58, .75); }
html[dir="rtl"] .offer.feat { background: radial-gradient(120% 80% at 0% 0%, rgba(255, 178, 122, .5), rgba(255, 178, 122, 0) 55%), linear-gradient(195deg, #252A6E, #12143A); }
.offer.feat .meta { background: rgba(255, 255, 255, .16); color: #fff; }
.offer.feat .desc { color: #E3E5F6; }
.offer.feat :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(20, 23, 58, .9); }

/* ------------------------------------------------------------ choose */
.choose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: start; }
.choose-head { position: sticky; top: 120px; }
.choose-head .lead { margin-top: 18px; }
.choose-list { counter-reset: way; display: grid; gap: 14px; }
.choose-list li { counter-increment: way; border-radius: var(--r-m); padding: 24px 28px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; gap: 0 8px; }
.choose-list li::before { content: counter(way, decimal-leading-zero); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); font-style: italic; }
html[lang="ar"] .choose-list li::before { font-family: 'Instrument Serif', Georgia, serif; }
.choose-list h3 { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
html[lang="ar"] .choose-list h3 { font-size: 23px; line-height: 1.4; }
.choose-list p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ------------------------------------------------------------ about */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: stretch; }
.photo { border-radius: var(--r-xl); min-height: 420px; display: flex; align-items: center; justify-content: center; }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 64px; align-items: center; }
.split .about { grid-template-columns: 1fr; }
.about .h2 { font-size: clamp(34px, 4.2vw, 58px); }
html[lang="ar"] .about .h2 { font-size: clamp(28px, 3.2vw, 44px); }
.about-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lead.strong { color: var(--ink); font-weight: 600; }
.prev { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; width: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--hair); }
.prev span { font-size: 14px; color: var(--ink-2); }
.prev strong { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.about-body .btn { margin-top: 10px; }

/* ------------------------------------------------------------ booking: night before the dawn */
.night { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; color: #fff; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 56px; align-items: center;
  background: radial-gradient(70% 60% at 0% 100%, rgba(255, 168, 112, .5), rgba(255, 168, 112, 0) 62%), radial-gradient(60% 50% at 100% 0%, rgba(126, 140, 255, .34), rgba(126, 140, 255, 0) 60%), linear-gradient(160deg, #222766, #0F1130 70%);
  box-shadow: 0 50px 90px -40px rgba(20, 23, 58, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
html[dir="rtl"] .night { background: radial-gradient(70% 60% at 100% 100%, rgba(255, 168, 112, .5), rgba(255, 168, 112, 0) 62%), radial-gradient(60% 50% at 0% 0%, rgba(126, 140, 255, .34), rgba(126, 140, 255, 0) 60%), linear-gradient(200deg, #222766, #0F1130 70%); }
.night-text { align-self: start; position: sticky; top: 120px; padding-block: 8px; }
.night .accent { color: var(--gold); }
.night .lead { color: #E6E8F8; font-size: 19px; margin-top: 22px; max-width: 24em; }
.night :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(20, 23, 58, .9); }
.cal { border-radius: var(--r-l); background: #fff; color: var(--ink); padding: 8px; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.cal iframe { width: 100%; min-height: 700px; border: 0; border-radius: 20px; background: #fff; }
.cal-fallback { font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }

/* ------------------------------------------------------------ footer */
.footer { padding-block: 40px 28px; }
.foot { border-radius: 999px; padding: 6px 28px; display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; justify-content: space-between; font-size: 14px; min-height: 56px; --blur: 16px; }
.foot-links a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ------------------------------------------------------------ privacy / plain documents */
.doc-wrap { padding-top: 56px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc .doc-intro { font-size: 19px; color: var(--ink); margin-top: 18px; }
.doc h2 { font-size: 30px; line-height: 1.15; margin: 36px 0 8px; }
html[lang="ar"] .doc h2 { font-size: 24px; line-height: 1.4; }
.doc .doc-ident { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink); font-weight: 500; }
.doc .doc-note { margin-top: 12px; font-size: 14px; }

/* ------------------------------------------------------------ tablet + phone */
@media (max-width: 1000px) {
  .head-row { grid-template-columns: 1fr; }
  .head-row .lead { justify-self: start; }
  .choose, .about, .night { grid-template-columns: 1fr; }
  .choose-head, .night-text { position: static; }
  .split { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .offer { min-height: 0 !important; }
  .offer h3 { margin-top: 18px; }
}
@media (max-width: 860px) {
  :root { --blur: 10px; --r-xl: 28px; --r-l: 24px; --shadow: 0 20px 40px -24px rgba(46, 50, 110, .4), 0 2px 8px rgba(46, 50, 110, .06); }
  .nav { --blur: 10px; }
  .nav-links { display: none; }
  .mnav { display: block; }
  .scene .drift { animation: none; }
  .wrap { padding-inline: 18px; }
  .sec { padding-block: 44px; }
  .panel, .night { padding: 26px 22px; }
  .night { padding-bottom: 14px; }
  .night .cal { margin-inline: -8px; }
  .hero { min-height: 0; padding-block: 44px 56px; align-items: flex-start; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 76px); line-height: .98; }
  html[lang="ar"] .hero h1 { font-size: clamp(32px, 8.6vw, 54px); }
  .hero-card { padding: 22px 22px 24px; }
  .hero-card p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-note { width: 100%; text-align: center; }
  .h2 { font-size: clamp(34px, 9.4vw, 48px); }
  .h2-xl { font-size: clamp(38px, 10.6vw, 60px); }
  html[lang="ar"] .h2, html[lang="ar"] .about .h2 { font-size: clamp(27px, 7.4vw, 38px); }
  html[lang="ar"] .h2-xl { font-size: clamp(29px, 8vw, 42px); }
  .lead, .night .lead { font-size: 17px; }
  .head-row { margin-bottom: 28px; }
  .open::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .68) 10%, rgba(255, 255, 255, .68) 90%, rgba(255, 255, 255, 0)); }
  .timeline { grid-template-columns: 1fr; margin-top: 40px; margin-inline-start: 7px; }
  .timeline li { border-top: 0; border-inline-start: 1.5px solid rgba(20, 23, 58, .32); padding-block: 0 34px; padding-inline: 28px 0; }
  .timeline li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
  .timeline li::before { top: 2px; inset-inline-start: -8.5px; }
  .tabs { border-radius: 22px; }
  .tab { padding: 10px 8px; text-align: center; border-radius: 16px; }
  .tab b { font-size: 14px; }
  .tab small { font-size: 12px; }
  .tabpanel { grid-template-columns: 1fr; }
  .tabpanel li { padding: 18px 0; gap: 14px; }
  .rev-foot .btn, .about-body .btn, .offer .btn { width: 100%; }
  .choose-list li { padding: 20px 20px; grid-template-columns: 48px minmax(0, 1fr); }
  .choose-list h3 { font-size: 27px; }
  .cal iframe { min-height: 760px; }
  .footer { padding-block: 24px 24px; }
  .foot { border-radius: 24px; padding: 10px 22px; }
}
@media (max-width: 520px) {
  .nav { gap: 4px 8px; padding-inline: 16px 6px; }
  .nav > .lang { display: none; }
  .mlang { display: flex; }
  .book-label { display: none; }
  .brand { font-size: 15px; gap: 7px; }
  .nav .btn { padding: 10px 16px; }
  .cert-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .tab, .nav-links a { transition: none; }
  .btn:hover { transform: none; }
  .scene .drift, .mill-sails { animation: none; }
}
@media print {
  .scene, .header { display: none; }
}

/* ---------- Motion: friendly, Apple-style ---------- */
:root { --spring: cubic-bezier(.16, 1, .3, 1); }

/* 1. Page-load: nav drops in, headline comes into focus (blur → sharp = clarity) */
@keyframes navIn { from { transform: translateY(-18px); opacity: 0; } }
@keyframes focusIn { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } }
.header .nav { animation: navIn .9s var(--spring) both; }
.hero h1 { animation: focusIn 1.2s var(--spring) .1s both; }
.hero-card { animation: focusIn 1.2s var(--spring) .3s both; }

/* 2. Scroll reveal (only added by JS to things below the fold, so the page is complete without JS) */
.rv { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px);
      transition: opacity .9s var(--spring), transform 1.1s var(--spring), filter .9s var(--spring);
      transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* 3. Nav tightens when you scroll */
.header .nav { transition: box-shadow .4s var(--spring), transform .4s var(--spring), background-color .4s; }
.scrolled .header .nav { box-shadow: 0 10px 30px rgba(30, 34, 80, .14); transform: scale(.985); }

/* 4. Cards lift on hover, buttons get a soft spring */
.offer { transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
@media (hover: hover) {
  .offer:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(30, 34, 80, .18); }
  .btn:hover svg { transform: translateX(3px); }
  html[dir="rtl"] .btn:hover svg { transform: translateX(-3px) scaleX(-1); }
}
.btn:active { transform: scale(.97); }

/* 5. Tab switch: items rise in one after another */
@keyframes itemIn { from { opacity: 0; transform: translateY(12px); } }
.tabpanel.switched > li:not(.tabpanel-title) { animation: itemIn .6s var(--spring) both; }
.tabpanel.switched > li:nth-child(3) { animation-delay: .05s; } .tabpanel.switched > li:nth-child(4) { animation-delay: .1s; }
.tabpanel.switched > li:nth-child(5) { animation-delay: .15s; } .tabpanel.switched > li:nth-child(6) { animation-delay: .2s; }
.tabpanel.switched > li:nth-child(7) { animation-delay: .25s; }


/* Founder photo */
.photo img { display: block; }

@media (prefers-reduced-motion: reduce) {
  .header .nav, .hero h1, .hero-card, .tabpanel.switched > li { animation: none !important; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .offer, .scrolled .header .nav { transition: none; transform: none; }
}
