/* مكتب سرعة الإنجاز. Direction: ROSHN (night green, one glowing emblem, pill nav, light Arabic type),
   Red Sea Global (quiet luxury, thin outline buttons, space), Diriyah (sand + mud, Najdi motifs),
   AlUla (large photographs). RTL first. */
:root {
  --night: #021410;
  --night-2: #041d16;
  --emerald: #0a3a2a;
  --mint: #35d39b;
  --gold: #cfae6b;
  --gold-soft: #e4cf9c;
  --sand: #efe8e0;
  --sand-2: #e2d8cc;
  --ivory: #f7f3ee;
  --mud: #7b5236;
  --ink: #2a1b12;
  --ink-2: #4a3a2e;
  --muted: #6a5a4e;
  --line: rgba(42, 27, 18, .14);
  --line-dark: rgba(var(--on-deep-rgb), .12);
  --line-gold: rgba(207, 174, 107, .38);
  --display: "Beiruti", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Najdi triangles (Diriyah): a row of up/down triangles */
  --najdi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M3 12 9 2l6 10zM21 2h12l-6 10z' fill='%23cfae6b'/%3E%3C/svg%3E");
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.9 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; margin: 0 0 .55em; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); font-weight: 800; line-height: 1.25; }
h2 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.8rem); font-weight: 800; line-height: 1.3; }
h3 { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: rgba(207, 174, 107, .45); color: #2a1b12; }
::placeholder { color: #6a5a4e; opacity: 1; }
input, textarea, select { caret-color: #3a2818; accent-color: #3a2818; }
html { scrollbar-color: rgba(42, 27, 18, .35) transparent; }
:focus-visible { outline: 2px solid #b8913f; outline-offset: 3px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(900px, 100% - 2 * var(--gutter)); }
.center { text-align: center; margin-top: 40px; }
.center-text { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; top: 12px; right: 12px; z-index: 200; background: var(--ivory); color: var(--night); padding: 10px 16px; border-radius: 999px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.star { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; }
.najdi { height: 14px; width: 144px; margin: 0 auto 28px; background: var(--najdi) repeat-x center / 36px 14px; opacity: .9; }

/* ---------- buttons: one solid ivory pill, thin outlines ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-weight: 500; font-size: 1rem; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--solid-bg); color: var(--solid-ink); }
.btn-gold:hover { background: var(--solid-hover); }
.btn-ghost { border-color: rgba(var(--on-deep-rgb), .45); color: var(--on-deep); }
.btn-ghost:hover { border-color: var(--on-deep); background: rgba(var(--on-deep-rgb), .06); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost-dark { border-color: rgba(var(--on-deep-rgb), .35); color: var(--on-deep); }
.sand .btn-gold, .ivory .btn-gold, .article .btn-gold, .faq .btn-gold { background: var(--deep-bg); color: var(--ivory); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; color: var(--emerald); font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .35s var(--ease); }
.link-arrow::after { content: "←"; transition: transform .25s var(--ease); }
.link-arrow:hover, a:hover > .link-arrow, .post-card:hover .link-arrow { background-size: 100% 1px; }
.link-arrow:hover::after, .post-card:hover .link-arrow::after { transform: translateX(-4px); }
.as-link { background: none; border: 0; padding: 0; color: var(--emerald); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- header: a floating glass pill (ROSHN) ---------- */
.site-header { position: fixed; inset: 18px 0 auto; z-index: 50; pointer-events: none; }
.header-pill { pointer-events: auto; width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 8px 10px 8px 10px; padding-inline-start: 22px; border-radius: 16px; background: rgba(var(--deep-rgb), .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line-dark); color: var(--on-deep); transition: background .3s; }
.site-header.is-scrolled .header-pill { background: rgba(var(--deep-rgb), .86); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { display: inline-block; flex-shrink: 0; aspect-ratio: 240 / 280; background: var(--logo); -webkit-mask: url("/assets/logo-ivory.png") center / contain no-repeat; mask: url("/assets/logo-ivory.png") center / contain no-repeat; }
.brand .logo-mark { width: 38px; }
.brand strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.35; color: var(--on-deep); }
.brand small { display: block; font-size: .78rem; color: rgba(var(--on-deep-rgb), .76); line-height: 1.4; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav > a, .has-mega > a { position: relative; display: block; padding: 8px 14px; border-radius: 8px; font-size: .93rem; color: rgba(var(--on-deep-rgb), .78); transition: color .2s, background .2s; }
.nav > a:hover, .has-mega > a:hover, .nav [aria-current="page"] { color: var(--on-deep); background: rgba(var(--on-deep-rgb), .08); }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 18px); right: 50%; transform: translate(50%, 8px); width: min(1080px, 92vw); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 32px; padding: 30px; border-radius: var(--r); background: rgba(var(--deep-rgb), .96); backdrop-filter: blur(18px); border: 1px solid var(--line-dark); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(50%, 0); }
.mega::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.mega-title { font-family: var(--display); color: var(--accent); margin-bottom: 8px; font-size: .9rem; }
.mega-col a { display: block; padding: 8px 0; font-size: .92rem; color: rgba(var(--on-deep-rgb), .8); border-bottom: 1px solid var(--line-dark); transition: color .2s, padding .2s; }
.mega-col a:hover { color: var(--on-deep); padding-inline-start: 6px; }
.header-end { display: flex; align-items: center; gap: 8px; }
.header-cta { min-height: 50px; padding: 0 24px; font-size: .95rem; }
.menu-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span:not(.sr) { width: 18px; height: 1.5px; background: var(--on-deep); transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--deep-bg); color: var(--on-deep); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; margin-bottom: 12px; }
.mobile-menu nav a { font-family: var(--display); font-weight: 300; font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .btn { width: 100%; }
.mobile-hours { color: rgba(var(--on-deep-rgb), .74); font-size: .9rem; text-align: center; margin-top: 8px; }

/* ---------- hero: night green, one glowing emblem ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-bg); color: var(--on-deep); }
.scene { position: absolute; inset: 0; z-index: -1; }
.scene canvas { width: 100% !important; height: 100% !important; display: block; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint); opacity: .35; }
.scene-fallback .star { width: min(40vw, 360px); height: auto; stroke-width: .6; }
.scene.is-live .scene-fallback { display: none; }
.hero-home { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 40px; }
.hero-home .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: max(46vh, 400px); }
.hero-home .hero-content > * { max-width: 820px; }
.hero-home h1 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.4rem); }
.hero-inner { min-height: 620px; padding: 170px 0 90px; display: flex; align-items: center; }
.hero-inner .hero-content > * { max-width: 700px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(var(--deep-rgb), .85)); z-index: -1; pointer-events: none; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 400; font-size: .92rem; color: var(--accent); margin-bottom: 16px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero-home .kicker::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { color: var(--on-deep); }
.lead { font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); color: var(--ink-2); line-height: 1.95; }
.hero .lead, .dark .lead, .cinematic .lead { color: rgba(var(--on-deep-rgb), .72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-home .hero-actions { justify-content: center; }
.hero-meta { display: flex; gap: 18px; color: var(--accent); font-size: .95rem; }
.hero-facts { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 48px; color: rgba(var(--on-deep-rgb), .78); font-size: .98rem; }
.hero-facts b { font-weight: 700; color: var(--on-deep); font-variant-numeric: tabular-nums; }
.hero-facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; margin-inline-end: 28px; }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.sand { background: var(--sand); }
.ivory { background: var(--ivory); }
.dark { background: var(--deep-bg); color: var(--on-deep); }
.dark h2, .dark h3 { color: var(--on-deep); }
.dark p { color: rgba(var(--on-deep-rgb), .78); }
.section.tint { background: var(--sand); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head > p:last-child { color: var(--muted); font-size: 1.06rem; }
.dark .section-head > p:last-child { color: rgba(var(--on-deep-rgb), .76); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-head.row > div { max-width: 780px; }
.section-head.row h2 { margin: 0; }

/* statement (Red Sea): one large quiet paragraph */
.statement { background: var(--deep-bg); color: var(--on-deep); padding-top: 40px; }
.statement-text { font-family: var(--display); font-weight: 300; font-size: clamp(1.12rem, .95rem + .9vw, 1.65rem); line-height: 2; color: rgba(var(--on-deep-rgb), .86); margin-bottom: 40px; }
.statement-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.statement-points li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-dark); color: rgba(var(--on-deep-rgb), .75); font-size: .93rem; }

/* services: Diriyah sand, numbered columns divided by hairlines */
.service-groups { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.service-group { padding: 34px 0 10px; padding-inline-end: 28px; }
.service-group + .service-group { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.service-group p { color: var(--muted); font-size: .97rem; }
.service-group ul, .step ul { list-style: none; padding: 0; margin: 18px 0 0; }
.service-group li, .step li { border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.6; }
.service-group li a, .service-group li:not(:has(a)), .step li a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; transition: color .2s, padding .25s var(--ease); }
.service-group li a::after, .step li a::after { content: "←"; color: var(--mud); transition: transform .25s var(--ease); }
.service-group li a:hover { color: var(--emerald); padding-inline-start: 4px; }
.service-group li a:hover::after { transform: translateX(-4px); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.service-card { padding: 32px 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background .3s; }
.service-card:not(:nth-child(3n + 1)) { border-inline-start: 1px solid var(--line); }
.service-card:hover { background: rgba(255, 255, 255, .55) }
.service-card p { color: var(--muted); flex: 1; }
.card-actions { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-gold); color: var(--mud); margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cinematic photograph (AlUla) with a green duotone */
.cinematic { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-deep); background: var(--deep-bg); }
.duotone { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.75); mix-blend-mode: luminosity; opacity: .9; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.cinematic::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(var(--deep-rgb), .2) 0%, rgba(var(--deep-rgb), .35) 40%, rgba(var(--deep-rgb), .95) 100%), linear-gradient(90deg, rgba(10, 58, 42, .55), rgba(123, 82, 54, .25)); mix-blend-mode: normal; }
.cinematic:hover .duotone { transform: scale(1.02); }
.cinematic-in { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 110px); max-width: 1280px; }
.cinematic-in > * { max-width: 640px; }
.cinematic h2 { color: var(--on-deep); }

/* assistant + 3D passport */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.passport-stage { position: relative; height: min(620px, 70vh); }
.passport-stage .scene { z-index: 0; }
.passport-stage .scene-fallback { color: var(--accent); }
.promo-steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.promo-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.promo-steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--display); font-weight: 300; font-size: 1.4rem; color: var(--accent); line-height: 1.4; }
.promo-steps strong { color: var(--on-deep); font-weight: 500; }
.promo-steps span { color: rgba(var(--on-deep-rgb), .76); font-size: .95rem; }

/* process timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; }
.timeline-line { position: absolute; top: 25px; inset-inline: 0; height: 1px; background: var(--line); }
.timeline-line span { position: absolute; inset: 0; background: var(--ink); transform-origin: right; }
.timeline li { position: relative; }
.timeline .num, .num { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--ink); margin-bottom: 26px; position: relative; }
.timeline p { color: var(--muted); font-size: .97rem; }

/* why us: dark grid of hairline cells */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.why-item { padding: 36px 0; padding-inline-end: 32px; border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.why-item:not(:nth-child(3n + 1)) { padding-inline-start: 32px; border-inline-start: 1px solid var(--line-dark); }
.why-item p { font-size: .97rem; margin: 0; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; }
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--wood); display: grid; place-items: center; color: var(--accent); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-img .star { width: 64px; height: 64px; }
.post-card-body { padding: 20px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body strong { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.7; }
.post-card-date { color: var(--mud); font-size: .85rem; }
.post-card-ex { color: var(--muted); font-size: .94rem; line-height: 1.8; flex: 1; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 36px 0 20px; padding-inline-end: 32px; position: relative; }
.quote + .quote { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-weight: 300; font-size: 1.12rem; line-height: 1.9; color: var(--ink); }

/* faq */
.faq { background: var(--ivory); }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-family: var(--display); font-weight: 400; font-size: 1.12rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details div { padding: 0 0 26px; color: var(--muted); max-width: 36rem; }

/* closing band */
.cta-band { background: var(--deep-bg); color: var(--on-deep); text-align: center; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 64px; margin-bottom: 30px; }
.cta-in h2 { color: var(--on-deep); max-width: 820px; }
.cta-in p { color: rgba(var(--on-deep-rgb), .76); max-width: 640px; }
.cta-in .hero-actions { justify-content: center; }

/* ---------- article ---------- */
.article { background: var(--ivory); }
.article-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 72px; align-items: start; }
.article-aside { position: sticky; top: 120px; display: grid; gap: 22px; }
.toc { padding: 4px 0; border-top: 1px solid var(--ink); display: grid; max-height: 56vh; overflow: auto; }
.toc-title, .aside-title { font-family: var(--display); font-weight: 500; margin: 14px 0 6px; }
.toc a { padding: 9px 0; font-size: .9rem; line-height: 1.6; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .2s, padding .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); padding-inline-start: 6px; }
.aside-card { padding: 26px 24px; border-radius: var(--r); background: var(--deep-bg); color: var(--on-deep); display: grid; gap: 12px; }
.aside-card .star { display: none; }
.aside-card p { color: rgba(var(--on-deep-rgb), .7); font-size: .94rem; margin: 0; }
.aside-card .aside-title { color: var(--on-deep); margin: 0; }
.aside-card .btn { min-height: 46px; }
.prose { font-size: 1.06rem; min-width: 0; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--ink); }
.prose ul { padding-inline-start: 0; list-style: none; margin: 0 0 1.3em; display: grid; gap: 8px; }
.prose li { position: relative; padding-inline-start: 24px; }
.prose li::before { content: ""; position: absolute; right: 2px; top: .8em; width: 8px; height: 8px; background: var(--najdi) left / 22px 9px no-repeat; }
.feature { margin: 0 0 44px; border-radius: var(--r); overflow: hidden; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 44px; }
.about-photos img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(.2); }

/* ---------- blog, gallery, contact, track ---------- */
.blog-tools { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.blog-tools input { flex: 1; max-width: 560px; min-height: 56px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--ink); background: transparent; }
.blog-tools input:focus { outline: none; box-shadow: 0 0 0 3px rgba(207, 174, 107, .35); }
.blog-tools span { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px; border-radius: var(--r); overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--sand); }
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(var(--deep-rgb), .92); }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--r); }
.lightbox button { position: absolute; top: 10px; left: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ivory); font-size: 1.6rem; cursor: pointer; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.contact-card { padding: 32px 0; padding-inline-end: 26px; display: flex; flex-direction: column; }
.contact-card + .contact-card { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
.contact-card h2 { font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.contact-card p { color: var(--muted); flex: 1; word-break: break-word; }
.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.map { width: 100%; height: 440px; border: 0; border-radius: var(--r); filter: grayscale(.6) contrast(1.05); }
.track-form { padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field input { min-height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); font-size: 1.05rem; }
.field input:focus { border-color: var(--ink); outline: none; }
.field-error { color: #a33; font-size: .9rem; margin: 0; }
.track-result:empty { display: none; }
.track-result { padding: 22px; border-radius: 16px; background: var(--sand); }
.status-pill { display: inline-flex; padding: 4px 14px; border-radius: 999px; background: var(--deep-bg); color: var(--gold-soft); font-weight: 500; }
.track-form .btn-gold { background: var(--deep-bg); color: var(--ivory); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-bg); color: rgba(var(--on-deep-rgb), .76); padding: 100px 0 30px; font-size: .95rem; }
.footer-top { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; margin-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-mark { width: 84px; margin-bottom: 26px; }
.footer-statement { font-family: var(--display); font-weight: 300; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: rgba(var(--on-deep-rgb), .85); max-width: 720px; line-height: 1.9; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.footer-grid a { display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--on-deep); }
.footer-title { font-family: var(--display); color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { padding: 6px 16px; border: 1px solid var(--line-dark); border-radius: 999px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer-base a { display: inline; }

/* ---------- floating buttons + assistant ---------- */
.floaters { position: fixed; bottom: 22px; left: 22px; z-index: 60; display: flex; gap: 10px; align-items: center; }
.float-wa { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; transition: transform .25s var(--ease); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.float-wa:hover { transform: translateY(-2px); }
.float-ai { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(var(--deep-rgb), .85); backdrop-filter: blur(14px); color: var(--on-deep); font-size: .98rem; cursor: pointer; transition: transform .25s var(--ease); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.float-ai:hover { transform: translateY(-2px); }
.float-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.assistant { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; align-items: flex-end; padding: 20px; background: rgba(var(--deep-rgb), .35); backdrop-filter: blur(3px); }
.assistant[hidden] { display: none; }
.assistant-panel { width: min(460px, 100%); height: min(760px, calc(100svh - 40px)); display: flex; flex-direction: column; background: var(--ivory); border-radius: 28px; box-shadow: 0 40px 100px -20px rgba(var(--deep-rgb), .6); overflow: hidden; }
.assistant.is-open .assistant-panel { animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.as-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--deep-bg); color: var(--on-deep); }
.as-head .logo-mark { width: 30px; }
.as-head > div { flex: 1; min-width: 0; }
.as-title { font-family: var(--display); font-weight: 500; color: var(--on-deep); margin: 0; font-size: 1.05rem; line-height: 1.4; }
.as-sub { margin: 0; font-size: .8rem; color: rgba(var(--on-deep-rgb), .76); line-height: 1.4; }
.as-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--on-deep); cursor: pointer; display: grid; place-items: center; }
.as-icon:hover { background: rgba(var(--on-deep-rgb), .08); }
.as-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.as-log { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: .96rem; line-height: 1.8; word-wrap: break-word; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .3em 0; padding-inline-start: 1.2em; }
.msg a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--deep-bg); color: var(--on-deep); border-end-end-radius: 6px; }
.msg.me a { color: var(--on-deep); }
.msg.err { align-self: center; background: #fbeaea; color: #7a1f1f; font-size: .9rem; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-files span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: rgba(var(--on-deep-rgb), .14); }
.msg.tool { align-self: flex-start; background: transparent; border: 1px dashed var(--line-gold); color: var(--mud); font-size: .85rem; padding: 6px 12px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.receipt-card { align-self: stretch; padding: 22px; border-radius: 20px; background: var(--deep-bg); color: var(--on-deep); text-align: center; }
.receipt-card p { margin: 0 0 4px; font-size: .9rem; color: rgba(var(--on-deep-rgb), .7); }
.receipt-card strong { display: block; font-family: var(--display); font-weight: 300; font-size: 1.8rem; color: var(--gold-soft); letter-spacing: .08em; direction: ltr; margin-bottom: 14px; }
.receipt-card .btn { min-height: 44px; font-size: .9rem; padding: 0 18px; margin: 4px; }
.as-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 12px; }
.as-actions[hidden] { display: none; }
.as-actions button { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: start; font-size: .9rem; line-height: 1.4; transition: transform .2s var(--ease), border-color .2s; }
.as-actions button:hover { transform: translateY(-2px); border-color: var(--ink); }
.as-actions svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.as-files:not(:empty) { padding-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: .82rem; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.chip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(42, 27, 18, .1); cursor: pointer; }
.chip.is-uploading { opacity: .6; } .chip.is-error { border-color: #c55; color: #7a1f1f; }
.as-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.as-attach { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--emerald); transition: background .2s; }
.as-attach:hover { background: var(--sand); }
.as-attach input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.as-attach:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.as-attach svg, .as-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 11px 16px; border-radius: 23px; border: 1px solid var(--line); background: var(--ivory); line-height: 1.5; font-size: 1rem; }
.as-form textarea:focus { outline: none; border-color: var(--ink); }
.as-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--deep-bg); color: var(--on-deep); cursor: pointer; flex-shrink: 0; transform: scaleX(-1); }
.as-send:disabled { opacity: .5; cursor: wait; }
.as-note { margin: 0; padding: 0 16px 12px; background: #fff; font-size: .78rem; color: var(--muted); line-height: 1.5; }


/* ---------- the application form (/قدم-طلبك/) ---------- */
.apply-section { padding-top: 64px; }
.apply { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px 40px; align-items: start; }
.apply-steps { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apply-steps[hidden] { display: none; }
.apply-steps li { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 3px solid var(--line); color: var(--muted); font-size: .95rem; cursor: default; transition: border-color .3s, color .3s; }
.apply-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .85rem; flex-shrink: 0; transition: background .3s, color .3s; }
.apply-steps li[aria-current="step"] { color: var(--ink); border-color: #3a2818; font-weight: 600; }
.apply-steps li[aria-current="step"] span { background: #3a2818; color: #fff; border-color: #3a2818; }
.apply-steps li.is-done { color: var(--emerald); border-color: var(--mint); cursor: pointer; }
.apply-steps li.is-done span { background: #e3f4ea; border-color: var(--mint); color: #0f7a4d; font-size: 0; }
.apply-steps li.is-done span::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.apply-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3.5vw, 42px); box-shadow: 0 30px 70px -50px rgba(42, 27, 18, .5); }
.apply-card[hidden] { display: none; }
.apply-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.apply-step legend { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); font-weight: 400; margin-bottom: 22px; padding: 0; outline: none; }
.apply-search { width: 100%; min-height: 54px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--ivory); margin-bottom: 22px; }
.apply-search:focus { outline: none; border-color: var(--ink); }
.svc-group + .svc-group { margin-top: 20px; }
.svc-group-title { font-family: var(--display); font-size: .9rem; color: var(--accent); margin-bottom: 10px; }
.svc-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc-option { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; line-height: 1.5; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.svc-option:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-option input { position: absolute; opacity: 0; pointer-events: none; }
.svc-option strong { font-weight: 500; font-size: .95rem; }
.svc-option small { color: var(--muted); font-size: .8rem; }
.svc-option.is-selected { border: 2px solid #3a2818; background: #f6efe4; padding: 13px 15px; }
.svc-option:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.req-box { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: var(--sand); }
.req-box[hidden] { display: none; }
.req-title { font-weight: 600; margin-bottom: 8px; }
.req-box ul { margin: 0 0 10px; padding-inline-start: 20px; }
.req-box li { margin: 3px 0; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.apply-grid .full { grid-column: 1 / -1; }
.field small { color: var(--muted); font-weight: 400; }
.field select, .field textarea { min-height: 54px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); font-size: 1rem; }
.field textarea { resize: vertical; line-height: 1.7; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #b33; }
.apply-hint { color: var(--muted); margin-bottom: 18px; }
.slots { display: grid; gap: 10px; margin-bottom: 18px; }
.slot { border: 1px dashed rgba(42, 27, 18, .25); border-radius: 18px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.slot.has-file { border-style: solid; border-color: var(--line); background: var(--ivory); }
.slot-main { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; }
.slot-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; overflow: hidden; color: var(--mud); }
.slot-icon img { width: 100%; height: 100%; object-fit: cover; }
.slot-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slot-text { display: grid; gap: 2px; min-width: 0; }
.slot-text strong { font-weight: 500; }
.slot-text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-btn { min-height: 44px; padding: 0 20px; position: relative; overflow: hidden; }
.slot-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.slot-remove { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.3rem; }
.st { font-size: .82rem; font-weight: 600; }
.st-ok { color: #0f7a4d; } .st-warn { color: #9a5b00; } .st-bad { color: #a33; } .st-wait { color: var(--muted); font-weight: 500; }
.slot-issues { margin: 10px 70px 0 0; padding-inline-start: 18px; color: #7a4a00; font-size: .88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 10px 0; line-height: 1.7; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: #3a2818; flex-shrink: 0; }
.apply-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.review { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--ink); }
.review div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--muted); } .review dd { margin: 0; font-weight: 500; word-break: break-word; }
.review .review-edit { display: flex; gap: 20px; grid-template-columns: none; border: 0; }
.apply-nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.apply-nav .btn[hidden] { display: none; }
.apply-count { margin-inline-end: auto; color: var(--muted); font-size: .9rem; order: -1; }
.apply-nav [data-prev] { order: 0; }
.apply-nav .btn-gold { min-width: 160px; }
.apply-nav .btn:disabled { opacity: .6; cursor: wait; }
.apply-done { text-align: center; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; background: #e3f4ea; color: #0f7a4d; display: grid; place-items: center; font-size: 2rem; }
.apply-done h2 { outline: none; }
.done-id { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); letter-spacing: .08em; direction: ltr; color: #3a2818; margin: 6px 0 18px; }
.apply-done .hero-actions { justify-content: center; }
.apply-side { position: sticky; top: 120px; display: grid; gap: 12px; padding: 24px; border-radius: 22px; background: var(--sand); }
.apply-side p { margin: 0; color: var(--muted); font-size: .94rem; }
.apply-side .aside-title { color: var(--ink); }
.apply-side .btn { min-height: 46px; }
@media (max-width: 1100px) { .svc-options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .apply { grid-template-columns: 1fr; } .apply-side { position: static; } }
@media (max-width: 640px) {
  .apply-steps li { font-size: 0; gap: 0; justify-content: center; } .apply-steps li span { font-size: .85rem; }
  .svc-options, .apply-grid { grid-template-columns: 1fr; }
  .slot-main { grid-template-columns: 48px 1fr auto; } .slot-icon { width: 48px; height: 48px; }
  .slot-remove { grid-column: 3; } .slot-issues { margin-inline-end: 0; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
  .apply-nav { flex-wrap: wrap; } .apply-nav .btn { flex: 1; } .apply-count { width: 100%; text-align: center; }
}

/* ---------- hero photographs: a crossfading slideshow under the emblem ---------- */
.hero-slides { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--deep-bg); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.8s var(--ease); will-change: opacity, transform; }
.hero-slides img.is-active { opacity: 1; animation: kenburns 9s linear forwards; }
.hero-slides.is-still img { opacity: 1; animation: kenburns 24s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translateX(0); } to { transform: scale(1.02) translateX(-1.5%); } }
/* a veil in the theme colour so the copy always reads: pale sage by day, deep emerald by night */
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--deep-rgb), var(--veil-top)) 0%, rgba(var(--deep-rgb), var(--veil-mid)) 45%, rgba(var(--deep-rgb), .96) 100%); }
.hero-inner .hero-slides::after { background: linear-gradient(270deg, rgba(var(--deep-rgb), .96) 0%, rgba(var(--deep-rgb), .82) 45%, rgba(var(--deep-rgb), var(--veil-side)) 100%); }
.slides-pause { position: absolute; z-index: 3; bottom: 28px; left: var(--gutter); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(var(--deep-rgb), .4); backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; }
.slides-pause span { width: 10px; height: 12px; border-inline: 3px solid var(--on-deep); }
.slides-pause[aria-pressed="true"] span { width: 0; height: 0; border-inline: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--on-deep); transform: scaleX(-1); }
/* the emblem blends onto the photographs: its light adds by night, its lines darken by day */
.hero .scene { mix-blend-mode: screen; }
:root[data-theme="light"] .hero .scene { mix-blend-mode: multiply; }
.footer-credits { margin-top: 18px; font-size: .75rem; color: rgba(var(--on-deep-rgb), .72); text-align: left; }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .slides-pause { bottom: auto; top: 86px; } }

/* ---------- themes: dark (deep emerald, not black) is the default via <html data-theme>; light is the option ---------- */
:root, :root[data-theme="light"] {
  --deep-bg: #efe8e0; --deep-rgb: 239, 232, 224;
  --on-deep: #2a1b12; --on-deep-rgb: 42, 27, 18;
  --line-dark: rgba(42, 27, 18, .16);
  --accent: #7a4e16;
  --logo: #3a2818;
  --solid-bg: #3a2818; --solid-ink: #f7f3ee; --solid-hover: #24160c;
  --hero-glow: none; /* a white glow here would sit over the emblem and wash it out */
  --veil-top: .45; --veil-mid: .68; --veil-side: .35;
}
:root[data-theme="dark"] {
  --deep-bg: #2a1b12; --deep-rgb: 42, 27, 18;
  --on-deep: #fff; --on-deep-rgb: 255, 255, 255;
  --line-dark: rgba(255, 255, 255, .13);
  --accent: #cfae6b;
  --logo: #d6b876;
  --solid-bg: #f4efea; --solid-ink: #2a1b12; --solid-hover: #fff;
  --hero-glow: radial-gradient(70% 60% at 50% 28%, rgba(53, 211, 155, .12) 0%, rgba(53, 211, 155, 0) 70%);
  --veil-top: .55; --veil-mid: .72; --veil-side: .4;
  color-scheme: dark;
}
/* light sections always use the darker gold so labels read on sand and ivory */
.sand, .ivory, .article, .faq, .section.tint, .track-form { --accent: #7a4e16; --logo: #3a2818; }
/* parts that stay dark green in both themes */
.cinematic, .why, .site-footer, .aside-card, .receipt-card, .msg.me, .as-send, .float-ai, .status-pill,
.sand .btn-gold, .ivory .btn-gold, .article .btn-gold, .faq .btn-gold, .track-form .btn-gold {
  --deep-bg: #2a1b12; --deep-rgb: 42, 27, 18; --on-deep: #fff; --on-deep-rgb: 255, 255, 255; --line-dark: rgba(255, 255, 255, .13); --accent: #cfae6b; --logo: #d6b876;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-glow); pointer-events: none; }
.scene { z-index: -2; }
.theme-toggle { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--on-deep); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.theme-toggle:hover { transform: translateY(-2px); background: rgba(var(--on-deep-rgb), .06); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 640px) { .theme-toggle { width: 44px; height: 44px; } }

/* ---------- the assistant: a light ivory panel, the logo in green on white ---------- */
.float-ai { display: none; }
.launcher { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: #fffdfa; box-shadow: 0 16px 34px -12px rgba(42, 27, 18, .45), 0 0 0 1px rgba(42, 27, 18, .06); transition: transform .3s var(--ease); --logo: #3a2818; }
.launcher:hover { transform: translateY(-3px) scale(1.04); }
.launcher:active { transform: scale(.97); }
.launcher .logo-mark { width: 34px; position: relative; z-index: 1; }
.launcher-ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, #e2c27c, rgba(207, 174, 107, .08) 30%, #b8913f 55%, rgba(207, 174, 107, .08) 80%, #e2c27c); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: ring-turn 6s linear infinite; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
.launcher-dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #20b07a; border: 2px solid #fffdfa; z-index: 2; }
.launcher-hint { position: absolute; bottom: 80px; left: 0; width: 240px; text-align: start; display: grid; gap: 2px; padding: 14px 16px; border: 1px solid rgba(42, 27, 18, .1); border-radius: 18px 18px 18px 4px; background: #fffdfa; color: #2a1b12; font-size: .86rem; line-height: 1.6; cursor: pointer; box-shadow: 0 20px 40px -18px rgba(42, 27, 18, .45); animation: hint-in .5s var(--ease); }
.launcher-hint[hidden] { display: none; }
.launcher-hint strong { color: #3a2818; font-weight: 600; }
.launcher-hint span { color: #6a5a4e; }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); } }
.floaters { align-items: flex-end; }

.assistant { background: rgba(42, 27, 18, .35); backdrop-filter: blur(4px); }
.assistant-panel { background: #f4efea; color: #2a1b12; border: 1px solid rgba(42, 27, 18, .08); border-radius: 30px; box-shadow: 0 50px 120px -30px rgba(42, 27, 18, .55); }
.as-head { background: #fffdfa; color: #2a1b12; padding: 16px 18px; border-bottom: 1px solid rgba(42, 27, 18, .08); gap: 14px; --on-deep: #2a1b12; --on-deep-rgb: 42, 27, 18; --line-dark: rgba(42, 27, 18, .1); }
.as-avatar, .as-hello-mark { border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; box-shadow: 0 0 0 1px rgba(184, 145, 63, .55), 0 0 0 4px rgba(207, 174, 107, .14); --logo: #3a2818; }
.as-avatar { width: 46px; height: 46px; }
.as-avatar .logo-mark { width: 26px; }
.as-title { color: #2a1b12; font-size: 1.08rem; }
.as-sub { display: flex; align-items: center; gap: 6px; color: #6a5a4e; }
.as-online { width: 7px; height: 7px; border-radius: 50%; background: #20b07a; box-shadow: 0 0 0 3px rgba(32, 176, 122, .18); }
.as-icon { border-color: rgba(42, 27, 18, .12); color: #4a3a2e; }
.as-icon:hover { background: rgba(42, 27, 18, .05); }
.as-log { background: transparent; padding: 22px 18px 12px; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(42, 27, 18, .15) transparent; }
.as-hello { text-align: center; padding: 10px 8px 4px; }
.as-hello-mark { width: 72px; height: 72px; margin: 0 auto 14px; box-shadow: 0 0 0 1px rgba(184, 145, 63, .55), 0 0 0 6px rgba(207, 174, 107, .12), 0 18px 30px -18px rgba(42, 27, 18, .5); }
.as-hello-mark .logo-mark { width: 40px; }
.as-hello-title { font-family: var(--display); font-size: 1.5rem; font-weight: 400; margin: 0 0 6px; color: #2a1b12; }
.as-hello p:last-child { color: #6a5a4e; font-size: .94rem; margin: 0; }
.msg { font-size: .95rem; }
.msg.bot { position: relative; margin-inline-start: 38px; background: #fff; border: 1px solid rgba(42, 27, 18, .08); color: #2a1b12; border-end-start-radius: 6px; box-shadow: 0 6px 16px -12px rgba(42, 27, 18, .4); }
.msg.bot::before { content: ""; position: absolute; bottom: 0; right: -38px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(184, 145, 63, .55); }
.msg.bot::after { content: ""; position: absolute; bottom: 6px; right: -32px; width: 16px; height: 16px; background: #3a2818; -webkit-mask: url("/assets/logo-ivory.png") center / contain no-repeat; mask: url("/assets/logo-ivory.png") center / contain no-repeat; }
.msg.bot a { color: #7a4e16; text-decoration-color: rgba(122, 78, 22, .4); }
.msg.me { background: #2a1b12; color: #fff; border-end-end-radius: 6px; }
.msg.me a { color: #fff; }
.msg-files span { background: rgba(255, 255, 255, .14); }
.msg.tool { margin-inline-start: 38px; border: 1px dashed rgba(184, 145, 63, .6); color: #7a4e16; background: transparent; }
.msg.err { background: #fbeaea; color: #7a1f1f; border: 1px solid rgba(179, 51, 51, .2); }
.typing i { background: #7a4e16; }
.as-actions { padding: 6px 18px 14px; gap: 10px; background: transparent; }
.as-actions .as-card { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(42, 27, 18, .1); background: #fff; color: #2a1b12; cursor: pointer; text-align: start; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.as-actions .as-card:hover { transform: translateY(-2px); border-color: rgba(184, 145, 63, .7); box-shadow: 0 10px 22px -16px rgba(42, 27, 18, .5); }
.as-actions .as-card i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #efe8e0; color: #3a2818; }
.as-actions .as-card i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-card span { display: grid; gap: 1px; min-width: 0; }
.as-card strong { font-weight: 500; font-size: .9rem; line-height: 1.4; }
.as-card small { color: #6a5a4e; font-size: .75rem; line-height: 1.4; }
.as-files { background: transparent; }
.chip { background: #fff; border-color: rgba(42, 27, 18, .12); color: #2a1b12; }
.chip button { background: rgba(42, 27, 18, .08); color: #2a1b12; }
.as-form { margin: 0 14px 10px; padding: 6px; border: 1px solid rgba(42, 27, 18, .14); border-radius: 26px; background: #fff; align-items: flex-end; transition: border-color .2s, box-shadow .2s; }
.as-form:focus-within { border-color: rgba(184, 145, 63, .8); box-shadow: 0 0 0 4px rgba(207, 174, 107, .15); }
.as-attach { border: 0; color: #4a3a2e; width: 42px; height: 42px; }
.as-attach:hover { background: #efe8e0; }
.as-form textarea { background: transparent; border: 0; color: #2a1b12; padding: 10px 6px; min-height: 42px; }
.as-form textarea::placeholder { color: #6a5a4e; }
.as-form textarea:focus { box-shadow: none; }
.as-send { width: 42px; height: 42px; background: #2a1b12; color: #fff; display: grid; place-items: center; padding: 0; }
.as-send:hover { background: #24160c; }
.as-note { background: transparent; color: #6a5a4e; text-align: center; padding: 0 18px 14px; }
.receipt-card { background: #2a1b12; border: 0; }
/* quick replies: tappable answers under the bot's question */
.as-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: 38px; animation: choicesIn .35s var(--ease) both; }
.as-choice { animation: choicesIn .25s var(--ease) both; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(184, 145, 63, .55); background: #fff; color: #3a2818; font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.as-choice:hover { transform: translateY(-2px); background: #f7f0e2; border-color: #b8913f; }
.as-choice:active { transform: translateY(0) scale(.97); }
.as-choice:focus-visible { outline: 2px solid #b8913f; outline-offset: 2px; }
.as-choice[aria-pressed="true"] { background: #2a1b12; border-color: #2a1b12; color: #fff; }
.as-choice[aria-pressed="true"]::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-inline-end: 6px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.as-choice.is-other { border-style: dashed; border-color: rgba(42, 27, 18, .25); color: #6a5a4e; font-weight: 400; }
.as-choice.is-send { background: #b8913f; border-color: #b8913f; color: #fff; }
.as-choice.is-send:disabled { opacity: .45; cursor: default; transform: none; }
@keyframes choicesIn { from { opacity: 0; transform: translateY(6px); } }
/* details form the bot asks for (name, phone…) */
.as-ask { display: grid; gap: 12px; margin-inline-start: 38px; padding: 16px; background: #fff; border: 1px solid #e6dcc6; border-radius: 16px; box-shadow: 0 6px 18px rgba(42, 27, 18, .06); animation: choicesIn .3s ease both; }
.as-field { display: grid; gap: 6px; }
.as-field label { font-size: .86rem; font-weight: 700; color: #2a1b12; }
.as-field input, .as-field textarea { width: 100%; font: inherit; font-size: 16px; color: #2a1b12; background: #fbfaf8; border: 1px solid #ddd6c6; border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.as-field textarea { min-height: 76px; resize: vertical; }
.as-field input[dir=ltr] { text-align: right; }
.as-field input::placeholder, .as-field textarea::placeholder { color: #6a5a4e; }
.as-field input:focus, .as-field textarea:focus { outline: none; border-color: #b8913f; box-shadow: 0 0 0 3px rgba(184, 145, 63, .18); background: #fff; }
.as-field [aria-invalid=true] { border-color: #b4412f; }
.as-field-err { color: #b4412f; font-size: .8rem; min-height: 0; }
.as-field-err:empty { display: none; }
.as-ask-send { font: inherit; font-weight: 700; color: #fff; background: #3a2818; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; transition: transform .15s, background .15s; }
.as-ask-send:hover { background: #2a1b12; transform: translateY(-2px); }
.as-ask-send:active { transform: scale(.98); }
.as-ask-send:focus-visible { outline: 2px solid #b8913f; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .as-choices, .as-choice, .as-ask { animation: none; } }


svg.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
.done-mark svg.ico { width: 60%; height: 60%; }

/* ---------- quick request (home, under the hero) ---------- */
.quick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.quick-copy > p { color: var(--muted); max-width: 46ch; }
.quick-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.quick-steps li { display: flex; gap: 16px; align-items: flex-start; }
.quick-steps li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #3a2818; color: #f3e7c9; font-weight: 700; }
.quick-steps strong { display: block; color: var(--ink); }
.quick-steps p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
.quick-card { display: grid; gap: 18px; }
.quick-card[hidden] { display: none; }
.quick-card h3 { margin: 0; font-size: 1.5rem; }
.quick-card .field input, .quick-card .field select { width: 100%; }
.quick-card .field input[dir=ltr] { text-align: right; }
.quick-card .field select[aria-invalid], .quick-card .field input[aria-invalid] { border-color: #b33; }
.quick-send { width: 100%; min-height: 56px; }
.quick-note { margin: 0; color: var(--muted); font-size: .84rem; text-align: center; }
.quick-done { text-align: center; justify-items: center; }
.quick-done p { margin: 0; color: var(--muted); }
.quick-done .btn { width: 100%; }
.quick-id { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .06em; color: #3a2818; }
@media (max-width: 860px) {
  .quick-grid { grid-template-columns: 1fr; gap: 0; }
  .quick-copy { display: contents; }
  .quick-card { order: 1; margin-top: 8px; }
  .quick-steps { order: 2; margin-top: 40px; }
  .quick-copy > .btn { order: 3; justify-self: start; }
}


/* ---------- home: the Najdi wall and its four doors ---------- */
:root { --d-red: #8f1f17; --d-yellow: #d2930f; --d-blue: #1c4f86; --d-green: #14502e; --wood: #3a2818; --plaster: #f4efea; }
.brand-logo { height: 54px; width: auto; flex: none; }
.wall-hero { background: var(--plaster); padding-top: 124px; }
.wall { position: relative; width: 100%; max-width: 1760px; margin-inline: auto; aspect-ratio: 2048 / 752; perspective: 1400px; }
.wall-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the passport hangs above the doors from a rope on a brass nail, and swings slowly */
.wall-emblem { position: absolute; left: 50%; top: -6%; width: 5.4%; aspect-ratio: 10 / 23.5; transform: translateX(-50%); transform-origin: 50% 0; z-index: 4; animation: hang 4.6s ease-in-out infinite alternate; }
@keyframes hang { from { transform: translateX(-50%) rotate(-2.4deg); } to { transform: translateX(-50%) rotate(2.4deg); } }
.wall-emblem::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 41%; filter: drop-shadow(0 2px 2px rgba(42, 27, 18, .35)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M50 2v58' stroke='%237a5a2e' stroke-width='5'/%3E%3Cpath d='M50 2v58' stroke='%23d9bd8a' stroke-width='2.2' stroke-dasharray='2 2.6'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wall-emblem::after { content: ""; position: absolute; top: -4px; left: 50%; width: max(9px, .7vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0d596, #a97a2a 60%, #6f4f1c); box-shadow: 0 2px 3px rgba(42, 27, 18, .4); }
.wall-emblem img { position: absolute; inset: 39.5% 0 0; width: 100%; height: 60.5%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(42, 27, 18, .28)); transition: opacity .4s; }
.wall-emblem .scene { position: absolute; inset: 33% -45% -6.5%; z-index: 1; }
.wall-emblem .scene canvas { width: 100%; height: 100%; display: block; }
.wall-emblem:has(.scene.is-live) img { opacity: 0; }
.door { position: absolute; top: 29.8%; height: 66.8%; transform-style: preserve-3d; transition: filter .45s var(--ease), opacity .45s var(--ease); }
.door[data-door="0"] { left: 9.77%; width: 15.95%; }
.door[data-door="1"] { left: 31.58%; width: 15.17%; }
.door[data-door="2"] { left: 52.86%; width: 15.76%; }
.door[data-door="3"] { left: 74.54%; width: 15.82%; }
.door-leaf { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; }
.door-leaf:focus-visible { outline: 3px solid #b8913f; outline-offset: 4px; }
.leaf { position: absolute; inset: 0; transform-origin: 3% 50%; transition: transform .85s cubic-bezier(.3, .7, .2, 1), filter .85s ease; }
.leaf-closed { position: absolute; inset: -1.5% -3%; width: 106%; height: 103%; max-width: none; object-fit: fill; filter: drop-shadow(0 6px 8px rgba(42, 27, 18, .25)); }
.door-leaf:hover .leaf { transform: rotateY(-9deg); }
/* one real leaf swings on its hinge and stays open: no swap to a second picture */
.door.is-open .leaf { transform: rotateY(-66deg); filter: brightness(.82); }
.wall.has-open .door:not(.is-open) { filter: saturate(.86); }
.door-label { position: absolute; left: 9%; right: 9%; top: 33.5%; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(.8rem, 1.6vw, 1.9rem); line-height: 1.25; color: #fff7ea; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); transition: opacity .25s; pointer-events: none; text-wrap: balance; }
.door-red { --dc: #8c1d15; } .door-yellow { --dc: #d39a17; } .door-blue { --dc: #1b4d85; } .door-green { --dc: #13512d; }
/* the name is painted on the planks: a band of the door's own paint between two rows of painted triangles, and it swings with the leaf */
.door-label { left: 4.5%; right: 4.5%; --paint: #fff3dc; color: var(--paint); padding: .38em .3em .5em; border-block: 2px solid var(--paint);
  background: var(--dc); }
.door-label::before, .door-label::after { content: ""; position: absolute; inset-inline: 0; height: .32em; background: var(--paint); -webkit-mask: var(--tri) repeat-x center / .64em .32em; mask: var(--tri) repeat-x center / .64em .32em; }
.door-label::before { bottom: calc(100% + 4px); transform: scaleY(-1); }
.door-label::after { top: calc(100% + 4px); }
.door-yellow .door-label { --paint: #2a1b12; text-shadow: none; }
.doorway { position: absolute; left: 58%; right: 5%; top: 12%; bottom: 14%; display: flex; flex-direction: column; justify-content: center; gap: .5em; font-size: clamp(8px, .74vw, 13px); line-height: 1.5; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.door.is-open .doorway { opacity: 1; transition-delay: .55s; }
.doorway p { margin: 0; font-weight: 700; }
.doorway ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.doorway li { padding-inline-end: 1.5em; position: relative; }
.doorway li::after { content: ""; position: absolute; inset-inline-end: 0; top: .25em; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* walking through: the wall grows toward the opened door, then the plaster of the next page takes over */
.wall-hero { overflow: clip; }
.wall-hero.is-entering .wall { transform: scale(3.4); transition: transform .85s cubic-bezier(.45, 0, .9, .55) .3s; }
.wall-hero::after { content: ""; position: fixed; inset: 0; z-index: 40; background: var(--plaster); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.wall-hero.is-entering::after { opacity: 1; transition: opacity .3s ease .85s; }
.other-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.door-link { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px; background: #fffdfa; border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.door-link:hover { transform: translateY(-2px); border-color: var(--dc); }
.door-link img { width: 64px; height: auto; flex: none; filter: drop-shadow(0 3px 4px rgba(42, 27, 18, .25)); }
.door-link strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; }
.room h2 { font-size: 1.25rem; margin-bottom: 14px; color: var(--room); }
@media (max-width: 860px) { .other-doors { grid-template-columns: 1fr; } }

/* each door's own room, shown below the wall when its door is open */
.rooms { display: grid; }
.room { --room: var(--wood); background: #fffdfa; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); margin-top: 28px; display: grid; gap: 22px; }
.room[hidden] { display: none; }
.room-red { --room: var(--d-red); } .room-yellow { --room: #8a5d06; } .room-blue { --room: var(--d-blue); } .room-green { --room: var(--d-green); }
.room header { display: flex; gap: 16px; align-items: flex-start; }
.room header h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); color: var(--room); }
.room header p { margin: 0; color: var(--muted); max-width: 60ch; }
.room-swatch { flex: none; width: 34px; height: 52px; border-radius: 3px; background: var(--room); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 2px 4px rgba(42, 27, 18, .25); margin-top: 4px; }
.room-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; }
.room h3 { font-size: 1.05rem; margin-bottom: 10px; }
.room ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.room-services a { display: block; padding: 10px 14px; border-radius: 10px; background: var(--plaster); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.room-services a:hover { background: var(--sand-2); transform: translateX(-3px); }
.room-services li:not(:has(a)) { padding: 10px 14px; border-radius: 10px; background: var(--plaster); color: var(--ink-2); }
.room-services a { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.room-services a::after { content: "←"; flex: none; color: var(--room); }
.room-papers li { position: relative; padding-inline-start: 26px; }
.room-papers li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; background: var(--room); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.room-note { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.room .btn-gold { background: var(--room); color: #fff; }

/* the question and the request form under the wall */
.wall-ask { padding-block: clamp(18px, 2vw, 28px) clamp(48px, 7vw, 96px); text-align: center; }
.wall-ask h1 { font-size: clamp(2rem, 3.84vw, 4.2rem); font-weight: 900; margin-bottom: .25em; }
.wall-lead { color: var(--muted); max-width: 90ch; margin: 0 auto 16px; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 800px) 220px; justify-content: center; gap: 0 52px; align-items: start; text-align: start; direction: ltr; }
.ask-grid > * { direction: rtl; }
.wall-facts { grid-column: 1; grid-row: 1; order: -1; }
.ask-grid { grid-template-columns: 220px minmax(0, 800px); }
.quick-form, .quick-done { grid-column: 2; grid-row: 1; }
.wall-facts { list-style: none; margin: 46px 0 0; padding: 0 0 0 0; display: grid; gap: 22px; border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.wall-facts li { display: grid; font-family: var(--display); line-height: 1.35; }
.wall-facts b { font-weight: 800; font-size: 1.25rem; }
.wall-facts span { font-size: 1.1rem; }
.quick-form h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 14px; }
.quick-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-form .field input, .quick-form .field select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d7cfc7; border-radius: 6px; background: #fbfaf8; font-size: 1rem; }
.quick-form .field input:focus, .quick-form .field select:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(58, 40, 24, .15); }
.quick-form [aria-invalid] { border-color: #b33 !important; }
.quick-form .quick-send { width: 100%; min-height: 48px; margin-top: 16px; border-radius: 6px; background: var(--wood); color: #fff; font-weight: 700; }
.quick-form .quick-send:hover { background: #24160c; }
.quick-assistant { display: grid; justify-items: center; gap: 2px; margin: 18px 0 0; }
.quick-assistant button { border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(42, 27, 18, .3); text-underline-offset: 5px; padding: 6px 10px; }
.quick-assistant button:hover { text-decoration-color: currentColor; }
.quick-assistant span { font-size: .84rem; color: var(--muted); }
.quick-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.quick-done { background: #fffdfa; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.quick-done[hidden] { display: none; }
.quick-done .btn { width: 100%; }
.quick-id { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .06em; color: var(--wood); }

@media (max-width: 860px) {
  .wall-hero { padding-top: 98px; }
  /* phone: two doors per row, each row a real piece of the wall, cut so its two doorways sit centred */
  .wall { aspect-ratio: 1024 / 1504; perspective: 900px; background: url("/assets/wall.webp") 8.13% 0 / 206% 51.5% no-repeat, url("/assets/wall.webp") 91.97% 100% / 206% 51.5% no-repeat; } /* 206%: just wide enough to keep the neighbouring doorway out of each row */
  .wall-bg { display: none; }
  .wall-emblem { top: -2.5%; width: 42px; }
  .door, .door[data-door] { top: 15.35%; height: 34.4%; }
  .door[data-door="0"] { left: 11.51%; width: 32.86%; }
  .door[data-door="1"] { left: 56.44%; width: 31.25%; }
  .door[data-door="2"] { left: 11.41%; width: 32.47%; top: 63.85%; }
  .door[data-door="3"] { left: 56.07%; width: 32.59%; top: 63.85%; }
  .doorway { display: none; }
  .door-label { font-size: clamp(.8rem, 3.6vw, 1.5rem); }
  .room-cols { grid-template-columns: 1fr; }
  .ask-grid { grid-template-columns: 1fr; }
  .quick-form, .quick-done, .wall-facts { grid-column: 1; grid-row: auto; }
  .wall-facts { order: 2; margin-top: 28px; border: 0; padding: 0; grid-template-columns: 1fr 1fr; text-align: center; }
  .quick-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wall-emblem { animation: none; } .leaf, .wall, .doorway, .door { transition: none; } }

/* ---------- inner pages: a stretch of the same wall, each page beside its own door ---------- */
:root {
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 0h24L12 12z'/%3E%3C/svg%3E");
  --tri4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cpath d='M0 0h24L12 12z' fill='%238f1f17'/%3E%3Cpath d='M24 0h24L36 12z' fill='%23d2930f'/%3E%3Cpath d='M48 0h24L60 12z' fill='%231c4f86'/%3E%3Cpath d='M72 0h24L84 12z' fill='%2314502e'/%3E%3C/svg%3E");
}
.page-head { position: relative; background: var(--plaster); padding-top: 150px; overflow: hidden; }
.page-head.door-all { --dc: var(--wood); }
.page-head::after { content: ""; display: block; height: 12px; background: var(--dc); -webkit-mask: var(--tri) repeat-x center / 24px 12px; mask: var(--tri) repeat-x center / 24px 12px; }
.page-head.door-all::after { background: var(--tri4) repeat-x center / 96px 12px; -webkit-mask: none; mask: none; }
.page-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: end; position: relative; }
.page-head-in::after { content: ""; position: absolute; bottom: 0; inset-inline: -100vw; height: 2px; background: var(--wood); }
main:has(> .page-head:only-child) + .site-footer::before { display: none; }
.page-head-text { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px); max-width: 720px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); }
.page-head .lead { margin: 0; }
.page-head-door { display: flex; gap: 14px; align-items: flex-end; perspective: 900px; }
.page-head-door img { height: clamp(200px, 20vw, 280px); width: auto; filter: drop-shadow(0 6px 8px rgba(42, 27, 18, .25)); transform-origin: 3% 50%; transition: transform .7s cubic-bezier(.22, .8, .2, 1); animation: door-settle .8s var(--ease) both; }
.page-head-door img:hover { transform: rotateY(-12deg); }
.door-all .page-head-door img { height: clamp(150px, 15vw, 230px); }
.page-head-door img:nth-child(2) { animation-delay: .08s; } .page-head-door img:nth-child(3) { animation-delay: .16s; } .page-head-door img:nth-child(4) { animation-delay: .24s; }
@keyframes door-settle { from { opacity: 0; transform: rotateY(-28deg); } }
.section-head.with-door { display: flex; align-items: center; gap: 18px; }
.section-head.with-door img { width: 46px; height: auto; flex: none; filter: drop-shadow(0 3px 4px rgba(42, 27, 18, .25)); }
.section-head.with-door h2 { margin: 0; }
@media (max-width: 640px) {
  .page-head { padding-top: 92px; }
  .page-head-in { grid-template-columns: 1fr; gap: 0; }
  .page-head-door { position: absolute; top: 20px; inset-inline-end: 0; }
  .page-head-door img { height: 132px; }
  .page-head h1 { min-height: 132px; padding-inline-end: 96px; display: flex; align-items: flex-end; }
  .door-all .page-head-door { position: static; order: -1; justify-content: center; padding-top: 16px; }
  .door-all .page-head-door img { height: 92px; }
  .door-all h1 { min-height: 0; padding: 0; }
}

/* ---------- the same world lower down: wood sections, door-colour plaques, triangle bands ---------- */
.why::before, .site-footer::before, .as-head::after { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: var(--tri4) repeat-x center / 96px 12px; }
.site-footer { position: relative; }
.as-head { position: relative; }
.as-head::after { inset: auto 0 -8px; height: 8px; background-size: 64px 8px; z-index: 1; }
.timeline .num { border-radius: 4px; border: 0; color: #fff7ea; background: var(--wood); box-shadow: inset 0 0 0 1.5px rgba(255, 247, 234, .4); }
@media (max-width: 1599px) { .doorway { display: none; } } /* the list inside the doorway is too small to read below this; the room under the wall carries it */

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-end { margin-inline-start: auto; }
  .service-groups, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .service-group:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .service-group:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .contact-card:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .timeline { grid-template-columns: repeat(2, 1fr); } .timeline-line { display: none; }
}
@media (max-width: 960px) {
  .promo-grid, .map-grid, .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .passport-stage { height: 460px; }
  .article-aside { position: static; order: 2; }
  .toc { display: none; }
  .service-grid, .post-grid, .quote-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .service-card:not(:nth-child(3n + 1)) { border-inline-start: 0; }
  .service-card:nth-child(2n) { border-inline-start: 1px solid var(--line); }
  .why-item:not(:nth-child(3n + 1)) { padding-inline-start: 0; border-inline-start: 0; }
  .why-item:nth-child(2n) { padding-inline-start: 32px; border-inline-start: 1px solid var(--line-dark); }
  .quote + .quote { padding-inline-start: 0; border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head.row { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { inset: 10px 0 auto; }
  .header-pill { min-height: 60px; gap: 10px; padding-inline-start: 14px; }
  .brand small { display: none; }
  .brand .logo-mark { width: 32px; }
  .header-cta { min-height: 44px; padding: 0 16px; font-size: .88rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero-home .hero-content { padding-top: 46vh; }
  .hero-inner { padding: 300px 0 56px; min-height: 0; }
  .hero-facts { margin-top: 32px; gap: 4px 18px; }
  .hero-facts span + span::before { margin-inline-end: 18px; }
  .hero-actions .btn { width: 100%; }
  .service-groups, .contact-grid, .service-grid, .post-grid, .quote-grid, .why-grid, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .service-group, .service-group + .service-group, .contact-card + .contact-card, .why-item:nth-child(2n), .quote + .quote, .service-card:nth-child(2n) { padding-inline-start: 0; border-inline-start: 0; }
  .service-group + .service-group { border-top: 1px solid var(--line); }
  .cinematic { min-height: 70vh; }
  .blog-tools { flex-direction: column; align-items: stretch; }
  .floaters { bottom: 12px; left: 12px; flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .launcher { width: 54px; height: 54px; } .launcher .logo-mark { width: 28px; }
  .float-wa { width: 44px; height: 44px; margin-inline-end: 5px; } .float-wa svg { width: 22px; height: 22px; }
  .float-ai { flex: 1; justify-content: center; }
  .assistant { padding: 0; }
  .assistant-panel { width: 100%; height: 100svh; border-radius: 0; }
  .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.hours { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: .6em; }
.contact-card p[dir=ltr], .footer-grid [dir=ltr] { text-align: right; }
/* from tablet up the chat is a side panel: the page behind stays readable and usable */
@media (min-width: 768px) { .assistant { background: none; backdrop-filter: none; pointer-events: none; } .assistant-panel { pointer-events: auto; } }


/* a small door in the chat: leads to the door where that question belongs */
.as-door { display: flex; align-items: center; gap: 12px; margin-inline-start: 38px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--dc); color: #2a1b12; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; animation: choicesIn .3s var(--ease) both; }
.as-door:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(42, 27, 18, .5); }
.as-door img { width: 38px; height: auto; flex: none; filter: drop-shadow(0 2px 3px rgba(42, 27, 18, .3)); transform-origin: 3% 50%; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.as-door:hover img { transform: perspective(300px) rotateY(-28deg); }
.as-door span { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.as-door small { color: #6a5a4e; font-size: .78rem; }
.as-door strong { font-family: var(--display); font-size: 1.05rem; }
.as-door i { font-style: normal; color: var(--dc); }
.as-choice.is-go { display: inline-flex; align-items: center; text-decoration: none; background: #3a2818; border-color: #3a2818; color: #fff; }
.as-choice.is-go:hover { background: #24160c; }

/* ---------- phone: tighter sections, rows instead of tall stacks, nothing covering the doors ---------- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .wall-ask h1 { font-size: 1.9rem; }
  .statement { padding-top: 28px; }
  .statement-text { margin-bottom: 24px; line-height: 1.85; }
  .statement-points { flex-direction: column; gap: 0; text-align: start; }
  .statement-points li { border: 0; border-top: 1px solid var(--line-dark); border-radius: 0; padding: 12px 0; }
  .promo-grid { gap: 8px; }
  .passport-stage { height: 300px; }
  .timeline { gap: 26px; }
  .timeline li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: start; }
  .timeline .num { grid-row: span 2; margin: 0; }
  .timeline h3 { margin-bottom: .2em; }
  .timeline p { margin: 0; }
  .why-item { padding: 22px 0; }
  .quote-grid { border-top: 0; }
  .quote { padding: 22px 0 4px; border-top: 1px solid var(--line); }
  .quote blockquote { font-size: 1.04rem; }
  .contact-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
  .contact-grid { border-top: 0; }
  .contact-card .icon { grid-row: span 3; margin: 0; }
  .contact-card h2, .contact-card p { margin: 0; }
  .site-footer { padding-top: 64px; }
  .footer-top { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-base { margin-top: 36px; }
  .cinematic { min-height: 56vh; }
}


/* the assistant's mark: a round cream speech bubble on dark wood (the office logo stays in the menu bar and footer) */
:root { --bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M16 4C8.8 4 3 8.9 3 15c0 3.2 1.6 6.1 4.2 8.1-.3 1.7-1.1 3.3-2.3 4.5-.3.3-.1.9.4.9 2.9-.1 5.4-1 7.3-2.4 1.1.3 2.2.4 3.4.4 7.2 0 13-4.9 13-11S23.2 4 16 4zM8.5 15a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0zM14.2 15a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0zM19.9 15a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0z'/%3E%3C/svg%3E"); }
.launcher, .as-avatar, .as-hello-mark { background: linear-gradient(160deg, #4a3420, #2a1b12); --logo: #f7f3ee; }
.launcher { box-shadow: 0 16px 30px -12px rgba(42, 27, 18, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.launcher .logo-mark, .as-avatar .logo-mark, .as-hello-mark .logo-mark { aspect-ratio: 1; -webkit-mask: var(--bubble) center / contain no-repeat; mask: var(--bubble) center / contain no-repeat; }
.launcher .logo-mark { width: 36px; transition: transform .3s var(--ease); }
.launcher:hover .logo-mark { transform: scale(1.08) rotate(-4deg); }
.as-avatar .logo-mark { width: 26px; } .as-hello-mark .logo-mark { width: 40px; }
.launcher-dot { border-color: #2a1b12; }
.msg.bot::before { background: #2a1b12; box-shadow: none; }
.msg.bot::after { background: #f7f3ee; -webkit-mask: var(--bubble) center / contain no-repeat; mask: var(--bubble) center / contain no-repeat; }
@media (max-width: 640px) { .launcher .logo-mark { width: 30px; } }

/* the pop beside the chat button */
.launcher-pop { position: absolute; bottom: 78px; left: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px 10px 14px; border-radius: 18px 18px 18px 5px; border: 1px solid rgba(184, 145, 63, .6); background: #fffdfa; color: #3a2818; font-size: .92rem; font-weight: 600; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(42, 27, 18, .55); transform-origin: 12% 100%; }
.launcher-pop[hidden] { display: none; }
.launcher-pop svg { width: 18px; height: 18px; fill: none; stroke: #b8913f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.launcher-pop.is-in { animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.launcher-pop:hover { background: #f7f0e2; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.7); } }
@media (max-width: 640px) { .launcher-pop { bottom: 60px; left: 62px; font-size: .86rem; padding: 8px 14px 8px 12px; border-radius: 16px 16px 16px 5px; transform-origin: 0 50%; } }

/* the upload button the assistant shows when it asks for a document */
.as-upload { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1.5px dashed #b8913f; border-radius: 12px; background: #fbf6ea; color: #2a1b12; font: inherit; text-align: start; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.as-upload:hover { background: #f5ecd6; transform: translateY(-2px); }
.as-upload:active { transform: scale(.99); }
.as-upload:focus-visible { outline: 2px solid #b8913f; outline-offset: 2px; }
.as-upload svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #7a4e16; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.as-upload span { display: grid; line-height: 1.45; }
.as-upload strong { font-weight: 700; font-size: .98rem; }
.as-upload small { color: #6a5a4e; font-size: .8rem; }
.as-ask-send.is-quiet { background: none; color: #3a2818; border: 1px solid rgba(42, 27, 18, .25); font-weight: 500; }
.as-ask-send.is-quiet:hover { background: #efe8e0; }
