/* Afkar Dalali — "from the drawing to the building".
   Identity from the letterhead: navy + red on drawing paper. */
:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --white: #ffffff;
  --ink: #0a1430;
  --navy: #0b2a6f;
  --red: #e2262c;
  --red-2: #ff4d43;
  --sky: #6db7f2;
  --text: #16203a;
  --muted: #596178;
  --line: rgba(10, 20, 48, .14);
  --line-2: rgba(10, 20, 48, .28);

  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --head: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 74px;
  --r: 4px;
}
html[lang="en"] {
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --head: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.8 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.3; color: var(--ink); }
p, dl, dd, ol, ul { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[dir="ltr"] .rtl-flip { transform: scaleX(-1); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sheet b, .boq__no, .note { font-family: var(--mono); }

/* drawing-paper grid, used on light sections */
.hero, .belief, #sectors {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(11, 42, 111, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 42, 111, .055) 1px, transparent 1px),
    linear-gradient(rgba(11, 42, 111, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 42, 111, .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ---------- scroll ruler ---------- */
.ruler { position: fixed; inset-inline: 0; top: 0; height: 4px; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(10,20,48,.25) 0 1px, transparent 1px 12px); }
.ruler span { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: right; }
html[dir="ltr"] .ruler span { transform-origin: left; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.topbar.is-scrolled { box-shadow: 0 8px 24px -18px rgba(10,20,48,.5); }
.topbar__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font: 700 19px/1.15 var(--head); color: var(--navy); }
.brand__txt small { font: 500 11.5px/1.3 var(--body); color: var(--red); }
html[lang="en"] .brand__txt strong { text-transform: uppercase; letter-spacing: .04em; }
.topnav { display: flex; gap: 4px; margin-inline-start: auto; }
.topnav a { padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: var(--r); transition: color .2s, background .2s; }
.topnav a:hover { color: var(--navy); background: var(--paper); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.iconbtn, .langbtn { height: 40px; min-width: 40px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); cursor: pointer; }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.langbtn { padding-inline: 12px; font: 600 13px/1 var(--mono); color: var(--navy); }
html[lang="en"] .langbtn { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 1.5px solid transparent; font: 600 15.5px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #c41d22; }
.btn--ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ink:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #25d366; color: #fff; }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }

/* ---------- labels ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--navy); letter-spacing: .02em; margin-bottom: 22px; }
html[lang="ar"] .kicker { font-family: var(--body); font-weight: 600; font-size: 14px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--red); }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.sheet { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); margin-bottom: 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--white); line-height: 1.5; }
.sheet b { display: grid; place-items: center; padding: 6px 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; }
.sheet span { padding: 6px 12px; }
html[lang="en"] .sheet span { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.sheet--light { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; }
.sheet--light b { background: var(--red); }
.sheet--center { margin-inline: auto; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.3; }
html[lang="en"] .h2 { line-height: 1.1; letter-spacing: -.01em; }
.h2--light { color: #fff; }
.lead { font-size: 17px; color: var(--muted); max-width: 56ch; }
.lead--light { color: rgba(255,255,255,.72); }
.note { margin-top: 14px; font-size: 12px; color: var(--muted); }
html[lang="ar"] .note { font-family: var(--body); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.textlink svg { width: 16px; height: 16px; }
.red { color: var(--red-2); }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 9vw, 116px); }
.sec--white { background: var(--white); }
.sec--ink { background: var(--ink); color: #fff;
  background-image: linear-gradient(rgba(109,183,242,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(109,183,242,.06) 1px, transparent 1px);
  background-size: 48px 48px; }
.sechead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: clamp(34px, 5vw, 52px); }
.sechead .lead { justify-self: end; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero__title { font-size: clamp(46px, 7.2vw, 96px); line-height: 1.12; color: var(--navy); margin-bottom: 24px; }
html[lang="en"] .hero__title { line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.hero__title > span { display: block; }
.rotator { display: inline-block; position: relative; color: var(--red); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator::after { content: ""; position: absolute; inset-inline: 0; bottom: .04em; height: .09em; background: var(--red); opacity: .18; }
.rotator.is-out { opacity: 0; transform: translateY(.25em); }
.hero__lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 50ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__facts { display: flex; border-top: 1px solid var(--line-2); max-width: 520px; }
.hero__facts > div { flex: 1; padding: 16px 0 0; padding-inline-end: 20px; }
.hero__facts > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.hero__facts dt { font: 600 26px/1.2 var(--mono); color: var(--navy); }
.hero__facts div:nth-child(2) dt { font-family: var(--head); font-weight: 700; }
.hero__facts dd { font-size: 13.5px; color: var(--muted); }

/* the drawing that becomes the photo */
.plan { position: relative; margin: 0; padding: 34px 0 0; padding-inline-end: 44px; }
.plan__frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--ink); background: var(--white); overflow: hidden; }
.plan__photo { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; clip-path: inset(100% 0 0 0); animation: rise 1.8s var(--ease) 1.5s forwards; filter: saturate(.9) contrast(1.02); }
@keyframes rise { to { clip-path: inset(0 0 0 0); } }
.plan__lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.plan__lines path { fill: none; stroke: var(--navy); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.8s var(--ease) .1s forwards, fade 1.2s ease 2.4s forwards; }
.plan__lines path.thin { stroke-dasharray: 4 6; stroke-dashoffset: 0; opacity: 0; animation: show .6s ease .9s forwards, fade 1.2s ease 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: .6; } }
@keyframes fade { to { stroke: #fff; opacity: .35; } }
.plan__tag { position: absolute; top: 22px; inset-inline-start: 22px; padding: 4px 10px; font: 600 12.5px/1.4 var(--body); background: var(--white); border: 1px solid var(--ink); color: var(--ink); }
html[lang="en"] .plan__tag { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.plan__tag--b { background: var(--red); border-color: var(--red); color: #fff; opacity: 0; animation: show-full .4s ease 3s forwards; }
.plan__tag--a { animation: hide .3s ease 3s forwards; }
@keyframes show-full { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }
.plan__dim { position: absolute; display: flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); color: var(--navy); }
.plan__dim b { font-weight: 500; }
.plan__dim i { flex: 1; height: 1px; background: var(--navy); position: relative; }
.plan__dim--top { top: 6px; inset-inline-start: 0; inset-inline-end: 44px; }
.plan__dim--top i:first-child::before, .plan__dim--top i:last-child::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--navy); }
.plan__dim--top i:first-child::before { inset-inline-start: 0; }
.plan__dim--top i:last-child::after { inset-inline-end: 0; }
.plan__dim--side { top: 34px; bottom: 44px; inset-inline-end: 8px; width: 24px; flex-direction: column; }
.plan__dim--side i { width: 1px; height: auto; flex: 1; }
.plan__dim--side b { writing-mode: vertical-rl; transform: rotate(180deg); }
.plan__block { display: grid; grid-template-columns: auto 1fr auto; border: 1px solid var(--ink); border-top: 0; background: var(--white); font: 500 12px/1.4 var(--mono); color: var(--ink); }
.plan__block span { padding: 10px 12px; }
.plan__block span + span { border-inline-start: 1px solid var(--ink); }
html[lang="ar"] .plan__block span:nth-child(2) { font-family: var(--body); font-weight: 600; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about .h2 { margin-bottom: 20px; }
.about .lead + .lead { margin-top: 12px; }
.notes { background: var(--white); border: 1px solid var(--ink); padding: 26px 28px 28px; }
.notes__head { font: 700 14px/1.4 var(--body); color: var(--navy); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ink); }
html[lang="en"] .notes__head { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.notes ol { list-style: none; padding: 0; counter-reset: n; margin-bottom: 20px; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.notes li::before { content: counter(n); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font: 600 12px/1 var(--mono); margin-top: 3px; }
.notes h3 { font-size: 17px; }
.notes li p { font-size: 14.5px; color: var(--muted); }

/* ---------- counters ---------- */
.counters { background: var(--white); border-block: 1px solid var(--line); }
.counters__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.counter { padding: 34px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.counter:first-child { border-inline-start: 0; }
.counter b { display: block; font: 600 42px/1 var(--mono); color: var(--navy); margin-bottom: 8px; }
.counter span { font-size: 13.5px; color: var(--muted); }

/* ---------- services: bill of quantities ---------- */
.boq { border-top: 2px solid var(--ink); }
.boq__head, .boq summary { display: grid; grid-template-columns: 76px minmax(0, 1.25fr) minmax(0, 1fr) 44px; align-items: center; column-gap: 20px; }
.boq__head { padding: 12px 0; font: 600 13px/1 var(--body); color: var(--muted); border-bottom: 1px solid var(--ink); }
.boq__head span:first-child { padding-inline-start: 12px; }
html[lang="en"] .boq__head { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.boq__row { border-bottom: 1px solid var(--line); transition: background .25s; }
.boq__row:hover, .boq__row[open] { background: var(--paper); }
.boq summary { list-style: none; cursor: pointer; padding: 20px 0; }
.boq summary::-webkit-details-marker { display: none; }
.boq__no { font-size: 13px; color: var(--muted); padding-inline-start: 12px; transition: color .2s; }
.boq__row[open] .boq__no, .boq__row:hover .boq__no { color: var(--red); }
.boq__t { font: 700 clamp(17px, 1.7vw, 20px)/1.4 var(--head); color: var(--ink); }
html[lang="en"] .boq__t { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.boq__s { font-size: 14.5px; color: var(--muted); }
.boq__x { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; justify-self: end; margin-inline-end: 12px; transition: background .25s, border-color .25s; }
.boq__x::before, .boq__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.boq__x::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.boq__row[open] .boq__x { background: var(--red); border-color: var(--red); }
.boq__row[open] .boq__x::before, .boq__row[open] .boq__x::after { background: #fff; }
.boq__row[open] .boq__x::after { transform: translate(-50%, -50%) rotate(0deg); }
.boq__row > p { padding: 0 0 22px; padding-inline-start: 96px; max-width: 760px; color: var(--text); font-size: 15.5px; }

/* ---------- sectors: drawing sheets ---------- */
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dsheet { position: relative; background: var(--white); border: 1px solid var(--ink); padding: 10px; transition: transform .35s var(--ease), box-shadow .35s, opacity .8s var(--ease); }
.dsheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.dsheet:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(10,20,48,.45); }
.dsheet svg { width: 100%; height: 150px; padding: 18px 14px 10px; }
.draw path { fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s var(--ease), stroke .3s; }
.is-in .draw path { stroke-dashoffset: 0; }
.dsheet:hover .draw path { stroke: var(--red); }
.dsheet__block { position: relative; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.dsheet__block b { padding: 10px 12px; font: 500 12px/1.6 var(--mono); color: var(--red); border-inline-end: 1px solid var(--ink); }
.dsheet__block h3 { padding: 8px 14px; font-size: 17px; }
html[lang="en"] .dsheet__block h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.dsheet > p { position: relative; padding: 10px 12px 6px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- process: project schedule ---------- */
.gantt { border: 1px solid var(--ink); background: var(--white); }
.gantt__head, .gantt__row { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
.gantt__head { border-bottom: 1px solid var(--ink); background: var(--paper); }
.gantt__head > span { padding: 12px 18px; font: 700 14px/1.4 var(--body); color: var(--ink); border-inline-end: 1px solid var(--ink); }
html[lang="en"] .gantt__head > span { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.gantt__scale { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); }
.gantt__scale li { display: grid; place-items: center; font: 500 11px/1 var(--mono); color: var(--muted); border-inline-start: 1px solid var(--line); }
.gantt__scale li:first-child { border-inline-start: 0; }
.gantt__rows { list-style: none; padding: 0; }
.gantt__row { border-bottom: 1px solid var(--line); transition: background .2s; }
.gantt__row:last-child { border-bottom: 0; }
.gantt__row:hover { background: var(--paper); }
.gantt__task { display: flex; gap: 14px; padding: 18px; border-inline-end: 1px solid var(--ink); }
.gantt__task b { flex-shrink: 0; font: 600 13px/1.9 var(--mono); color: var(--red); }
.gantt__task h3 { font-size: 17px; margin-bottom: 2px; }
.gantt__task p { font-size: 14px; color: var(--muted); }
.gantt__track { position: relative; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.gantt__track i { position: absolute; top: 50%; height: 14px; margin-top: -7px;
  inset-inline-start: calc((var(--s) - 1) / 12 * 100%); width: calc((var(--e) - var(--s)) / 12 * 100%);
  background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease); }
html[dir="ltr"] .gantt__track i { transform-origin: left; }
.gantt__row:nth-child(1) .gantt__track i { transition-delay: .2s; }
.gantt__row:nth-child(2) .gantt__track i { transition-delay: .6s; }
.gantt__row:nth-child(3) .gantt__track i { transition-delay: 1s; }
.gantt__row:nth-child(4) .gantt__track i { transition-delay: 1.4s; }
.gantt__row:nth-child(5) .gantt__track i { transition-delay: 2.2s; }
.gantt.is-in .gantt__track i { transform: scaleX(1); }
.gantt__row--key .gantt__track i { width: 18px; height: 18px; margin-top: -9px; margin-inline-start: 8px; background: var(--red); transform: rotate(45deg) scale(0); transform-origin: center; }
.gantt.is-in .gantt__row--key .gantt__track i { transform: rotate(45deg) scale(1); }
.note--dark { padding: 10px 18px; border-top: 1px solid var(--ink); margin: 0; background: var(--paper); }

/* ---------- belief + stamp ---------- */
.belief { padding-block: clamp(84px, 11vw, 140px); text-align: center; border-block: 1px solid var(--line); overflow: hidden; }
.belief__in { position: relative; max-width: 920px; display: grid; justify-items: center; }
.belief blockquote { margin: 0 0 18px; font: 700 clamp(28px, 4vw, 48px)/1.45 var(--head); color: var(--navy); }
html[lang="en"] .belief blockquote { line-height: 1.15; }
.belief__sig { font-size: 14px; color: var(--muted); }
.stamp { position: absolute; inset-inline-end: 0; bottom: -64px; display: grid; justify-items: center; gap: 2px; padding: 10px 18px; border: 3px double var(--red); border-radius: 6px; color: var(--red); transform: rotate(-9deg) scale(1.7); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1) .6s, opacity .15s ease .6s; }
.stamp span { font: 700 18px/1.3 var(--head); }
html[lang="en"] .stamp span { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.stamp small { font: 600 9.5px/1 var(--mono); letter-spacing: .22em; }
.belief:has(blockquote.is-in) .stamp { opacity: .9; transform: rotate(-9deg) scale(1); }

/* ---------- projects rail ---------- */
.pj__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.28); background: transparent; color: rgba(255,255,255,.78); font: 500 14px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.is-on { background: #fff; border-color: #fff; color: var(--ink); }
.arrows { display: flex; gap: 6px; }
.arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.arrow:hover { background: var(--red); border-color: var(--red); }
.arrow svg { width: 18px; height: 18px; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: max(16px, calc((100% - 1200px) / 2)); padding-inline: max(16px, calc((100% - 1200px) / 2)); padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 clamp(260px, 30vw, 380px); scroll-snap-align: start; margin: 0; cursor: zoom-in; }
.shot.is-hidden { display: none; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(255,255,255,.18); transition: filter .5s; filter: saturate(.85); }
.shot:hover img { filter: saturate(1.05); }
.shot figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding-top: 12px; border-top: 2px solid var(--red); margin-top: 12px; }
.shot__no { grid-row: span 2; font: 500 13px/1.9 var(--mono); color: var(--red-2); }
.shot figcaption strong { font: 700 18px/1.4 var(--head); color: #fff; }
html[lang="en"] .shot figcaption strong { text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.shot figcaption span:last-child { font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ---------- commitments ---------- */
.commit { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checklist { list-style: none; padding: 0; margin-top: 28px; border-top: 1px solid var(--ink); }
.checklist li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tick { flex-shrink: 0; position: relative; width: 26px; height: 26px; border: 1.5px solid var(--ink); margin-top: 4px; background: var(--white); }
.tick::after { content: ""; position: absolute; left: 7px; top: 2px; width: 8px; height: 14px; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1) .4s; }
.checklist li.is-in .tick::after { transform: rotate(45deg) scale(1); }
.checklist h3 { font-size: 18px; }
html[lang="en"] .checklist h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.checklist p { font-size: 15px; color: var(--muted); }
.tblock { border: 1px solid var(--ink); background: var(--white); }
.tblock__logo { display: grid; place-items: center; padding: 22px; border-bottom: 1px solid var(--ink); }
.tblock__logo img { height: 74px; width: auto; }
.tblock__head { padding: 12px 16px; font-weight: 700; font-size: 15px; color: #fff; background: var(--navy); }
html[lang="en"] .tblock__head { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.tblock dl > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.tblock dt, .tblock dd { padding: 12px 16px; font-size: 14px; }
.tblock dt { color: var(--muted); border-inline-end: 1px solid var(--line-2); }
.tblock dd { font: 600 15px/1.5 var(--mono); color: var(--ink); }
.tblock dd[data-i18n] { font-family: var(--body); }

/* ---------- faq ---------- */
.faqwrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font: 600 17px/1.5 var(--head); color: var(--ink); }
html[lang="en"] .faq summary { font-family: var(--body); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font: 400 24px/1 var(--mono); color: var(--red); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- contact ---------- */
.contact__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info .h2 { margin-bottom: 16px; }
.channels { list-style: none; padding: 0; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.2); }
.channels li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.channels small { font: 500 13px/1.4 var(--body); color: rgba(255,255,255,.5); }
html[lang="en"] .channels small { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.channels a, .channels span { font-weight: 600; font-size: 16.5px; }
.channels a:hover { color: var(--sky); }
html[dir="rtl"] .channels a[dir="ltr"] { text-align: right; }
.form { background: var(--paper); color: var(--text); border: 1px solid #fff; }
.form__block { display: flex; border-bottom: 1px solid var(--ink); background: var(--white); }
.form__block b { padding: 12px 16px; background: var(--red); color: #fff; font: 600 13px/1.5 var(--mono); }
.form__block span { padding: 12px 16px; font-weight: 700; color: var(--ink); }
html[lang="en"] .form__block span { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.form__body { display: grid; gap: 16px; padding: clamp(20px, 3.5vw, 32px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #9aa0ad; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,111,.12); }
.form .is-bad { border-color: var(--red); }
.form__err { color: var(--red); font-weight: 600; font-size: 14px; }
.form__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.foot { background: #070f25; color: rgba(255,255,255,.7); padding-top: 60px; }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__logo { display: inline-grid; padding: 10px 14px; background: #fff; margin-bottom: 16px; }
.foot__logo img { height: 56px; width: auto; }
.foot__brand p { max-width: 44ch; font-size: 14.5px; }
.foot__col { display: grid; align-content: start; gap: 9px; font-size: 14.5px; }
.foot__col h3 { color: #fff; font-size: 15px; margin-bottom: 6px; }
html[lang="en"] .foot__col h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.foot__col a:hover { color: #fff; }
html[dir="rtl"] .foot__col a[dir="ltr"] { text-align: right; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; font-size: 13px; }
.foot__cr { font-family: var(--mono); opacity: .6; margin-inline-start: 6px; }
.foot__by { font: 500 11px/1 var(--mono); letter-spacing: .3em; opacity: .5; }

/* ---------- floating ---------- */
.fab { position: fixed; z-index: 40; inset-inline-start: 20px; display: grid; place-items: center; color: #fff; transition: transform .3s var(--ease), opacity .3s; }
.fab--wa { bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.fab--wa svg { width: 29px; height: 29px; }
.fab--wa:hover { transform: scale(1.06); }
.fab--top { bottom: 88px; width: 40px; height: 40px; border-radius: var(--r); background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--top svg { width: 18px; height: 18px; }
.fab--top.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(7,15,37,.94); }
.lightbox img { max-height: 88vh; width: auto; border: 1px solid rgba(255,255,255,.3); }
.lightbox__x { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .topbar__actions { margin-inline-start: auto; }
  .sheets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__in, .about, .commit, .faqwrap, .contact__in, .sechead { grid-template-columns: 1fr; }
  .sechead .lead { justify-self: start; }
  .plan { max-width: 460px; width: 100%; }
  .gantt__head, .gantt__row { grid-template-columns: 1fr; }
  .gantt__head > span, .gantt__task { border-inline-end: 0; }
  .gantt__scale { display: none; }
  .gantt__track { height: 26px; margin: 0 18px 16px; border: 1px solid var(--line); }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --hdr: 64px; }
  .brand img { height: 40px; }
  .brand__txt small { display: none; }
  .brand__txt strong { font-size: 17px; }
  .topbar__actions .btn--sm { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .plan { padding-inline-end: 34px; }
  .plan__dim--top { inset-inline-end: 34px; }
  .sheets, .form__row, .form__btns { grid-template-columns: 1fr; }
  .boq__head { display: none; }
  .boq summary { grid-template-columns: 40px 1fr 36px; row-gap: 2px; }
  .boq__no { grid-row: span 2; padding-inline-start: 4px; align-self: start; line-height: 1.9; }
  .boq__s { grid-column: 2; grid-row: 2; }
  .boq__x { grid-column: 3; grid-row: 1 / span 2; margin-inline-end: 4px; }
  .boq__row > p { padding-inline-start: 60px; padding-inline-end: 12px; }
  .shot { flex-basis: 78vw; }
  .stamp { position: relative; inset: auto; margin-top: 34px; }
  .foot__in { grid-template-columns: 1fr; }
  .fab--wa { width: 52px; height: 52px; inset-inline-start: 14px; bottom: 14px; }
  .fab--top { inset-inline-start: 20px; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Curves pass — the logo is built from arcs (the orbit around the
   buildings, rounded letters), so the page follows it: soft corners,
   pill controls, round markers, and the orbit itself around the hero.
   ===================================================================== */
:root { --r: 999px; --card: 20px; --card-in: 12px; }
.iconbtn { border-radius: 50%; }
.langbtn { border-radius: 999px; }
.topnav a { border-radius: 999px; }
.kicker::before { border-radius: 50%; }
.sheet { border-radius: 999px; overflow: hidden; }
.sheet b { border-radius: 999px; margin: 3px; margin-inline-end: 0; padding: 3px 11px; }
.sheet--light { border-color: rgba(255,255,255,.4); }
.chip, .arrow { border-radius: 999px; }
.arrow { width: 44px; height: 44px; }
.fab--top { border-radius: 50%; }
.lightbox__x { border-radius: 50%; }
.lightbox img { border-radius: var(--card); }

/* hero: rounded frame, the orbit wraps it like the logo wraps its buildings */
.hero { overflow: hidden; }
.plan__frame { border-radius: var(--card) var(--card) 0 0; z-index: 1; }
.plan__photo { border-radius: var(--card-in); }
.plan__block { border-radius: 0 0 var(--card) var(--card); position: relative; z-index: 1; }
.plan__block span:first-child { padding-inline-start: 18px; }
.plan__block span:last-child { padding-inline-end: 18px; }
.plan__tag { border-radius: 999px; padding-inline: 12px; }
.orbit { position: absolute; inset: -4% -12% -4% -12%; width: 124%; height: 108%; overflow: visible; pointer-events: none; }
.orbit--back { z-index: 0; }
.orbit--front { z-index: 2; }
.orbit path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: orbit 2.2s var(--ease) .4s forwards; }
@keyframes orbit { to { stroke-dashoffset: 0; } }
.o-sky { stroke: #6db7f2; stroke-width: 14; opacity: .45; }
.o-navy { stroke: #0b2a6f; stroke-width: 3; opacity: .7; }
.o-front { stroke: url(#og); stroke-width: 12; }
.o-shine { stroke: #bfe2ff; stroke-width: 3; opacity: .9; animation-delay: .9s !important; }
/* the word under the headline gets a swoosh instead of a straight bar */
.rotator::after { inset-inline: -2%; bottom: -.1em; height: .22em; opacity: 1; background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 60 3, 140 1, 197 9' fill='none' stroke='%23e2262c' stroke-width='5' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E");
  background-size: 100% 100%; }

/* soft cards */
.notes, .tblock, .gantt, .form { border-radius: var(--card); overflow: hidden; }
.notes { border-color: var(--line-2); }
.boq { border-top: 0; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--card); overflow: hidden; padding-inline: 8px; }
.boq__head { border-bottom-color: var(--line-2); }
.boq__row { border-radius: 14px; border-bottom-color: transparent; position: relative; }
.boq__row + .boq__row::before { content: ""; position: absolute; inset-inline: 14px; top: 0; height: 1px; background: var(--line); }
.boq__row:hover::before, .boq__row[open]::before, .boq__row:hover + .boq__row::before, .boq__row[open] + .boq__row::before { opacity: 0; }
.dsheet { border-radius: var(--card); border-color: var(--line-2); }
.dsheet::before { border-radius: 14px; }
.dsheet__block { border-top-color: var(--line-2); }
.dsheet__block b { border-inline-end-color: var(--line-2); }
.gantt { border-color: var(--line-2); }
.gantt__head { border-bottom-color: var(--line-2); }
.gantt__head > span, .gantt__task { border-inline-end-color: var(--line-2); }
.gantt__track i { border-radius: 999px; }
.note--dark { border-top-color: var(--line-2); }
.tblock { border-color: var(--line-2); }
.tblock__logo { border-bottom-color: var(--line-2); }
.shot img { border-radius: var(--card); }
.shot figcaption { border-top: 0; margin-top: 14px; padding-top: 0; }
.shot__no { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--red-2); border-radius: 50%; font-size: 11.5px; line-height: 1; margin-top: 2px; }
.form { border: 0; }
.form__block b { border-radius: 999px; margin: 8px; margin-inline-end: 0; padding: 4px 14px; }
.form__block span { padding-block: 12px; }
.form input, .form select, .form textarea { border-radius: 12px; }
.foot__logo { border-radius: 14px; }
.counter { border-radius: var(--card); }

/* round checks, round stamp */
.tick { border-radius: 50%; }
.tick::after { left: 8px; top: 3px; width: 7px; height: 13px; }
.checklist { border-top-color: var(--line-2); }
.faq { border-top-color: var(--line-2); }
.faq summary::after { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 20px; }
.faq details[open] summary::after { background: var(--red); border-color: var(--red); color: #fff; }
.stamp { width: 150px; height: 150px; padding: 0; place-content: center; border-radius: 50%; border-width: 4px; bottom: -84px; }
.stamp::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--red); border-radius: 50%; }
.stamp span { font-size: 17px; max-width: 110px; line-height: 1.35; }
html[lang="en"] .stamp span { font-size: 13px; }

/* the orbit again, quietly, behind the belief line */
.belief { position: relative; }
.belief__orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.belief__orbit path { fill: none; stroke: #6db7f2; stroke-width: 2; opacity: .35; vector-effect: non-scaling-stroke; }
.belief__orbit path + path { stroke: var(--navy); opacity: .14; }
.belief__in { z-index: 1; }

@media (max-width: 860px) {
  .orbit { inset: -3% -9%; width: 118%; }
}
@media (max-width: 640px) {
  .stamp { bottom: auto; width: 130px; height: 130px; }
  .boq { padding-inline: 2px; }
}

/* orbit fix: reveal by sweeping a clip instead of dashing (dashes break on stretched paths),
   and keep it off the text side */
.orbit { inset: auto; top: -3%; inset-inline-start: -2%; width: 112%; height: 106%; clip-path: inset(0 100% 0 0); animation: sweep 1.6s var(--ease) .5s forwards; }
html[dir="rtl"] .orbit { clip-path: inset(0 0 0 100%); }
.orbit--front { animation-delay: .8s; }
@keyframes sweep { to { clip-path: inset(0 0 0 0); } }
.orbit path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@media (max-width: 860px) { .orbit { inset-inline-start: -4%; width: 110%; } }

/* =====================================================================
   Services explorer — list of 12 on one side, one big card on the other.
   ===================================================================== */
.svx { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 28px; align-items: start; }
.svx__list { list-style: none; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--card); display: grid; gap: 2px; }
.svx__item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 0; border-radius: 999px; background: transparent; text-align: start; font: 600 16px/1.4 var(--head); color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
html[lang="en"] .svx__item { font-family: var(--body); font-size: 15px; font-weight: 500; }
.svx__item:hover { background: var(--white); }
.svx__no { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 500 12px/1 var(--mono); color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.svx__item.is-on { background: var(--navy); color: #fff; }
.svx__item.is-on .svx__no { background: var(--red); border-color: var(--red); color: #fff; }
.svx__stage { position: sticky; top: calc(var(--hdr) + 24px); }
.svx__panel { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: center; padding: 34px; background: var(--white); border: 1px solid var(--line-2); border-radius: 28px; box-shadow: 0 30px 60px -40px rgba(10,20,48,.45); animation: svx-in .45s var(--ease); }
@keyframes svx-in { from { opacity: 0; transform: translateY(10px); } }
.svx__art { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff 0 40%, transparent 41%), var(--paper);
  background-image: linear-gradient(rgba(11,42,111,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,42,111,.07) 1px, transparent 1px);
  background-size: 16px 16px; background-color: var(--paper); border: 1px solid var(--line-2); }
.svx__orbit { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.svx__orbit ellipse { fill: none; stroke: #6db7f2; stroke-width: 6; opacity: .55; stroke-dasharray: 520; stroke-dashoffset: 520; animation: svx-draw 1.4s var(--ease) .1s forwards; }
.svx__icon { position: relative; width: 52%; height: 52%; overflow: visible; }
.svx__icon path { fill: none; stroke: var(--navy); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: svx-draw 1.3s var(--ease) .15s forwards; }
.svx__icon path + path { stroke: var(--red); animation-delay: .6s; }
@keyframes svx-draw { to { stroke-dashoffset: 0; } }
.svx__count { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 12px; }
.svx__count b { color: var(--red); font-weight: 600; }
.svx__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; margin-bottom: 14px; }
html[lang="en"] .svx__title { text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.svx__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.svx__chips li { padding: 5px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--navy); }
.svx__desc { font-size: 16.5px; color: var(--text); margin-bottom: 24px; max-width: 52ch; }
.svx__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.svx__next { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; font: 600 15px/1 var(--body); color: var(--navy); cursor: pointer; border-bottom: 1.5px solid var(--line-2); }
.svx__next:hover { color: var(--red); border-color: var(--red); }
.svx__next svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .svx__panel { grid-template-columns: 1fr; justify-items: start; }
  .svx__art { width: 180px; }
}
@media (max-width: 860px) {
  .svx { grid-template-columns: 1fr; gap: 16px; }
  .svx__list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px; border-radius: 999px; scrollbar-width: none; }
  .svx__list::-webkit-scrollbar { display: none; }
  .svx__list li { flex-shrink: 0; scroll-snap-align: start; }
  .svx__item { white-space: nowrap; padding: 8px 14px 8px 10px; font-size: 14.5px; }
  html[dir="rtl"] .svx__item { padding: 8px 10px 8px 14px; }
  .svx__no { width: 26px; height: 26px; font-size: 11px; }
  .svx__stage { position: static; }
  .svx__panel { padding: 24px; border-radius: 22px; }
  .svx__art { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .svx__icon path, .svx__orbit ellipse { stroke-dashoffset: 0; } }

/* =====================================================================
   Services as boxes — a mosaic: tall boxes show the real site photo for
   that service, the rest carry a drawn mark. Hover/tap opens details.
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 16px; }
.svc { position: relative; overflow: hidden; border-radius: 24px; background: var(--white); border: 1px solid var(--line-2); cursor: pointer; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s; }
.svc:hover, .svc:focus-visible, .svc.is-open { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(10,20,48,.55); }
.svc--photo { grid-row: span 2; border: 0; background: var(--ink); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.svc--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,20,48,.92) 0%, rgba(10,20,48,.35) 45%, rgba(10,20,48,0) 70%); }
.svc--photo:hover .svc__img, .svc--photo.is-open .svc__img { transform: scale(1.06); }

.svc__front { position: absolute; inset: auto 0 0 0; padding: 22px; display: grid; gap: 8px; transition: opacity .3s, transform .4s var(--ease); }
.svc--draw .svc__front { inset: 0; align-content: end; }
.svc__no { position: absolute; top: 18px; inset-inline-start: 18px; min-width: 36px; height: 28px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; font: 500 12px/1 var(--mono); background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.svc--photo .svc__front .svc__no { top: auto; position: static; justify-self: start; background: var(--red); border-color: var(--red); color: #fff; }
.svc h3 { font-size: 20px; line-height: 1.35; }
html[lang="en"] .svc h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .02em; line-height: 1.15; }
.svc--photo h3 { color: #fff; font-size: 24px; }
.svc__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.svc__chips li { padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.svc--photo .svc__chips li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(6px); }

.svc__art { position: absolute; top: 18px; inset-inline-end: 18px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background-color: var(--paper);
  background-image: linear-gradient(rgba(11,42,111,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,42,111,.07) 1px, transparent 1px); background-size: 10px 10px; border: 1px solid var(--line-2); transition: transform .5s var(--ease); }
.svc:hover .svc__art { transform: rotate(-6deg) scale(1.05); }
.svc__orbit { position: absolute; inset: -10%; width: 120%; height: 120%; overflow: visible; }
.svc__orbit ellipse { fill: none; stroke: #6db7f2; stroke-width: 3.5; opacity: .6; }
.svc__icon { width: 50%; height: 50%; position: relative; overflow: visible; }
.svc__icon path { fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.svc__icon path + path { stroke: var(--red); transition-delay: .7s; }
.svc.is-in .svc__icon path { stroke-dashoffset: 0; }

/* details layer */
.svc__more { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: var(--navy); color: #fff; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.svc__more .svc__no { background: var(--red); border-color: var(--red); color: #fff; }
.svc__more h3 { color: #fff; }
.svc__more p { font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.85); }
.svc--photo .svc__more { background: linear-gradient(0deg, rgba(11,42,111,.97) 55%, rgba(11,42,111,.75)); }
.svc__ask { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: 600 14px/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.svc__ask:hover { background: var(--red); color: #fff; }
.svc__ask svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .svc:hover .svc__more { opacity: 1; transform: none; pointer-events: auto; }
  .svc:hover .svc__front { opacity: 0; transform: translateY(-8px); }
}
.svc:focus-within .svc__more, .svc.is-open .svc__more { opacity: 1; transform: none; pointer-events: auto; }
.svc:focus-within .svc__front, .svc.is-open .svc__front { opacity: 0; }

/* the "not listed" box */
.svc--cta { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; background: var(--red); border: 0; color: #fff; }
.svc--cta span { font-size: 14.5px; opacity: .85; }
.svc--cta strong { font: 700 22px/1.35 var(--head); }
.svc--cta i { position: absolute; top: 20px; inset-inline-end: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .2s; }
.svc--cta i svg { width: 18px; height: 18px; }
.svc--cta:hover i { background: #fff; color: var(--red); }
.svc--cta::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }

@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .svc { min-height: 200px; }
  .svc--photo { grid-row: auto; min-height: 340px; }
  .svc--draw .svc__front { position: relative; padding-top: 120px; }
  .svc__front { position: relative; inset: auto; }
  .svc--photo .svc__front { position: absolute; inset: auto 0 0 0; }
  .svc--cta { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .svc__icon path { stroke-dashoffset: 0; } }

/* Services: one uniform box style (site photos live in the projects section). */
.bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; grid-auto-flow: row; }
.svc--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; min-height: 0; padding: 26px 30px; }
.svc--cta i { position: static; margin-inline-start: auto; flex-shrink: 0; }
.svc--cta::before { inset: -120% auto auto -6%; width: 30%; }
.bento .svc--cta { height: auto; }
.bento { grid-template-rows: repeat(3, 270px) auto; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 270px; }
  .bento .svc--cta { grid-row: auto; }
}
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .svc--cta { flex-direction: column; align-items: flex-start; }
  .svc--cta i { position: absolute; top: 20px; }
}

/* =====================================================================
   Soul pass — rhythm (dark / red bands between light ones), a Riyadh
   identity (Najdi parapets, skyline), and one moment that stops you:
   the building that gets built as you scroll.
   ===================================================================== */

/* Najdi parapet (شرفات) on the top edge of a band, in the band's own colour */
.parapet { position: relative; --parapet: var(--ink); }
.parapet::before { content: ""; position: absolute; inset-inline: 0; top: -17px; height: 18px; background: var(--parapet); pointer-events: none; z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18'%3E%3Cpath d='M0 18V14H6V10H10V6H14V2H22V6H26V10H30V14H36V18Z'/%3E%3C/svg%3E") repeat-x left bottom / 36px 18px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18'%3E%3Cpath d='M0 18V14H6V10H10V6H14V2H22V6H26V10H30V14H36V18Z'/%3E%3C/svg%3E") repeat-x left bottom / 36px 18px; }

/* ---------- the building, built on scroll ---------- */
.build { position: relative; height: 330vh; background: var(--ink); color: #fff;
  background-image: linear-gradient(rgba(109,183,242,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(109,183,242,.07) 1px, transparent 1px); background-size: 48px 48px; }
.build__sticky { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.build__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.build .h2 { margin-bottom: 22px; }
.build__steps { list-style: none; padding: 0; display: grid; gap: 4px; }
.build__step { display: flex; gap: 14px; padding: 12px 16px; border-radius: 16px; opacity: .32; transition: opacity .4s, background .4s; }
.build__step b { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); font: 500 12px/1 var(--mono); margin-top: 2px; transition: background .3s, border-color .3s; }
.build__step h3 { color: #fff; font-size: 18px; }
.build__step p { font-size: 14.5px; color: rgba(255,255,255,.7); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.build__step.is-done { opacity: .6; }
.build__step.is-done b { background: rgba(255,255,255,.12); }
.build__step.is-active { opacity: 1; background: rgba(255,255,255,.06); }
.build__step.is-active b { background: var(--red); border-color: var(--red); }
.build__step.is-active p { max-height: 90px; }
.build__art { position: relative; margin: 0; display: grid; justify-items: center; }
.build__svg { height: min(62vh, 560px); width: auto; overflow: visible; }
.b-s path, .b-s rect { fill: none; stroke: rgba(255,255,255,.88); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.1s var(--ease), fill .6s, opacity .6s; }
.b-s text { fill: rgba(255,255,255,.5); font: 500 9.5px/1 var(--mono); text-anchor: middle; opacity: 0; transition: opacity .6s .3s; }
.b-s .b-lv { text-anchor: end; }
.b-s.is-on path, .b-s.is-on rect { stroke-dashoffset: 0; }
.b-s.is-on text { opacity: 1; }
.b-s .b-dash { stroke: var(--sky); stroke-width: 1; stroke-dasharray: 3 6; stroke-dashoffset: 0; opacity: 0; }
.b-s.is-on .b-dash { opacity: .45; }
.b-s .b-dim { stroke: var(--sky); stroke-width: 1; }
.b-s .b-thick { stroke-width: 3.2; }
.b-s .b-red { stroke: none; fill: var(--red); opacity: 0; }
.b-s.is-on .b-red { opacity: 1; }
.b-s .b-red-line { stroke: var(--red-2); stroke-width: 2; }
.b-s .b-door { stroke: var(--sky); }
.b-s .b-lift { stroke: var(--sky); stroke-width: 2; }
.b-s.is-on .b-lift { fill: rgba(109,183,242,.14); }
.b-s .b-car { stroke: none; fill: var(--red); opacity: 0; }
.b-s.is-on .b-car { opacity: 1; animation: car 4s ease-in-out infinite; }
@keyframes car { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-200px); } }
.build__meter { position: absolute; top: 0; inset-inline-start: 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); }
.build__meter b { font: 600 34px/1 var(--mono); color: #fff; }
.build__meter i { font: 500 14px/1 var(--mono); font-style: normal; }
.build__done { position: absolute; bottom: 8%; inset-inline-end: 0; width: 120px; height: 120px; display: grid; place-items: center; text-align: center; border-radius: 50%; border: 4px double var(--red-2); color: var(--red-2); font: 700 16px/1.3 var(--head); transform: rotate(-10deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
html[lang="en"] .build__done { text-transform: uppercase; font-size: 13px; }
.build__done span { max-width: 84px; }
.build__art.is-done .build__done { opacity: 1; transform: rotate(-10deg) scale(1); }
.build__bar { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: rgba(255,255,255,.1); }
.build__bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(var(--bp, 0)); transform-origin: right; }
html[dir="ltr"] .build__bar i { transform-origin: left; }

/* ---------- the red belief band ---------- */
.belief--red { --parapet: var(--red); background: var(--red); background-image: none; border: 0; overflow: visible; color: #fff; }
.belief--red blockquote { color: #fff; }
.belief--red .belief__sig { color: rgba(255,255,255,.8); }
.belief--red .sheet--light b { background: #fff; color: var(--red); }
.belief--red .belief__orbit path { stroke: #fff; opacity: .22; }
.belief--red .belief__orbit path + path { stroke: #fff; opacity: .12; }
.belief--red .stamp { border-color: #fff; color: #fff; }
.belief--red .stamp::before { border-color: rgba(255,255,255,.7); }
.belief--red .belief__in { overflow: visible; }
.belief--red + .sec--ink { --parapet: var(--ink); }

/* ---------- Riyadh skyline at the foot of the contact band ---------- */
.contact { padding-bottom: 0; }
.skyline { display: block; width: min(1200px, 100%); height: auto; margin: clamp(56px, 8vw, 96px) auto 0; }
.skyline path, .skyline circle { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.skyline path:first-child { stroke: rgba(255,255,255,.45); }

/* ---------- testimonials (only shown when real quotes are added) ---------- */
.quotes { background: var(--white); }
.quotes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 34px; }
.quote-card { position: relative; padding: 30px 26px 24px; border-radius: var(--card); background: var(--paper); border: 1px solid var(--line); }
.quote-card::before { content: "”"; position: absolute; top: 6px; inset-inline-end: 20px; font: 700 70px/1 Georgia, serif; color: var(--red); opacity: .25; }
html[dir="rtl"] .quote-card::before { content: "“"; }
.quote-card p { font-size: 16.5px; color: var(--text); margin-bottom: 18px; }
.quote-card b { display: block; color: var(--ink); }
.quote-card small { color: var(--muted); }

@media (max-width: 860px) {
  .build { height: 300vh; }
  .build__in { grid-template-columns: 1fr; gap: 14px; }
  .build .h2 { font-size: 26px; margin-bottom: 10px; }
  .build .sheet { margin-bottom: 10px; }
  .build__step:not(.is-active) { display: none; }
  .build__art { order: -1; }
  .build__svg { height: 38vh; }
  .build__meter b { font-size: 24px; }
  .build__done { width: 92px; height: 92px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-s path, .b-s rect { stroke-dashoffset: 0; }
  .b-s.is-on .b-car { animation: none; }
}
.build__svg { direction: ltr; }

/* =====================================================================
   How we work, v2 — no scroll hijacking. The steps scroll like the rest
   of the page and stay readable; the drawing sticks beside them and
   follows the step in the middle of the screen. Phone: drawing on top,
   builds itself once, every step listed.
   ===================================================================== */
.build { height: auto; padding-block: clamp(84px, 9vw, 124px); }
.build__sticky { position: static; height: auto; overflow: visible; display: block; }
.build__in { align-items: start; }
.build__bar { display: none; }
.build__steps { gap: 12px; padding-bottom: 14vh; }
.build__step { opacity: 1; padding: 20px 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); cursor: pointer; transition: background .35s, border-color .35s, transform .35s var(--ease); }
.build__step:hover { border-color: rgba(255,255,255,.3); }
.build__step p { max-height: none; overflow: visible; color: rgba(255,255,255,.72); }
.build__step.is-done { opacity: 1; }
.build__step.is-done b { background: rgba(255,255,255,.14); border-color: transparent; }
.build__step.is-active { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.4); transform: translateX(-6px); }
html[dir="ltr"] .build__step.is-active { transform: translateX(6px); }
.build__step.is-active p { color: rgba(255,255,255,.9); }
.build__art { position: sticky; top: calc(var(--hdr) + 36px); padding-top: 48px; }
.build__svg { height: min(64vh, 560px); }
/* floors go up one after another once construction starts */
.b-floor[data-floor="1"] path { transition-delay: .35s; }
.b-floor[data-floor="2"] path { transition-delay: .7s; }
.b-floor[data-floor="3"] path { transition-delay: 1.05s; }
.b-floor .b-red { transition-delay: 1.2s; }

@media (max-width: 860px) {
  .build__step:not(.is-active) { display: flex; }
  .build__steps { padding-bottom: 0; }
  .build__step.is-active { transform: none; }
  .build__art { position: static; order: -1; padding-top: 44px; margin-bottom: 8px; }
  .build__svg { height: 44vh; }
}

/* hero at company scale: longer project-type words, so the title runs a little smaller and the word sits on its own line */
.hero__title { font-size: clamp(40px, 5.6vw, 78px); }
html[lang="en"] .hero__title { font-size: clamp(36px, 4.6vw, 66px); }
.hero__l2 { white-space: nowrap; }
.hero__facts div:nth-child(2) dt { font-size: 19px; line-height: 1.6; }
html[lang="en"] .hero__title { font-size: clamp(34px, 4.1vw, 58px); }
@media (max-width: 640px) { .hero__l2 { white-space: normal; } }

/* =====================================================================
   Coloured services — the logo's blues, stepping diagonally across the grid.
   ===================================================================== */
#services { background: linear-gradient(180deg, var(--white) 0%, #eef3fc 100%); }
.bento .svc { border: 0; }
.bento > .svc:nth-child(3n+1):not(.svc--cta) { background: var(--navy); }
.bento > .svc:nth-child(3n+2):not(.svc--cta) { background: linear-gradient(150deg, #2f6fe0, #1a4fb8); }
.bento > .svc:nth-child(3n):not(.svc--cta) { background: #dcebfc; }
/* text on the two dark tones */
.bento > .svc:nth-child(3n+1) h3, .bento > .svc:nth-child(3n+2) h3 { color: #fff; }
.bento > .svc:nth-child(3n+1) .svc__front .svc__no, .bento > .svc:nth-child(3n+2) .svc__front .svc__no { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.bento > .svc:nth-child(3n+1) .svc__chips li, .bento > .svc:nth-child(3n+2) .svc__chips li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
/* the drawn mark sits on a white disc on every tone */
.bento .svc__art { background-color: #fff; border-color: rgba(255,255,255,.6); box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.bento > .svc:nth-child(3n+1) .svc__orbit ellipse { stroke: #6db7f2; opacity: .9; }
.bento > .svc:nth-child(3n+2) .svc__orbit ellipse { stroke: #fff; opacity: .7; }
.bento > .svc:nth-child(3n) .svc__orbit ellipse { stroke: #2f6fe0; opacity: .5; }
.bento > .svc:nth-child(3n) .svc__chips li { background: rgba(255,255,255,.7); border-color: rgba(11,42,111,.12); }
.bento > .svc:nth-child(3n) .svc__front .svc__no { background: #fff; }
/* details layer: deep ink on all, so it reads as "opened" whatever the tone */
.bento .svc__more { background: var(--ink); }
.bento .svc:hover, .bento .svc.is-open { box-shadow: 0 26px 50px -26px rgba(11,42,111,.6); }

/* =====================================================================
   Hero reel — after the drawing becomes the site, the real site photos
   follow one another with a slow push-in and the project name changes.
   ===================================================================== */
.plan__slide { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: var(--card-in); opacity: 0; transition: opacity 1.4s ease; filter: saturate(.92) contrast(1.03); }
.plan__slide.is-on { opacity: 1; animation: push 6.5s linear forwards; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.09); } }
.plan__frame::after { content: ""; position: absolute; inset: 12px; border-radius: var(--card-in); background: linear-gradient(0deg, rgba(10,20,48,.7), transparent 38%); opacity: 0; transition: opacity .8s; pointer-events: none; z-index: 1; }
.plan.is-reel .plan__frame::after { opacity: 1; }
.plan__lines { z-index: 1; }
.plan__tag { z-index: 2; }
.plan__cap { position: absolute; inset-inline: 26px; bottom: 26px; z-index: 2; color: #fff; display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.plan__cap small { font: 500 11.5px/1.4 var(--mono); color: rgba(255,255,255,.7); letter-spacing: .06em; }
.plan__cap b { font: 700 20px/1.35 var(--head); }
.plan__cap.is-on { opacity: 1; transform: none; }
.plan__dots { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 2; display: flex; gap: 5px; opacity: 0; transition: opacity .6s; }
.plan.is-reel .plan__dots { opacity: 1; }
.plan__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, width .3s; }
.plan__dots i.is-on { width: 20px; border-radius: 999px; background: #fff; }

/* =====================================================================
   Services, final: one calm style. Navy band, twelve identical boxes,
   the drawn mark always visible; hover flips a box to white details.
   (Replaces the three-tone diagonal, which read as chaos.)
   ===================================================================== */
#services { background: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; }
#services .h2 { color: #fff; }
#services .lead { color: rgba(255,255,255,.72); }
#services .sheet { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
#services .sheet b { background: var(--red); }
.bento > .svc:not(.svc--cta),
.bento > .svc:nth-child(3n+1):not(.svc--cta),
.bento > .svc:nth-child(3n+2):not(.svc--cta),
.bento > .svc:nth-child(3n):not(.svc--cta) { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.bento > .svc:not(.svc--cta) h3 { color: #fff; }
.bento > .svc:not(.svc--cta) .svc__front .svc__no { background: var(--red); border-color: var(--red); color: #fff; }
.bento > .svc:not(.svc--cta) .svc__chips li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.bento .svc__art { width: 84px; height: 84px; background: linear-gradient(145deg, #3a7ff0, #1a4fb8); background-size: auto; border: 0; box-shadow: 0 16px 32px -16px rgba(0,0,0,.6); }
.bento .svc__orbit ellipse, .bento > .svc:nth-child(n) .svc__orbit ellipse { stroke: #6db7f2; opacity: .85; stroke-width: 3; }
.bento .svc__icon path { stroke: #fff; stroke-width: 1.3; stroke-dashoffset: 0; transition: none; }
.bento .svc__icon path + path { stroke: #ffb4ad; }
.bento > .svc:not(.svc--cta):hover, .bento > .svc.is-open { border-color: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
/* details: white card, navy text */
.bento .svc__more { background: #fff; color: var(--ink); }
.bento .svc__more h3 { color: var(--ink); }
.bento .svc__more p { color: var(--muted); }
.bento .svc__more .svc__no { background: var(--red); color: #fff; }
.bento .svc__ask { background: var(--navy); color: #fff; }
.bento .svc__ask:hover { background: var(--red); }

/* Nothing may widen the page on phones (decorative orbits/stamps hang past their boxes). */
html, body { overflow-x: clip; }
.build__art, .build__in { overflow-x: clip; }

/* Owner preferred the first, solid navy: navy boxes on a light band. */
#services { background: linear-gradient(180deg, var(--white) 0%, #eef3fc 100%); background-size: auto; }
#services .h2 { color: var(--ink); }
#services .lead { color: var(--muted); }
#services .sheet { background: var(--white); border-color: var(--ink); color: var(--ink); }
#services .sheet b { background: var(--ink); }
.bento > .svc:not(.svc--cta),
.bento > .svc:nth-child(3n+1):not(.svc--cta),
.bento > .svc:nth-child(3n+2):not(.svc--cta),
.bento > .svc:nth-child(3n):not(.svc--cta) { background: var(--navy); border: 0; }
.bento > .svc:not(.svc--cta):hover, .bento > .svc.is-open { box-shadow: 0 30px 60px -30px rgba(11,42,111,.65); }
/* the details layer flips to white on hover, so give it a navy edge */
.bento .svc__more { border: 2px solid var(--navy); border-radius: inherit; }

/* =====================================================================
   Inner pages (About, the 12 service pages) + footer services column.
   ===================================================================== */
.phero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 84px); background-color: var(--paper);
  background-image: linear-gradient(rgba(11,42,111,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,42,111,.055) 1px, transparent 1px); background-size: 48px 48px; border-bottom: 1px solid var(--line); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--muted); }
.phero__title { font-size: clamp(34px, 5vw, 64px); line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
html[lang="en"] .phero__title { text-transform: uppercase; line-height: 1.05; }
.phero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.phero__art { position: relative; width: clamp(150px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #3a7ff0, #1a4fb8); box-shadow: 0 30px 60px -30px rgba(11,42,111,.7); }
.phero__art .svc__orbit { position: absolute; inset: -10%; width: 120%; height: 120%; overflow: visible; }
.phero__art .svc__orbit ellipse { fill: none; stroke: #6db7f2; stroke-width: 3; opacity: .9; }
.phero__art .svc__icon { width: 46%; height: 46%; overflow: visible; }
.phero__art .svc__icon path { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; stroke-dashoffset: 0; }
.phero__art .svc__icon path + path { stroke: #ffb4ad; }
.phero__no { position: absolute; top: 4%; inset-inline-start: 4%; min-width: 44px; height: 32px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; background: var(--red); color: #fff; font: 600 13px/1 var(--mono); }

/* what we offer */
.offers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { display: flex; gap: 14px; padding: 22px; border-radius: var(--card); background: var(--paper); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
.offer:hover { border-color: var(--navy); transform: translateY(-2px); }
.offer > b { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font: 600 12px/1 var(--mono); }
.offer h3 { font-size: 17px; margin-bottom: 4px; }
html[lang="en"] .offer h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.offer p { font-size: 14.5px; color: var(--muted); }

/* scope band */
.scopeband { background: var(--navy); color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; }
.scopeband .sheet--light b { background: var(--red); }
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; position: relative; }
.stage { position: relative; padding: 22px; border-radius: var(--card); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.stage span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font: 600 12px/1 var(--mono); margin-bottom: 14px; }
.stage h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
html[lang="en"] .stage h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.stage p { font-size: 14.5px; color: rgba(255,255,255,.72); }

/* related services */
.relband { background: linear-gradient(180deg, var(--white), #eef3fc); }
.rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; padding-top: 126px; border-radius: var(--card); background: var(--navy); color: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.rel:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgba(11,42,111,.7); }
.rel .rel__art { top: 22px; inset-inline-end: 22px; }
.rel__no { position: absolute; top: 22px; inset-inline-start: 22px; min-width: 36px; height: 28px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; background: var(--red); color: #fff; font: 500 12px/1 var(--mono); }
.rel h3 { color: #fff; font-size: 20px; }
html[lang="en"] .rel h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .02em; }
.rel p { font-size: 14.5px; color: rgba(255,255,255,.75); }
.rel__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.rel__go svg { width: 16px; height: 16px; }
.rel .svc__art { position: absolute; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #3a7ff0, #1a4fb8); }
.rel .svc__orbit { position: absolute; inset: -10%; width: 120%; height: 120%; overflow: visible; }
.rel .svc__orbit ellipse { fill: none; stroke: #6db7f2; stroke-width: 3; opacity: .85; }
.rel .svc__icon { width: 50%; height: 50%; overflow: visible; }
.rel .svc__icon path { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dashoffset: 0; stroke-dasharray: none; }
.rel .svc__icon path + path { stroke: #ffb4ad; }

/* service box: link to its page, inside the details layer */
.svc__more { gap: 8px; }
.svc__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); border-bottom: 1.5px solid currentColor; align-self: flex-start; padding-bottom: 1px; }
.svc__link:hover { color: var(--red); }
.svc__more .svc__ask { order: 2; }
.svc__more .svc__link { order: 3; }

/* footer: four columns with the service list */
.foot__in { grid-template-columns: 1.3fr 1fr 1.4fr 1fr; }
.foot__col--svc { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.foot__col--svc h3 { grid-column: 1 / -1; }

@media (max-width: 1024px) {
  .offers, .rels { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .phero__in { grid-template-columns: 1fr; }
  .phero__art { order: -1; width: 120px; }
  .phero__ctas .btn { flex: 1 1 100%; }
  .offers, .rels, .stages { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
}

/* =====================================================================
   The look the client liked: a full-screen dark hero with the sites
   moving behind it, a red running strip, heavier headings, dark page
   headers. Brand navy + red, our content and structure.
   ===================================================================== */
.hero--dark { position: relative; min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; padding: 0; background: var(--ink); color: #fff; overflow: hidden; }
.hero--dark .hero__bg { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: saturate(.75) contrast(1.05) blur(1.2px); transform: scale(1.06); }
.hero__slide.is-on { opacity: 1; animation: herozoom 7s linear forwards; }
@keyframes herozoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }
.hero--dark .hero__shade { position: absolute; inset: 0; background:
  linear-gradient(270deg, rgba(10,20,48,.95) 0%, rgba(10,20,48,.82) 45%, rgba(10,20,48,.55) 100%),
  linear-gradient(0deg, rgba(10,20,48,.85), transparent 45%); }
html[dir="ltr"] .hero--dark .hero__shade { background:
  linear-gradient(90deg, rgba(10,20,48,.95) 0%, rgba(10,20,48,.82) 45%, rgba(10,20,48,.55) 100%),
  linear-gradient(0deg, rgba(10,20,48,.85), transparent 45%); }
.hero--dark .hero__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(109,183,242,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(109,183,242,.07) 1px, transparent 1px); background-size: 48px 48px; }
.hero--dark .hero__in { position: relative; display: block; padding-block: clamp(70px, 10vh, 120px) clamp(110px, 14vh, 150px); }
.hero--dark .hero__text { max-width: 760px; }
.hero--dark .kicker { color: #d9b26a; }
.hero--dark .kicker::before { background: var(--red); }
.hero--dark .hero__title { color: #fff; font-size: clamp(44px, 6.6vw, 92px); line-height: 1.12; }
html[lang="en"] .hero--dark .hero__title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
.hero--dark .rotator { color: var(--red-2); }
.hero--dark .rotator::after { opacity: .5; }
.hero--dark .hero__lead { color: rgba(255,255,255,.82); max-width: 56ch; }
.hero--dark .btn--ink { border-color: rgba(255,255,255,.55); color: #fff; }
.hero--dark .btn--ink:hover { background: #fff; color: var(--ink); }
.hero--dark .hero__facts { border-top-color: rgba(255,255,255,.22); }
.hero--dark .hero__facts > div + div { border-inline-start-color: rgba(255,255,255,.18); }
.hero--dark .hero__facts dt { color: #fff; }
.hero--dark .hero__facts dd { color: rgba(255,255,255,.65); }
.hero__foot { position: absolute; inset-inline: 0; bottom: 26px; display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.75); z-index: 1; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; }
html[lang="ar"] .hero__scroll { font-family: var(--body); letter-spacing: 0; font-size: 13px; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,.9), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__cap { margin-inline-start: auto; display: grid; justify-items: end; text-align: end; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.hero__cap.is-on { opacity: 1; transform: none; }
.hero__cap small { font-size: 12px; color: var(--red-2); font-weight: 600; }
.hero__cap b { font: 700 16px/1.4 var(--head); color: #fff; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: width .3s, background .3s; }
.hero__dots i.is-on { width: 24px; border-radius: 999px; background: #fff; }

/* red running strip */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding-block: 16px; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
html[dir="ltr"] .marquee__track { animation-name: marquee-ltr; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; flex-shrink: 0; }
.marquee span { display: inline-flex; align-items: center; gap: 16px; padding-inline: 26px; white-space: nowrap; font: 700 16px/1 var(--head); }
html[lang="en"] .marquee span { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 15px; }
.marquee b { font-size: 10px; opacity: .7; }
.marquee em { font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* heavier, larger section headings */
.h2 { font-size: clamp(32px, 4.4vw, 54px); }
html[lang="en"] .h2 { font-size: clamp(32px, 4.2vw, 52px); text-transform: uppercase; }

/* inner pages: dark header band like the home hero */
.phero { background-color: var(--ink); color: #fff; border-bottom: 0;
  background-image: linear-gradient(rgba(109,183,242,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(109,183,242,.07) 1px, transparent 1px); background-size: 48px 48px; }
.phero .crumbs { color: rgba(255,255,255,.55); }
.phero .crumbs a { color: #fff; }
.phero .crumbs a:hover { color: var(--red-2); }
.phero .crumbs span[aria-current] { color: rgba(255,255,255,.6); }
.phero .kicker { color: #d9b26a; }
.phero__title { color: #fff; }
.phero__lead { color: rgba(255,255,255,.78); }
.phero .btn--ink { border-color: rgba(255,255,255,.55); color: #fff; }
.phero .btn--ink:hover { background: #fff; color: var(--ink); }

@media (max-width: 640px) {
  .hero--dark .hero__in { padding-block: 56px 120px; }
  .hero__cap { display: none; }
  .hero__foot { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide.is-on { animation: none; } .marquee__track { animation: none; } }

/* =====================================================================
   Services, option ج: dark band, one engineering drawing per service,
   the whole box links to the service page.
   ===================================================================== */
#services { background: var(--ink);
  background-image: linear-gradient(rgba(109,183,242,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(109,183,242,.07) 1px, transparent 1px); background-size: 48px 48px; }
#services .h2 { color: #fff; }
#services .lead { color: rgba(255,255,255,.7); }
#services .sheet { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
#services .sheet b { background: var(--red); }
.bps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bp { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; border-radius: 20px; border: 1px solid rgba(109,183,242,.22); background: rgba(10,20,48,.6); color: #fff; transition: border-color .3s, background .3s, transform .35s var(--ease); }
.bp:hover, .bp:focus-visible { border-color: rgba(255,255,255,.6); background: rgba(47,111,224,.12); transform: translateY(-4px); }
.bp__draw { width: 100%; height: 116px; margin-bottom: 12px; }
.bp .draw path { stroke: var(--sky); stroke-width: 1.4; transition: stroke-dashoffset 2s var(--ease), stroke .3s; }
.bp:hover .draw path { stroke: #fff; }
.bp__no { font: 500 12px/1 var(--mono); color: var(--red-2); }
.bp h3 { color: #fff; font-size: 18px; line-height: 1.4; }
html[lang="en"] .bp h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .02em; line-height: 1.2; }
.bp p { font-size: 14px; color: rgba(255,255,255,.66); }
.bp__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.55); transition: color .25s, gap .25s; }
.bp__go svg { width: 15px; height: 15px; }
.bp:hover .bp__go { color: #fff; gap: 12px; }
.bp__cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 24px 30px; border-radius: 20px; background: var(--red); color: #fff; }
.bp__cta span { font-size: 14.5px; opacity: .85; }
.bp__cta strong { font: 700 22px/1.35 var(--head); }
.bp__cta i { margin-inline-start: auto; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .2s, color .2s; }
.bp__cta i svg { width: 18px; height: 18px; }
.bp__cta:hover i { background: #fff; color: var(--red); }

/* How we work goes light so two dark bands don't sit together */
.build { background: var(--paper); color: var(--ink);
  background-image: linear-gradient(rgba(11,42,111,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,42,111,.055) 1px, transparent 1px); background-size: 48px 48px; }
.build .h2 { color: var(--ink); }
.build .sheet--light { background: var(--white); border-color: var(--ink); color: var(--ink); }
.build .sheet--light b { background: var(--ink); }
.build__step { background: var(--white); border-color: var(--line-2); }
.build__step:hover { border-color: var(--navy); }
.build__step h3 { color: var(--ink); }
.build__step p, .build__step.is-active p { color: var(--muted); }
.build__step b { border-color: var(--line-2); color: var(--ink); }
.build__step.is-done b { background: var(--paper-2); }
.build__step.is-active { background: var(--white); border-color: var(--navy); box-shadow: 0 18px 40px -26px rgba(11,42,111,.55); }
.build__step.is-active b { color: #fff; }
.build .b-s path, .build .b-s rect { stroke: var(--navy); }
.build .b-s text { fill: var(--muted); }
.build .b-s .b-dash { stroke: #2f6fe0; }
.build .b-s .b-dim, .build .b-s .b-door, .build .b-s .b-lift { stroke: #2f6fe0; }
.build .b-s.is-on .b-lift { fill: rgba(47,111,224,.1); }
.build .b-s .b-car { fill: var(--red); }
.build__meter { color: var(--muted); }
.build__meter b { color: var(--ink); }
.build__done { border-color: var(--red); color: var(--red); }

@media (max-width: 1024px) { .bps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .bps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bps { grid-template-columns: 1fr; }
  .bp__draw { height: 100px; }
  .bp__cta { flex-direction: column; align-items: flex-start; }
  .bp__cta i { position: absolute; top: 20px; inset-inline-end: 20px; }
}

/* header call button (phones especially) */
.iconbtn--tel { background: var(--navy); border-color: var(--navy); color: #fff; }
.iconbtn--tel:hover { background: var(--red); border-color: var(--red); }

/* =====================================================================
   Phone UX pass: a real menu, a compact services grid, 44px tap targets.
   ===================================================================== */
.menubtn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; place-content: center; gap: 4px; padding: 0; }
.menubtn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menubtn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menubtn.is-open span:nth-child(2) { opacity: 0; }
.menubtn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { position: fixed; inset: var(--hdr) 0 0 0; z-index: 49; background: rgba(10,20,48,.55); backdrop-filter: blur(4px); }
.mnav__in { background: var(--white); padding: 10px 16px 22px; display: grid; box-shadow: 0 30px 50px -30px rgba(10,20,48,.6); border-radius: 0 0 22px 22px; animation: mnav-in .25s var(--ease); }
@keyframes mnav-in { from { transform: translateY(-10px); opacity: 0; } }
.mnav__in a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 6px; font: 600 17px/1.4 var(--head); color: var(--ink); border-bottom: 1px solid var(--line); }
html[lang="en"] .mnav__in a:not(.btn) { text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.mnav__in a:not(.btn):active { color: var(--red); }
.mnav__cta { margin-top: 16px; min-height: 52px; width: 100%; }
body.menu-open { overflow: hidden; }
@media (max-width: 1024px) { .menubtn { display: grid; } }

@media (max-width: 640px) {
  /* header controls at 44px */
  .iconbtn, .langbtn { height: 44px; min-width: 44px; }
  .topbar__actions { gap: 6px; }
  .brand__txt strong { font-size: 16px; }

  /* services: two compact columns instead of twelve tall cards */
  .bps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bp { padding: 12px 12px 14px; border-radius: 16px; gap: 4px; }
  .bp__draw { height: 62px; margin-bottom: 6px; }
  .bp h3 { font-size: 15px; line-height: 1.35; }
  html[lang="en"] .bp h3 { font-size: 13.5px; }
  .bp p { display: none; }
  .bp__go { padding-top: 6px; font-size: 12.5px; }
  .bp__cta { padding: 20px; }
  .bp__cta strong { font-size: 19px; }

  /* comfortable tap targets */
  .textlink { padding-block: 12px; }
  .chip { min-height: 44px; }
  .arrow { width: 44px; height: 44px; }
  .channels a, .channels span { display: inline-block; padding-block: 6px; }
  .foot__col a { display: block; padding-block: 9px; }
  .foot__col { gap: 0; }
  .foot__col h3 { margin-bottom: 8px; }
  .faq summary { min-height: 56px; }
  .hero__scroll { min-height: 44px; }
}
.mnav__lang { display: none; margin-top: 10px; }
@media (max-width: 640px) {
  .topbar__actions > .langbtn { display: none; }
  .mnav__lang { display: block; }
  .mnav__lang .langbtn { display: flex; width: 100%; height: 48px; border-radius: 999px; justify-content: center; align-items: center; font-size: 15px; }
}
/* English is the main language now: keep "FROM THE DRAWING TO" on one line */
html[lang="en"] .hero--dark .hero__text { max-width: 980px; }

/* ============ Works grid (replaces the rail): bento tiles, caption on the photo ============ */
.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; margin-top: 8px; }
.works .shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--card); background: #0f1d40; cursor: zoom-in; flex: none; isolation: isolate; }
.works .shot--big { grid-column: span 2; grid-row: span 2; }
.works .shot--tall { grid-row: span 2; }
.works .shot--wide { grid-column: span 2; }
.works:not(.is-all) .shot[data-more] { display: none; }
.works .shot.is-hidden { display: none; }
.works .shot img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; filter: saturate(.9); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.works .shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(7,15,37,.88) 0%, rgba(7,15,37,.35) 32%, rgba(7,15,37,0) 58%); transition: opacity .4s; }
.works .shot:hover img, .works .shot:focus-visible img { transform: scale(1.045); filter: saturate(1.05); }
.works .shot:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.works .shot figcaption { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; margin: 0; padding: 18px 20px; border: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.works .shot figcaption strong { font-size: 17px; line-height: 1.35; }
.works .shot--big figcaption strong { font-size: 22px; }
.works .shot figcaption span:last-child { grid-column: 2; font-size: 13px; color: rgba(255,255,255,.72); }
.works .shot__no { grid-row: span 2; align-self: center; background: rgba(7,15,37,.35); color: #fff; border-color: rgba(255,255,255,.55); }
.works .shot:hover .shot__no { background: var(--red); border-color: var(--red); }
.works__more { display: flex; justify-content: center; margin-top: 28px; }
.works__more[hidden] { display: none; }
.btn--line-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; gap: 8px; }
.btn--line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line-light b { font: 500 13px/1 var(--mono); opacity: .7; }

@media (max-width: 1000px) {
  .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}
@media (max-width: 640px) {
  .works { grid-auto-rows: 150px; gap: 10px; }
  .works .shot { border-radius: 14px; }
  .works .shot figcaption { padding: 12px 12px; column-gap: 8px; }
  .works .shot figcaption strong { font-size: 14px; }
  .works .shot--big figcaption strong { font-size: 18px; }
  .works .shot figcaption span:last-child { font-size: 11.5px; }
  .works .shot__no { width: 24px; height: 24px; font-size: 10px; }
  .works .shot--tall figcaption .shot__no { display: none; }
  .works .shot--tall figcaption { grid-template-columns: 1fr; }
  .works .shot--tall figcaption span:last-child { grid-column: 1; }
}

/* Lightbox: previous / next and a caption */
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: min(1200px, 100%); }
.lightbox__fig img { max-height: 80vh; max-width: 100%; width: auto; }
.lightbox__cap { color: rgba(255,255,255,.85); font-size: 15px; text-align: center; min-height: 1.4em; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(7,15,37,.55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 10px 24px; }
  .lightbox__nav { top: auto; bottom: 18px; translate: none; width: 44px; height: 44px; }
  .lightbox__fig { padding-bottom: 56px; }
}

/* Phones open the grid with four tiles (one full block); "View all" shows the rest. */
@media (max-width: 640px) { .works:not(.is-all) .shot:nth-child(n+5) { display: none; } }

/* Works grid, true colour: no gradient or filter on the photos; the caption sits in a solid label. */
.works .shot::after { content: none; }
.works .shot img, .works .shot:hover img, .works .shot:focus-visible img { filter: none; }
.works .shot figcaption { inset-inline: auto; inset-inline-start: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 14px; background: var(--ink); box-shadow: 0 6px 18px rgba(7,15,37,.25); }
.works .shot__no { background: transparent; }
@media (max-width: 640px) {
  .works .shot figcaption { inset-inline-start: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 7px 10px; border-radius: 10px; }
}

/* Smaller caption labels (owner: the caption text was too big). */
.works .shot figcaption { padding: 7px 11px; column-gap: 8px; border-radius: 10px; }
.works .shot figcaption strong, .works .shot--big figcaption strong { font-size: 13.5px; line-height: 1.3; }
.works .shot figcaption span:last-child { font-size: 11.5px; line-height: 1.4; }
.works .shot__no { width: 22px; height: 22px; font-size: 9.5px; margin-top: 0; }
html[lang="en"] .works .shot figcaption strong { font-size: 12.5px; letter-spacing: .02em; }
@media (max-width: 640px) {
  .works .shot figcaption { padding: 5px 8px; border-radius: 8px; inset-inline-start: 6px; bottom: 6px; max-width: calc(100% - 12px); }
  .works .shot figcaption strong, .works .shot--big figcaption strong { font-size: 11.5px; }
  html[lang="en"] .works .shot figcaption strong { font-size: 11px; }
  .works .shot figcaption span:last-child { font-size: 10px; }
  .works .shot__no { width: 20px; height: 20px; font-size: 9px; }
}

/* Seven work-type filters: one scrolling row on phones instead of three wrapped lines. */
.works__empty { margin: 8px 0 0; padding: 28px 20px; border: 1px dashed rgba(255,255,255,.3); border-radius: var(--card); color: rgba(255,255,255,.75); text-align: center; }
.works__empty[hidden] { display: none; }
@media (max-width: 760px) {
  #projects .pj__tools, #projects .chips { min-width: 0; max-width: 100%; }
  #projects .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  #projects .chips::-webkit-scrollbar { display: none; }
  #projects .chip { flex: none; white-space: nowrap; }
}

/* Hero reel in true colour (finished designs, not site shots): no blur, near-full saturation. */
.hero__slide { filter: saturate(1) contrast(1.02); }
/* Lighter shade so the finished designs read: dark only behind the text column, clear on the far side. */
.hero--dark .hero__shade { background:
  linear-gradient(270deg, rgba(10,20,48,.82) 0%, rgba(10,20,48,.55) 38%, rgba(10,20,48,.12) 72%, rgba(10,20,48,0) 100%),
  linear-gradient(0deg, rgba(10,20,48,.6), transparent 32%); }
html[dir="ltr"] .hero--dark .hero__shade { background:
  linear-gradient(90deg, rgba(10,20,48,.82) 0%, rgba(10,20,48,.55) 38%, rgba(10,20,48,.12) 72%, rgba(10,20,48,0) 100%),
  linear-gradient(0deg, rgba(10,20,48,.6), transparent 32%); }
.hero--dark .hero__grid { opacity: .5; }
.hero--dark .hero__title, .hero--dark .hero__lead { text-shadow: 0 2px 18px rgba(10,20,48,.55); }
@media (max-width: 760px) {
  .hero--dark .hero__shade, html[dir="ltr"] .hero--dark .hero__shade { background:
    linear-gradient(180deg, rgba(10,20,48,.35) 0%, rgba(10,20,48,.72) 45%, rgba(10,20,48,.85) 100%); }
}
@media (max-width: 760px) {
  .hero--dark .hero__shade, html[dir="ltr"] .hero--dark .hero__shade { background:
    linear-gradient(180deg, rgba(10,20,48,.2) 0%, rgba(10,20,48,.6) 42%, rgba(10,20,48,.8) 100%); }
}

/* Phone hero: keep each building in frame when a landscape image is cropped to a tall screen,
   and let more of the photo through (the text keeps its shadow). */
.hero__slide[src*="work-07"] { object-position: 27% 50%; }
.hero__slide[src*="work-09"] { object-position: 45% 50%; }
.hero__slide[src*="design-04"] { object-position: 50% 50%; }
.hero__slide[src*="design-08"] { object-position: 55% 50%; }
.hero__slide[src*="work-10"] { object-position: 60% 50%; }
@media (max-width: 760px) {
  .hero--dark .hero__shade, html[dir="ltr"] .hero--dark .hero__shade { background:
    linear-gradient(180deg, rgba(10,20,48,.05) 0%, rgba(10,20,48,.42) 38%, rgba(10,20,48,.78) 100%); }
  .hero--dark .hero__title, .hero--dark .hero__lead, .hero--dark .hero__kicker { text-shadow: 0 2px 14px rgba(10,20,48,.8); }
}
@media (max-width: 760px) {
  .hero--dark .hero__shade, html[dir="ltr"] .hero--dark .hero__shade { background:
    linear-gradient(180deg, rgba(10,20,48,.38) 0%, rgba(10,20,48,.5) 40%, rgba(10,20,48,.8) 100%); }
  .hero--dark .hero__in p:first-child, .hero--dark .hero__title span { text-shadow: 0 1px 10px rgba(10,20,48,.95), 0 0 2px rgba(10,20,48,.9); }
}

/* Gentler push-in: the old 6–16% zoom enlarged already-small images and softened them. */
@keyframes herozoom2 { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero__slide { transform: none; }
.hero__slide.is-on { animation: herozoom2 9s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .hero__slide.is-on { animation: none; } }
