/* ==========================================================================
   Alyaqout Est - main stylesheet
   Colors and fonts are tokens in :root. Layout uses CSS logical properties
   (inline-start/end) so English (LTR) and Arabic (RTL) share one stylesheet.
   ========================================================================== */
:root {
  --navy: #0a1f44;
  --navy-2: #12306a;
  --royal: #1b4fd8;
  --royal-d: #1540b0;
  --sky: #e8f0fe;
  --mist: #f4f7fc;
  --line: #d8e1f0;
  --slate: #43546f;
  --white: #fff;
  --ok: #0f7a4d;
  --warn-bg: #fff6e0;
  --warn-line: #e3b341;
  --header-h: 72px;
  --radius: 14px;
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
  --reveal-distance: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-latin); font-size: 1.0625rem; line-height: 1.65; color: var(--navy); background: var(--white); text-rendering: optimizeLegibility; }
html[lang^='ar'] body { font-family: var(--font-ar); line-height: 1.95; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; }
html[lang^='ar'] h1, html[lang^='ar'] h2, html[lang^='ar'] h3 { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--royal); text-underline-offset: .2em; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- accessibility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .band :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---- buttons ---- */
.btn { white-space: normal; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: var(--royal-d); box-shadow: 0 8px 22px -10px rgba(27, 79, 216, .7); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--link { padding: 0; min-height: 44px; border-radius: 0; color: var(--royal); border-bottom: 1.5px solid currentColor; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn:hover .icon-flip { transform: translateX(3px); }
[dir='rtl'] .icon-flip { transform: scaleX(-1); }
[dir='rtl'] .btn:hover .icon-flip { transform: scaleX(-1) translateX(3px); }
.icon-flip { transition: transform .2s var(--ease); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--stack { margin-top: 20px; }

/* ---- loader (once per session; skipped for reduced motion) ---- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility 0s linear .35s; }
html.js:not(.loader-seen) body[data-loader='1'] .loader { opacity: 1; visibility: visible; }
html.loader-done .loader { opacity: 0 !important; visibility: hidden !important; }
.loader__mark { width: 72px; height: 72px; border-radius: 18px; animation: pop .6s var(--ease) both; }
.loader__ring { position: absolute; width: 72px; height: 72px; border-radius: 22px; border: 2px solid var(--royal); animation: ring 1s ease-out .15s both; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 31, 68, .5); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 700; flex: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 11px; }
.brand__name { display: flex; flex-direction: column; font-size: 1.15rem; line-height: 1.15; }
.brand__name small { font-size: .7rem; font-weight: 500; color: var(--slate); letter-spacing: .02em; }
.brand--light { color: #fff; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 10px 11px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .96rem; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--sky); }
.nav a[aria-current='page'] { color: var(--royal); font-weight: 700; box-shadow: inset 0 -2px 0 var(--royal); border-radius: 8px 8px 0 0; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; white-space: nowrap; align-items: center; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; background: #fff; transition: border-color .2s, background-color .2s; }
.lang-toggle:hover { border-color: var(--royal); background: var(--sky); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn__open { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn__close { display: block; }
.header-cta { display: none; white-space: nowrap; }
@media (min-width: 1360px) { .header-cta { display: inline-flex; } }
@media (max-width: 1099px) {
  .menu-btn { display: inline-grid; }
  html.js .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 12px 20px 40px; background: #fff; overflow-y: auto; border-top: 1px solid var(--line); }
  html.js .nav.is-open { display: block; }
  html.js .nav ul { flex-direction: column; gap: 0; }
  html.js .nav a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  html.js .nav a[aria-current='page'] { box-shadow: none; }
  html.no-js .nav { width: 100%; order: 5; margin: 0; }
  html.no-js .nav ul { flex-wrap: wrap; }
  html.no-js .site-header__bar { flex-wrap: wrap; padding-block: 8px; }
  html.menu-open { overflow: hidden; }
  .site-header__actions { margin-inline-start: auto; }
}

/* ---- media / images ---- */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.r-4x5 { aspect-ratio: 4 / 5; } .r-4x3 { aspect-ratio: 4 / 3; } .r-16x9 { aspect-ratio: 16 / 9; } .r-1x1 { aspect-ratio: 1; }
.media__tag { position: absolute; inset-inline-start: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 999px; background: rgba(10, 31, 68, .82); color: #fff; font-size: .75rem; line-height: 1.3; font-weight: 500; }
.media--blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), #fff); border: 1px solid var(--line); color: var(--royal); }
.media__icon { width: 72px; height: 72px; stroke-width: 1.2; }

/* ---- hero ---- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 100px); background: radial-gradient(900px 500px at 85% 0%, var(--sky), transparent 70%), #fff; }
[dir='rtl'] .hero { background: radial-gradient(900px 500px at 15% 0%, var(--sky), transparent 70%), #fff; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.025em; margin-bottom: .45em; }
html[lang^='ar'] .hero__title { font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: 0; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--slate); max-width: 62ch; }
.hero__cta { margin-block: 28px 14px; }
.hero__note { font-size: .95rem; color: var(--slate); border-inline-start: 3px solid var(--royal); padding-inline-start: 12px; }
.hero__art { position: relative; width: min(100%, 460px); aspect-ratio: 500 / 620; margin-inline: auto; }
.arch { position: absolute; inset-inline: 4%; top: 3.23%; bottom: 3.23%; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sky); box-shadow: 0 30px 60px -36px rgba(10, 31, 68, .55); }
.arch .media { height: 100%; border-radius: 0; aspect-ratio: auto; }
.arch .media__tag { inset-inline-start: 50%; transform: translateX(-50%); }
[dir='rtl'] .arch .media__tag { transform: translateX(50%); }
.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bp { fill: none; stroke: var(--royal); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .75; }
.bp--arch { stroke-width: 2; opacity: 1; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } .hero__art { margin-inline: 0; margin-inline-start: auto; } }

/* ---- sections ---- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--flush { padding-top: clamp(8px, 2vw, 24px); }
.section--tint { background: var(--mist); }
.section-head { margin-bottom: clamp(24px, 4vw, 44px); max-width: 720px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .4em; }
.section-lead { font-size: 1.1rem; color: var(--slate); margin: 0; }
.section-more { margin-block: 28px 0; }
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 36px); background: linear-gradient(180deg, var(--mist), #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-head .lead { margin: 0; }
.fineprint { font-size: .9rem; color: var(--slate); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--process { grid-template-columns: .9fr 1.1fr; } }

/* ---- cards and grids ---- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid--services, .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--services { grid-template-columns: repeat(3, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.card h3, .card h2 { font-size: 1.15rem; margin-bottom: .45em; }
.card h2 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.card:hover { border-color: #b7c8e8; box-shadow: 0 18px 36px -26px rgba(10, 31, 68, .5); }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: var(--sky); color: var(--royal); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--royal); outline-offset: 3px; }
.card--plain { background: #fff; }
.card__num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 700; }

/* ---- lists ---- */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { flex: none; width: 22px; height: 22px; margin-top: .22em; padding: 3px; border-radius: 50%; background: var(--royal); color: #fff; stroke-width: 2.4; }
html[lang^='ar'] .checklist .icon { margin-top: .4em; }
.aside-title { font-size: 1.1rem; }
.split__aside { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.note { padding: 16px 18px; background: var(--sky); border-inline-start: 4px solid var(--royal); border-radius: 4px var(--radius) var(--radius) 4px; }
[dir='rtl'] .note { border-radius: var(--radius) 4px 4px var(--radius); }
.note strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.note p { margin: 0; font-size: .98rem; }
.note--wide { margin-top: 36px; max-width: none; }
.note--panel { padding: 28px; }
.note--panel h3 { font-size: 1.15rem; }

/* ---- process steps ---- */
.steps { display: grid; gap: 22px; counter-reset: s; position: relative; }
.step { display: flex; gap: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--slate); font-size: .98rem; }
.step__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--royal); color: #fff; font-weight: 700; }
.step__n--lg { width: 56px; height: 56px; font-size: 1.3rem; }
.journey { display: grid; gap: 0; }
.journey__item { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding-block: 32px; border-top: 1px solid var(--line); }
.journey__item:first-child { border-top: 0; }
.journey__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.journey__body h3 { font-size: .98rem; margin-top: 18px; color: var(--royal); }
@media (min-width: 800px) { .journey__item { grid-template-columns: 72px 1fr; gap: 32px; } .journey__body { max-width: 760px; } }

/* ---- services page ---- */
.services-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.service { display: grid; gap: 24px; padding-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.service h3 { font-size: .98rem; color: var(--royal); margin-top: 20px; }
.service .note { margin-top: 22px; }
@media (min-width: 900px) { .service { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } .service--flip .service__media { order: 2; } .service__media { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---- sample documents ---- */
.doc { background: #fff; border: 1.5px dashed #9db3dc; border-radius: var(--radius); padding: 22px; }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc__head h3 { margin: 0; font-size: 1.1rem; }
.stamp { padding: 3px 10px; border: 1.5px solid #b45309; color: #92400e; border-radius: 6px; font-size: .78rem; font-weight: 700; background: #fffbeb; white-space: nowrap; }
.doc__project { margin: 6px 0 14px; color: var(--slate); font-size: .92rem; }
.doc__rows { margin: 0; display: grid; }
.doc__rows > div { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--line); }
.doc__rows dt { font-size: .82rem; color: var(--slate); font-weight: 600; }
.doc__rows dd { margin: 0; font-size: .98rem; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill--open { background: #fff1f0; color: #9f1d12; }
.pill--closed { background: #e8f7ef; color: var(--ok); }

/* ---- CTA band ---- */
.band { background: var(--navy); color: #fff; background-image: linear-gradient(135deg, rgba(27, 79, 216, .35), transparent 55%); }
.band__inner { display: grid; gap: 24px; padding-block: clamp(44px, 6vw, 72px); align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3em; }
.band p { margin: 0; color: #cbd8f1; }
@media (min-width: 900px) { .band__inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* ---- service area map ---- */
.area-map { margin: 0; }
.area-map__svg { width: 100%; height: auto; border-radius: 20px; }
.area-map figcaption { margin-top: 8px; font-size: .85rem; color: var(--slate); }
.map-land { fill: #f1f5fc; stroke: var(--line); }
.map-sea { fill: #d6e4fc; }
.map-coast { fill: none; stroke: var(--royal); stroke-width: 2; }
.map-rings circle { fill: rgba(27, 79, 216, .06); stroke: var(--royal); stroke-width: 1.2; stroke-dasharray: 4 5; }
.map-pin { fill: var(--royal); stroke: #fff; stroke-width: 3; }
.map-city { font: 700 20px var(--font-latin); fill: var(--navy); }
.map-sea-label { font: 600 14px var(--font-latin); fill: var(--navy-2); }
html[lang^='ar'] .map-city, html[lang^='ar'] .map-sea-label { font-family: var(--font-ar); }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.form-card { padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -44px rgba(10, 31, 68, .5); }
.form-card h2, .direct h2 { font-size: 1.4rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96rem; }
.opt { font-weight: 400; color: var(--slate); }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--navy); background: #fff; border: 1.5px solid #b5c3de; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--royal); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(27, 79, 216, .25); }
[aria-invalid='true'] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.field__hint { margin: 4px 0 0; font-size: .85rem; color: var(--slate); }
.field__error { margin: 6px 0 0; font-size: .9rem; color: #b42318; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #fef3f2; border: 1px solid #f4b4ae; color: #7a1a12; font-weight: 600; }
.alert[hidden], .field__error[hidden], form[hidden] { display: none; }
.alert--ok { background: #ecfdf3; border-color: #9bd8b8; color: #0b5a38; }
.alert--ok h3, .alert--warn h3 { margin-bottom: .3em; }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6b4700; }
.alert--ok:focus, .alert--warn:focus { outline: 3px solid var(--royal); }
.alert p { font-weight: 400; }
.direct { padding: clamp(22px, 4vw, 36px); background: var(--mist); border-radius: 20px; }
.contact-list { display: grid; gap: 18px; margin-block: 18px 6px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--royal); }
.contact-list .k { display: block; font-size: .85rem; color: var(--slate); }
.contact-list a { font-weight: 600; word-break: break-word; }
.setup-note { margin-top: 18px; padding: 10px 12px; background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: 8px; font-size: .88rem; color: #6b4700; }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #cbd8f1; padding-top: clamp(40px, 6vw, 72px); font-size: .98rem; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer__title { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.footer__title--sub { margin-top: 22px; }
.footer__list { display: grid; gap: 8px; }
.footer__note { color: #9fb4dc; font-size: .92rem; }
.footer__legal { padding-block: 20px calc(20px + 64px); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #9fb4dc; }
.footer__legal p { margin: 0; max-width: none; }
@media (min-width: 900px) { .footer__legal { padding-bottom: 20px; } }

/* ---- WhatsApp floating button (inline-end corner; hidden on the contact page) ---- */
.wa-float { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--royal); color: #fff; box-shadow: 0 10px 26px -8px rgba(10, 31, 68, .6); transition: transform .2s var(--ease), background-color .2s; }
.wa-float:hover { transform: translateY(-2px); background: var(--royal-d); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:focus-visible { outline-color: var(--navy); outline-offset: 3px; }

/* ---- 404 / root ---- */
.notfound .container { max-width: 720px; }
.notfound + .notfound { border-top: 1px solid var(--line); }
.root-choice { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; text-align: center; padding: 24px; }
.root-choice img { border-radius: 16px; }

/* ---- motion: only when the visitor has not asked to reduce it ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-reveal='1'] .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  html.js body[data-reveal='1'] .reveal.is-in { opacity: 1; transform: none; }
  /* one orchestrated moment: hero copy rises, then the blueprint lines draw */
  html.js:not(.loader-done) .hero__copy > *, html.js:not(.loader-done) .arch { opacity: 0; }
  html.loader-done .hero__copy > * { animation: rise .7s var(--ease) both; }
  html.loader-done .hero__copy > :nth-child(2) { animation-delay: .08s; }
  html.loader-done .hero__copy > :nth-child(3) { animation-delay: .16s; }
  html.loader-done .hero__copy > :nth-child(4) { animation-delay: .24s; }
  html.loader-done .arch { animation: arch-in .9s var(--ease) .1s both; }
  html.js .bp { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.loader-done .bp { animation: draw 1.5s var(--ease) .35s forwards; }
  html.loader-done .bp--h, html.loader-done .bp--v { animation-delay: .75s; }
  .media img { transition: transform .8s var(--ease); }
  .card:hover .media img, .service__media:hover img, .media:hover img { transform: scale(1.03); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes arch-in { from { opacity: 0; clip-path: inset(12% 0 0 0); } to { opacity: 1; clip-path: inset(0); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .site-header, .wa-float, .loader { display: none; } }
