/* Hoarding by Lomax: premium concept (test copy). Built on the 2026 brand guide:
   Roboto headings, Dosis text, Structural Orange used sparingly, slate and white, cut corners. */

@font-face { font-family: "Dosis"; src: url("/assets/fonts/dosis.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --orange: #f05c22;      /* Structural Orange */
  --navy: #013453;        /* Structural Navy */
  --slate: #192832;       /* Industrial Slate */
  --grey: #757e83;        /* Engineering Grey (large text only) */
  --text: #4c565c;        /* body text, readable on white */
  --line: #e4e6e7;
  --paper: #f6f6f4;
  --head: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Dosis", "Trebuchet MS", sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --space: clamp(88px, 11vw, 160px);
  --cut: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.cx-skip { position: absolute; left: -9999px; }
.cx-skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--slate); }

.cx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.cx-narrow { max-width: 1040px; }
.cx-section { padding: var(--space) 0; }

/* Type */
.cx-eyebrow { margin-bottom: 22px; font: 600 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.cx-eyebrow-light { color: #fff; opacity: .85; }
.cx-display { font: 400 clamp(44px, 6.4vw, 96px)/1.02 var(--head); letter-spacing: -.025em; color: #fff; }
.cx-display-sm { font-size: clamp(36px, 4.6vw, 68px); }
.cx-h2 { font: 400 clamp(32px, 3.6vw, 52px)/1.1 var(--head); letter-spacing: -.02em; color: var(--slate); }
.cx-h2-light { color: #fff; }
.cx-hl { color: var(--orange); font-weight: 500; }
.cx-hl-dark { color: var(--orange); font-weight: 500; }
.cx-lead { max-width: 560px; margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.cx-lead-light { color: rgba(255, 255, 255, .86); }
.cx-sub { max-width: 620px; margin-top: 18px; font-size: 19px; }
.cx-body { margin-top: 26px; font-size: 19px; }
.cx-body-light { margin-top: 26px; font-size: 19px; color: rgba(255, 255, 255, .78); }
.cx-head { margin-bottom: clamp(48px, 6vw, 80px); }
.cx-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Buttons and links (guide: cut-corner shape, "Discover the Lomax System →" links) */
/* Buttons follow the brand guide: a plain rounded rectangle (no cut corner), solid Structural Orange, bold white text in normal case */
.cx-btn { display: inline-flex; align-items: center; padding: 17px 30px; border-radius: 8px; background: var(--orange); color: #fff; font: 700 16px/1 var(--body); letter-spacing: .01em; transition: background-color .3s var(--ease); }
.cx-btn:hover { background: #d94c15; }
.cx-btn-sm { padding: 12px 20px; border-radius: 7px; font-size: 15px; }
.cx-link { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--body); letter-spacing: .03em; color: var(--slate); border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .3s, gap .3s var(--ease); }
.cx-link:hover { color: var(--orange); gap: 16px; }
.cx-link-light { color: #fff; }
.cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 44px; }

/* Placeholders: clearly marked so nothing unconfirmed slips through */
.ph { display: inline-block; padding: 0 6px; border: 1px dashed currentColor; border-radius: 3px; background: rgba(240, 92, 34, .12); color: var(--orange); font-weight: 600; }

/* Header */
.cx-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s; }
.cx-header-in { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.cx-logo img { width: 168px; height: auto; }
.cx-logo-dark { display: none; }
.cx-nav { display: flex; align-items: center; gap: 34px; }
.cx-nav a:not(.cx-btn) { font: 500 16px/1 var(--body); letter-spacing: .03em; color: #fff; opacity: .9; transition: opacity .3s, color .3s; }
.cx-nav a:not(.cx-btn):hover { opacity: 1; color: var(--orange); }
.cx-header.is-solid, .cx-header.menu-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
.cx-header.is-solid .cx-logo-light, .cx-header.menu-open .cx-logo-light { display: none; }
.cx-header.is-solid .cx-logo-dark, .cx-header.menu-open .cx-logo-dark { display: block; }
/* Over a photo, a soft shadow keeps the menu readable on bright frames */
.cx-header:not(.is-solid):not(.menu-open) .cx-nav a:not(.cx-btn) { text-shadow: 0 1px 10px rgba(25, 40, 50, .7), 0 0 2px rgba(25, 40, 50, .35); }
.cx-header.is-solid .cx-nav a:not(.cx-btn), .cx-header.menu-open .cx-nav a:not(.cx-btn) { color: var(--slate); }
.cx-menu { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.cx-menu span { display: block; width: 24px; height: 2px; margin: 6px auto; background: #fff; transition: transform .3s, background-color .3s; }
.cx-header.is-solid .cx-menu span, .cx-header.menu-open .cx-menu span { background: var(--slate); }
.cx-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.cx-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.cx-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(680px, 100svh); color: #fff; overflow: hidden; }
.cx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: cx-zoom 14s var(--ease) forwards; }
@keyframes cx-zoom { to { transform: scale(1); } }
.cx-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 40, 50, .55) 0%, rgba(25, 40, 50, 0) 20%), linear-gradient(90deg, rgba(25, 40, 50, .82) 0%, rgba(25, 40, 50, .66) 34%, rgba(25, 40, 50, .2) 58%, rgba(25, 40, 50, 0) 80%), linear-gradient(0deg, rgba(25, 40, 50, .48) 0%, rgba(25, 40, 50, 0) 28%); }
/* Phones: the text runs the full width, so shade the whole photo evenly for readable headlines */
@media (max-width: 700px) { .cx-hero-shade { background: linear-gradient(180deg, rgba(25, 40, 50, .55) 0%, rgba(25, 40, 50, .44) 45%, rgba(25, 40, 50, .68) 100%); } }
.cx-hero-in { position: relative; padding-top: 160px; padding-bottom: 72px; }
.cx-hero-bar { position: relative; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(25, 40, 50, .35); backdrop-filter: blur(6px); }
.cx-hero-facts { display: flex; justify-content: space-between; align-items: stretch; }
.cx-fact-rule { width: 1px; background: rgba(255, 255, 255, .18); }
.cx-hero-facts p { padding: 26px 0; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.cx-hero-facts strong { display: block; margin-bottom: 4px; font: 500 22px/1.2 var(--head); color: #fff; }
.cx-hero-facts .ph { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(240, 92, 34, .45); }

/* Statement */
.cx-statement-text { font: 400 clamp(28px, 3.2vw, 46px)/1.25 var(--head); letter-spacing: -.015em; color: var(--slate); }

/* Partners */
.cx-partners { background: var(--paper); }
.cx-clients-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.cx-clients-title { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.cx-route { margin: 0; color: rgba(25, 40, 50, .34); }
.cx-route-land { fill: url(#cx-land); stroke: rgba(25, 40, 50, .18); stroke-width: 1; stroke-linejoin: round; }
.cx-route svg { display: block; width: 100%; height: auto; overflow: visible; }
.cx-route-line { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.cx-route.in .cx-route-line { stroke-dashoffset: 0; }
.cx-route-node { fill: var(--orange); }
.cx-route text { paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.cx-route-ring { fill: rgba(240, 92, 34, .14); transform-box: fill-box; transform-origin: center; animation: cx-pulse 2.6s ease-out infinite; }
.cx-route-dot { fill: var(--orange); offset-path: path("M423.6 208.0 Q308 8 113.0 97.7"); offset-distance: 0%; opacity: 0; }
.cx-route.in .cx-route-dot { animation: cx-travel 4.5s var(--ease) 2.1s infinite; }
.cx-route-label { font: 600 13px var(--body); letter-spacing: .2em; text-transform: uppercase; fill: var(--slate); }
@keyframes cx-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes cx-travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cx-route-ring, .cx-route.in .cx-route-dot { animation: none; } .cx-route-line { transition: none; stroke-dashoffset: 0; } }
.cx-partner-row { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid rgba(25, 40, 50, .12); }
.cx-partner-row:last-child { border-bottom: 1px solid rgba(25, 40, 50, .12); }
.cx-country { position: relative; padding-left: 58px; }
.cx-country-code { position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--orange); color: var(--orange); font: 600 12px/40px var(--body); letter-spacing: .12em; text-align: center; }
.cx-country h3 { font: 400 24px/1.2 var(--head); color: var(--slate); }
.cx-country p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--text); }
.cx-wordmarks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 32px; }
.cx-logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 28px; }
.cx-logos li { display: flex; align-items: center; height: 56px; }
.cx-logos img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.2); opacity: .7; transition: filter .3s, opacity .3s; }
/* Optical sizes: each logo has different built-in padding and weight */
.cx-pl-westfield img { height: calc(34px * var(--s, 1)); }
.cx-pl-stockland img { height: calc(46px * var(--s, 1)); }
.cx-pl-vicinity img { height: calc(46px * var(--s, 1)); }
.cx-pl-gpt img { height: calc(40px * var(--s, 1)); }
.cx-pl-qic img { height: calc(30px * var(--s, 1)); }
.cx-pl-jll img { height: calc(34px * var(--s, 1)); }
.cx-logos-start { justify-content: flex-start; gap: 24px 72px; }
.cx-pl-emaar img { height: calc(24px * var(--s, 1)); }
.cx-pl-majid-al-futtaim img { height: calc(34px * var(--s, 1)); }
.cx-pl-meraas img { height: calc(30px * var(--s, 1)); }
.cx-pl-cbre img { height: calc(22px * var(--s, 1)); }
/* Narrower screens: shrink every logo by the same factor so the row stays on one line on laptops */
@media (max-width: 1320px) { .cx-logos { --s: .78; gap: 20px 18px; } }
@media (max-width: 1250px) { .cx-partner-row { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 560px) { .cx-logos { --s: .62; } }
.cx-logos li:hover img { filter: none; opacity: 1; }
.cx-wordmarks li { font: 500 20px/1.3 var(--head); letter-spacing: .01em; color: var(--slate); opacity: .82; }

/* System (dark) */
.cx-system { background: var(--slate); color: #fff; }
.cx-system-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cx-system-media { position: relative; padding: clamp(28px, 5vw, 64px); background: linear-gradient(160deg, #f7f7f5 0%, #e9eaea 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-system-media img { position: relative; width: 100%; }
/* A product render on one flat colour, centred in the box */
.cx-system-render { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #eceeef; }
.cx-system-render img { width: 88%; height: auto; }
.cx-system-fill { padding: 0; }
.cx-system-fill img { width: 84%; }
.cx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .14); }
.cx-facts div { padding: 22px 20px 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cx-facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.cx-facts dt { font: 500 22px/1.2 var(--head); color: #fff; }
.cx-facts dd { margin: 6px 0 0; font-size: 16px; color: rgba(255, 255, 255, .7); }
.cx-materials { margin: 26px 0 36px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .72); max-width: 520px; }

/* Craftsmanship */
.cx-craft-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cx-craft-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-ticks { margin-top: 34px; border-top: 1px solid var(--line); }
.cx-ticks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--slate); }
.cx-ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 2px; background: var(--orange); }

/* Comparison */
.cx-compare { background: var(--paper); }
.cx-vs { color: var(--grey); font-size: .6em; vertical-align: middle; padding: 0 .2em; }
.cx-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cx-compare-col { padding: clamp(32px, 4vw, 56px); background: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-compare-col h3 { margin-bottom: 26px; font: 500 24px/1.2 var(--head); color: var(--grey); }
.cx-compare-col li { padding: 15px 0; border-top: 1px solid var(--line); font-size: 18px; color: var(--grey); }
.cx-compare-lomax { background: var(--slate); }
.cx-compare-lomax h3 { color: var(--orange); }
.cx-compare-lomax li { color: #fff; border-color: rgba(255, 255, 255, .14); }

/* Traditional vs Lomax: each row reads straight across, with the topic in the middle */
.cx-vs { --mid: 150px; --in: clamp(28px, 3.6vw, 56px); position: relative; padding: clamp(28px, 3.4vw, 48px) 0; }
.cx-vs-bg { position: absolute; top: 0; bottom: 0; width: calc((100% - var(--mid)) / 2); clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 64px 100%, 0 calc(100% - 64px)); }
.cx-vs-bg-trad { left: 0; background: #fff; }
.cx-vs-bg-lomax { right: 0; background: var(--slate); }
.cx-vs-row { position: relative; display: grid; grid-template-columns: 1fr var(--mid) 1fr; align-items: stretch; }
.cx-vs-row > * { margin: 0 var(--in); }
.cx-vs-row > .cx-vs-topic { margin: 0; }
.cx-vs-headrow h3 { padding: 10px 0 24px; font: 500 24px/1.2 var(--head); }
.cx-vs-headrow .cx-vs-trad { color: var(--grey); }
.cx-vs-headrow .cx-vs-lomax { color: var(--orange); }
.cx-vs-row:not(.cx-vs-headrow) .cx-vs-trad, .cx-vs-row:not(.cx-vs-headrow) .cx-vs-lomax { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.4; }
.cx-vs-row:not(.cx-vs-headrow) .cx-vs-trad { color: var(--grey); }
.cx-vs-row:not(.cx-vs-headrow) .cx-vs-lomax { color: #fff; border-color: rgba(255, 255, 255, .14); }
.cx-vs-dash { flex: none; width: 14px; height: 1.5px; background: #c3c8ca; }
.cx-vs-dash-lomax { background: var(--orange); }
.cx-vs-badge { position: absolute; top: clamp(34px, 4vw, 54px); right: var(--in); z-index: 1; width: 58px; color: #fff; }
.cx-vs-badge svg { display: block; width: 100%; height: auto; }
.cx-vs-topic { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; padding-left: 22px; font: 600 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.cx-vs-topic svg { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); fill: none; stroke: var(--slate); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cx-vs-row:not(.cx-vs-headrow) .cx-vs-topic { position: relative; }
.cx-vs-row:not(.cx-vs-headrow) .cx-vs-topic::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: 0; border-top: 1px dashed #d5d9db; z-index: -1; }
.cx-vs-row { isolation: isolate; }
.cx-vs-topic span { padding: 2px 6px 2px 0; background: var(--paper); }
.cx-vs-topic svg { width: 18px; height: 18px; padding: 8px; }
.cx-vs { --mid: 170px; }

/* Selected work */
.cx-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cx-work-wide { grid-column: span 2; grid-row: span 3; }
.cx-work-item { overflow: hidden; }
.cx-work-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.cx-work-wide img { aspect-ratio: auto; min-height: 100%; }
.cx-work-item:hover img { transform: scale(1.03); }
.cx-work-item { position: relative; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-work-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px max(24px, calc(var(--cx-cut, 0px) + 6px)); background: linear-gradient(0deg, rgba(25, 40, 50, .75), rgba(25, 40, 50, 0)); color: rgba(255, 255, 255, .8); font-size: 15px; }
.cx-work-item figcaption strong { display: block; font: 500 20px/1.3 var(--head); color: #fff; }

/* Services */
/* Services on the light grey, so it stands apart from the white "Our approach" above and the work gallery below */
.cx-services { background: var(--paper); }
.cx-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.cx-row[id] { scroll-margin-top: 140px; }
.cx-service { display: block; }
.cx-service-img { display: block; overflow: hidden; margin-bottom: 26px; background: var(--paper); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.cx-service-render img { object-fit: contain; padding: 8%; }
.cx-service:hover .cx-service-img img { transform: scale(1.04); }
.cx-service h3 { font: 500 26px/1.2 var(--head); color: var(--slate); }
.cx-service p { margin: 10px 0 22px; font-size: 18px; }
.cx-service:hover .cx-link { color: var(--orange); gap: 16px; }

/* Numbers */
.cx-numbers { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cx-numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cx-numbers-grid > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.cx-number { font: 400 clamp(48px, 5.4vw, 80px)/1 var(--head); letter-spacing: -.03em; color: var(--slate); margin-bottom: 14px; }
.cx-number .ph { font-size: .6em; vertical-align: middle; }

/* Closing call to action */
.cx-cta { position: relative; overflow: hidden; background: var(--slate) linear-gradient(120deg, rgba(240, 92, 34, .12), rgba(240, 92, 34, 0) 45%); color: #fff; }
.cx-cta-mark { position: absolute; right: -6vw; bottom: -10%; width: min(54vw, 760px); color: #fff; opacity: .035; pointer-events: none; }
.cx-cta-mark svg { display: block; width: 100%; height: auto; }
.cx-cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cx-cta .cx-eyebrow { color: var(--orange); margin-bottom: 16px; }
.cx-cta.cx-section { padding: clamp(64px, 7vw, 104px) 0; }
.cx-cta .cx-display-sm { font-size: clamp(32px, 3.4vw, 50px); }
.cx-cta .cx-lead { margin-top: 18px; font-size: 18px; }
.cx-cta .cx-actions { margin-top: 28px; }
.cx-cta-contact { border-top: 1px solid rgba(255, 255, 255, .14); }
.cx-cta-contact li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cx-cta-contact a { display: flex; align-items: center; gap: 16px; padding: 15px 4px; color: #fff; transition: padding .4s var(--ease); }
.cx-cta-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); transition: background-color .3s, box-shadow .3s; }
.cx-cta-icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-cta-icon svg.cx-cta-solid { width: 22px; height: 22px; fill: #fff; stroke: none; }
.cx-cta-text { flex: 1; min-width: 0; font: 400 clamp(17px, 1.3vw, 19px)/1.25 var(--head); }
.cx-cta-text small { display: block; margin-bottom: 2px; font: 600 12px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cx-cta-arrow { font-size: 19px; color: rgba(255, 255, 255, .5); transition: color .3s, transform .4s var(--ease); }
.cx-cta-contact a:hover { padding-left: 12px; }
.cx-cta-contact a:hover .cx-cta-icon { background: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.cx-cta-contact a:hover .cx-cta-arrow { color: var(--orange); transform: translateX(6px); }
@media (max-width: 560px) { .cx-cta-text { font-size: 16px; } .cx-cta-icon { width: 42px; height: 42px; } .cx-cta-contact a { gap: 12px; } }
@media (max-width: 1080px) { .cx-cta-grid { grid-template-columns: 1fr; } .cx-cta-mark { width: 90vw; right: -30vw; bottom: -4%; } }

/* Footer */
.cx-footer { background: #0f1a21; color: rgba(255, 255, 255, .7); padding: 88px 0 36px; font-size: 16px; }
.cx-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cx-footer-brand img { width: 180px; }
.cx-footer-brand p { margin-top: 22px; font: 400 20px/1.35 var(--head); color: #fff; max-width: 260px; }
.cx-footer-col h2 { margin-bottom: 20px; font: 600 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.cx-footer-col a, .cx-footer-col p { display: block; margin-bottom: 10px; }
.cx-footer-col a:hover { color: #fff; }
.cx-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 14px; }
.cx-footer-bottom a:hover { color: #fff; }

/* Gentle reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .cx-nav { position: fixed; inset: 88px 0 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--pad) 28px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: .3s var(--ease); }
  .cx-nav.open { visibility: visible; opacity: 1; transform: none; }
  .cx-nav a:not(.cx-btn) { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--slate) !important; font-size: 18px; }
  .cx-nav .cx-btn { margin-top: 20px; }
  .cx-menu { display: block; }
  .cx-system-grid, .cx-craft-grid { grid-template-columns: 1fr; }
  .cx-wordmarks { grid-template-columns: repeat(2, 1fr); }
  .cx-logos { justify-content: center; gap: 22px 0; }
  .cx-logos li { flex: 0 0 25%; justify-content: center; }
  .cx-logos li:nth-child(n+5) { flex-basis: 33.333%; }
  .cx-partner-row { grid-template-columns: 1fr; }
  .cx-partner-row { gap: 26px; }
  .cx-clients-head { grid-template-columns: 1fr; gap: 24px; }
  .cx-route { max-width: 520px; }
  .cx-work-grid { grid-template-columns: 1fr 1fr; }
  .cx-work-wide { grid-column: span 2; grid-row: auto; }
  .cx-work-wide img { aspect-ratio: 16 / 10; }
  .cx-footer-top { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .cx-header-in { height: 72px; }
  .cx-nav { top: 72px; }
  .cx-logo img { width: 140px; }
  .cx-hero-in { padding-bottom: 48px; }
  .cx-hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .cx-fact-rule { display: none; }
  .cx-hero-facts p { padding: 18px 0; }
  .cx-hero-facts p:nth-of-type(even) { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .18); }
  .cx-hero-facts p:nth-of-type(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .cx-compare-grid, .cx-service-grid, .cx-work-grid { grid-template-columns: 1fr; }
  .cx-vs { padding: 0; }
  .cx-vs-bg, .cx-vs-headrow, .cx-vs-badge { display: none; }
  .cx-vs-row { grid-template-columns: 1fr; margin-bottom: 14px; padding: 20px 22px; background: #fff; overflow: hidden; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
  .cx-vs-row > * { margin: 0; }
  .cx-vs-topic { order: -1; flex-direction: row; justify-content: flex-start; gap: 10px; margin-bottom: 8px; padding-left: 0; }
  .cx-vs-row:not(.cx-vs-headrow) .cx-vs-topic::before { display: none; }
  .cx-vs-topic svg { padding: 6px; }
  .cx-vs-topic span { background: none; }
  .cx-vs-row:not(.cx-vs-headrow) .cx-vs-trad { padding: 10px 0; font-size: 16px; }
  .cx-vs-row:not(.cx-vs-headrow) .cx-vs-lomax { margin: 4px -22px -20px; padding: 14px 22px; background: var(--slate); font-size: 17px; border-top: 0; }
  .cx-work-wide { grid-column: auto; }
  .cx-facts { grid-template-columns: 1fr; }
  .cx-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .cx-footer-top { grid-template-columns: 1fr; }
  .cx-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-hero-img { animation: none; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ===================== Inner pages ===================== */
.cx-nav a[aria-current="page"] { color: var(--orange) !important; opacity: 1; }
.cx-h1 { font: 400 clamp(40px, 5.2vw, 76px)/1.05 var(--head); letter-spacing: -.025em; color: var(--slate); }
.cx-h3 { font: 500 28px/1.2 var(--head); color: var(--slate); }
.cx-display-md { font-size: clamp(40px, 5.4vw, 80px); }

/* Page opening with a photo */
.cx-phero { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 78svh, 760px); color: #fff; overflow: hidden; }
.cx-phero-in { position: relative; padding-top: 160px; padding-bottom: clamp(56px, 8vw, 96px); }
/* Page opening without a photo */
.cx-phero-plain { min-height: clamp(400px, 58svh, 520px); background: var(--slate); }
.cx-lhero { padding: calc(88px + clamp(64px, 9vw, 130px)) 0 clamp(40px, 5vw, 72px); background: var(--paper); }
.cx-lhero .cx-lead { color: var(--text); }

/* Two columns: text and image */
.cx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cx-split-top { align-items: start; }
.cx-split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.cx-body + .cx-body { margin-top: 18px; }

/* Values */
.cx-values { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cx-values li { padding: 30px 24px 30px 0; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--head); color: var(--slate); }
.cx-values li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.cx-values span { display: block; margin-bottom: 18px; font: 600 13px/1 var(--body); letter-spacing: .2em; color: var(--orange); }

/* Build process steps */
.cx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.cx-step-img { display: block; overflow: hidden; margin-bottom: 18px; background: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-step-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cx-step p { font: 500 19px/1.35 var(--head); color: var(--slate); }
.cx-step p span, .cx-card-num { display: block; margin-bottom: 10px; font: 600 13px/1 var(--body); letter-spacing: .2em; color: var(--orange); }

/* Video */
.video-section .video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.video-section .video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-section .video:hover img { transform: scale(1.03); }
.video-section .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cx-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--orange); transition: transform .4s var(--ease); }
.cx-play::after { content: ""; position: absolute; left: 39px; top: 31px; border-left: 26px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.video-section .video:hover .cx-play { transform: scale(1.08); }

/* Specification lists */
.cx-spec { margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.cx-spec li { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 17px; color: rgba(255, 255, 255, .82); }
.cx-spec-dark { margin-top: 18px; border-color: var(--line); }
.cx-spec-dark li { border-color: var(--line); color: var(--text); font-size: 16px; padding: 10px 0; }

/* Cards (components, features, configurations) */
.cx-cards { display: grid; gap: 28px; }
.cx-cards-2 { grid-template-columns: repeat(2, 1fr); }
.cx-cards-3 { grid-template-columns: repeat(3, 1fr); }
.cx-cards-4 { grid-template-columns: repeat(4, 1fr); }
.cx-card { display: flex; flex-direction: column; }
.cx-card-white { padding: 22px 22px 26px; background: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-card-img { display: grid; place-items: center; margin-bottom: 22px; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #f7f7f5, #e9eaea);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.cx-card h3 { font: 500 21px/1.3 var(--head); color: var(--slate); }

/* Downloads */
.cx-docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.cx-docs a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font: 400 21px/1.3 var(--head); color: var(--slate); transition: color .3s, padding .3s var(--ease); }
.cx-docs a:hover { color: var(--orange); padding-left: 8px; }
.cx-docs-meta { flex: none; font: 600 13px/1 var(--body); letter-spacing: .2em; color: var(--orange); }
.cx-downloads { padding-top: 0; }

/* Alternating rows (services) */
.cx-rows { display: grid; gap: var(--space); }
.cx-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cx-row-flip .cx-row-media { order: 2; }
.cx-row-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-list-title { margin-top: 30px; font: 600 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.cx-row .cx-ticks { margin-top: 14px; }

/* Galleries */
.cx-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx-gallery-item { overflow: hidden; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.cx-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.cx-gallery-item:hover img { transform: scale(1.04); }
.cx-portfolio { padding-top: 0; }
.cx-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
/* Each tile is shaped as a whole and its name sits inside the photo, like the homepage work grid */
.cx-portfolio-item { position: relative; aspect-ratio: 4 / 3; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
/* Each photo is placed by src/_data/projects.js (width, height, left, top) so its hoarding sits in the middle of the tile */
.cx-portfolio-item img { position: absolute; max-width: none; transition: transform 1.2s var(--ease); }
.cx-portfolio-item:hover img { transform: scale(1.02); }
.cx-portfolio-item p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 24px 20px max(24px, calc(var(--cx-cut, 0px) + 6px)); background: linear-gradient(0deg, rgba(25, 40, 50, .75), rgba(25, 40, 50, 0)); font: 500 20px/1.3 var(--head); color: #fff; }

/* Contact */
.cx-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.cx-contact-info .cx-body { margin-top: 0; }
.cx-contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.cx-contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cx-contact-list dt { font: 600 13px/1.6 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.cx-contact-list dd { margin: 0; font-size: 18px; color: var(--slate); }
.cx-contact-list a:hover { color: var(--orange); }
.cx-form-card { padding: clamp(32px, 4vw, 56px); background: var(--paper); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cx-form { margin-top: 28px; }
.cx-form label { display: block; margin: 18px 0 8px; font: 600 14px/1.3 var(--body); letter-spacing: .04em; color: var(--slate); }
.cx-form input, .cx-form textarea { width: 100%; padding: 14px 16px; border: 1px solid #cfd3d5; border-radius: 10px; background: #fff; font: 400 17px/1.4 var(--body); color: var(--slate); transition: border-color .3s; }
.cx-form input:focus, .cx-form textarea:focus { outline: none; border-color: var(--orange); }
.cx-form textarea { resize: vertical; min-height: 140px; }
.cx-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cx-form .cx-btn { margin-top: 28px; border: 0; cursor: pointer; }
.cx-form .cx-btn[disabled] { opacity: .6; cursor: wait; }
.cx-hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 16px; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #b42318; }
.cx-map { padding-bottom: clamp(64px, 8vw, 120px); }
.cx-map-frame { background: var(--paper); }
.cx-map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 480px); border: 0; filter: grayscale(.4); }

/* Legal text */
.cx-legal { font-size: 17px; }
.cx-legal p { margin-bottom: 22px; }
.cx-legal strong { color: var(--slate); }
.cx-legal a { color: var(--orange); text-decoration: underline; }
.cx-legal h2 { font: 500 clamp(21px, 2vw, 25px)/1.25 var(--head); color: var(--slate); margin: 44px 0 14px; }
.cx-legal h3 { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 24px 0 10px; }
.cx-legal ul { margin: 0 0 22px; padding: 0; list-style: none; }
.cx-legal ul ul { margin: 8px 0 4px 22px; }
.cx-legal li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.cx-legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--orange); }
.cx-notfound { padding-top: 48px; }

@media (max-width: 1080px) {
  .cx-split, .cx-row, .cx-contact-grid { grid-template-columns: 1fr; }
  .cx-row-flip .cx-row-media { order: 0; }
  .cx-values { grid-template-columns: repeat(3, 1fr); }
  .cx-values li:nth-child(4) { padding-left: 0; border-left: 0; }
  .cx-values li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cx-steps, .cx-cards-4, .cx-gallery { grid-template-columns: repeat(2, 1fr); }
  .cx-cards-3, .cx-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cx-lhero { padding-top: calc(72px + 56px); }
  .cx-values { grid-template-columns: 1fr 1fr; }
  .cx-values li { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
  .cx-steps, .cx-cards-2, .cx-cards-3, .cx-cards-4, .cx-portfolio-grid, .cx-docs, .cx-form-2 { grid-template-columns: 1fr; }
  .cx-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cx-contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .cx-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .cx-play::after { left: 29px; top: 23px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
}

/* Full film */
.cx-film-meta { font: 600 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.cx-film-section { padding-top: 0; }
.cx-actions-tight { margin-top: 0; gap: 18px 30px; }
.cx-film-open { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; padding: 0 0 3px; }
.cx-film-dot { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); flex: none; }
.cx-film-dot::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.cx-film-dialog { width: min(92vw, 1600px, 150vh); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.cx-film-dialog::backdrop { background: rgba(10, 18, 24, .88); backdrop-filter: blur(4px); }
.cx-film-frame { aspect-ratio: 16 / 9; width: 100%; max-height: 86vh; background: #000; }
.cx-film-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.cx-film-close { position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; transition: background-color .3s; }
.cx-film-close:hover { background: var(--orange); }


/* ---------- Premium pass ---------- */
/* Balanced line breaks: no single words left alone on a heading or paragraph line */
h1, h2, h3, .cx-display, .cx-h2, .cx-statement-text { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:is(h1, h2) br + span { display: inline-block; text-wrap: balance; }
::selection { background: var(--orange); color: #fff; }

/* Eyebrows: a short rule before the label, as in editorial layouts */
.cx-eyebrow { display: flex; align-items: center; gap: 14px; }
.cx-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

/* Header: frosted glass and slightly slimmer once the page scrolls */
.cx-header-in { transition: height .4s var(--ease); }
.cx-header.is-solid { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(25, 40, 50, .08); }
.cx-header.is-solid .cx-header-in { height: 74px; }
.cx-header.menu-open { background: #fff; }

/* Links: the underline draws in from the left on hover */
.cx-link { border-bottom: 0; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s, gap .3s var(--ease), background-size .5s var(--ease); }
.cx-link:hover, .cx-service:hover .cx-link { background-size: 0 1px; animation: cx-underline .6s var(--ease) .15s forwards; }
@keyframes cx-underline { from { background-position: 0 100%; background-size: 0 1px; } to { background-position: 0 100%; background-size: 100% 1px; } }

/* Numbers: a short orange rule above each figure */
.cx-numbers-grid > div { position: relative; padding-top: 28px; }
.cx-numbers-grid > div::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--orange); }
.cx-numbers-grid > div + div::before { left: 32px; }
.cx-number { font-size: clamp(56px, 6.2vw, 96px); font-weight: 300; }
.cx-numbers-grid p:not(.cx-number) { font-size: 17px; letter-spacing: .02em; max-width: 220px; }
.cx-number { font-variant-numeric: tabular-nums; }
.cx-number-plus { margin-left: .04em; color: var(--orange); font-weight: 400; }

/* Footer: clearer text and a hairline where it meets the closing section */
.cx-footer { color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .06); }
.cx-footer-col a { transition: color .3s; }
.cx-film-open { border-bottom: 0; }

/* Images: slower, softer zoom on hover everywhere */
.cx-work-item img, .cx-service-img img, .cx-gallery-item img, .cx-portfolio-item img, .cx-row-media img { transition: transform 1.6s var(--ease); }
.cx-portfolio-item { overflow: hidden; }
.cx-row-media:hover img { transform: scale(1.03); }

@media (max-width: 700px) {
  .cx-header.is-solid .cx-header-in { height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-link:hover, .cx-service:hover .cx-link { animation: none; background-size: 100% 1px; }
}


/* Floating WhatsApp button: a brand-orange circle that opens into a pill on hover */
.cx-wa { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom)); z-index: 45;
  filter: drop-shadow(0 10px 22px rgba(25, 40, 50, .28)); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.cx-wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cx-wa-btn { display: flex; align-items: center; height: 64px; min-width: 64px; padding: 0 15px; border-radius: 32px; background: var(--orange); color: #fff; transition: background-color .3s; }
.cx-wa-btn svg { flex: none; width: 34px; height: 34px; }
.cx-wa-logo { fill: #fff; }
.cx-wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 15px/1 var(--body); letter-spacing: .04em; transition: max-width .5s var(--ease), margin .5s var(--ease); }
.cx-wa:hover .cx-wa-btn, .cx-wa:focus-visible .cx-wa-btn { background: #d94c15; }
.cx-wa:hover .cx-wa-label, .cx-wa:focus-visible .cx-wa-label { max-width: 180px; margin: 0 4px 0 10px; }
@media (prefers-reduced-motion: reduce) { .cx-wa, .cx-wa-label { transition: none; } }

/* Numbers: three across, stacked on phones */
@media (max-width: 600px) {
  .cx-numbers-grid { grid-template-columns: 1fr; gap: 36px; }
  .cx-numbers-grid > div + div { padding-left: 0; border-left: 0; }
  .cx-numbers-grid > div + div::before { left: 0; }
}

/* ---------- Premium pass 2: motion and finish ---------- */
/* Page openings: eyebrow, headline, text and buttons rise in one after another */
@keyframes cx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .cx-hero-in > *, .js .cx-phero-in > * { opacity: 0; animation: cx-rise 1.1s var(--ease) forwards; }
.js .cx-hero-in > :nth-child(1), .js .cx-phero-in > :nth-child(1) { animation-delay: .15s; }
.js .cx-hero-in > :nth-child(2), .js .cx-phero-in > :nth-child(2) { animation-delay: .3s; }
.js .cx-hero-in > :nth-child(3), .js .cx-phero-in > :nth-child(3) { animation-delay: .48s; }
.js .cx-hero-in > :nth-child(4), .js .cx-phero-in > :nth-child(4) { animation-delay: .62s; }
.js .cx-hero-bar { opacity: 0; animation: cx-rise 1.1s var(--ease) .85s forwards; }

/* Photos settle into place as they appear */
.js .reveal:not(.in) :is(.cx-work-item, .cx-service-img, .cx-portfolio-item, .cx-craft-media, .cx-system-media, .cx-split-media, .cx-row-media, .cx-step-img, .cx-gallery-item) img,
.js .reveal:not(.in):is(.cx-work-item, .cx-portfolio-item, .cx-gallery-item, .cx-craft-media, .cx-system-media, .cx-split-media, .cx-row-media) img { transform: scale(1.07); }
.js .reveal img { transition: transform 1.8s var(--ease); }

/* Menu links: an underline draws in on hover, and sits under the current page */
.cx-nav a:not(.cx-btn) { position: relative; }
.cx-nav a:not(.cx-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cx-nav a:not(.cx-btn):hover::after, .cx-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Type finish: proper kerning and ligatures everywhere */
body { font-kerning: normal; font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; }

@media (max-width: 1080px) { .cx-nav a:not(.cx-btn)::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .cx-hero-in > *, .js .cx-phero-in > *, .js .cx-hero-bar { opacity: 1; animation: none; }
  .js .reveal img { transform: none !important; transition: none; }
}

/* Page openings: dark while the photo loads, then the photo fades in */
.cx-phero, .cx-hero { background-color: var(--slate); }
.js img.cx-hero-img { opacity: 0; transition: opacity .9s var(--ease); }
.js img.cx-hero-img.is-loaded { opacity: 1; }
.js img.cx-hero-still { opacity: 1; transition: none; } /* the hero still shows at once: it is what phones see first */
@media (prefers-reduced-motion: reduce) { .js img.cx-hero-img { transition: none; } }

/* Opening text: keep it on the darker side of the photo and give it a soft shadow for contrast */
.cx-phero-in h1, .cx-hero-in h1 { max-width: 10.5em; }
.cx-phero-in .cx-lead, .cx-hero-in .cx-lead { max-width: 520px; }
.cx-phero:not(.cx-phero-plain) .cx-phero-in, .cx-hero-in { text-shadow: 0 2px 28px rgba(10, 18, 24, .45); }
.cx-hero-in .cx-btn { text-shadow: none; }
.cx-header:not(.is-solid) .cx-nav a:not(.cx-btn) { text-shadow: 0 1px 14px rgba(10, 18, 24, .5); }

/* Every inner page opening is the same height; the homepage stays full screen */
.cx-phero, .cx-phero-plain { min-height: clamp(520px, 78svh, 760px); }

/* Header logo over photos: lighter mark, a touch larger, with a soft shadow for clarity */
.cx-logo img { width: 182px; }
.cx-logo-light { filter: drop-shadow(0 1px 10px rgba(10, 18, 24, .45)); }
@media (max-width: 700px) { .cx-logo img { width: 150px; } }

/* Numbers: a small orange line icon above each figure (replaces the short dash) */
.cx-numbers-grid > div::before { display: none; }
.cx-numbers-grid > div { padding-top: 0; }
.cx-number-icon { display: block; width: 36px; height: 36px; margin-bottom: 18px; }
.cx-value-icon { display: block; width: 40px; height: 40px; margin-bottom: 20px; }
.cx-value-icon svg, .cx-number-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Clients: Middle East map with a Dubai pin, and one slow belt of every client logo */
.cx-me-map svg { overflow: hidden; }
.cx-me-map { max-width: 520px; justify-self: end; width: 100%; }
.cx-route-sublabel { font: 500 12px var(--body); letter-spacing: .12em; text-transform: uppercase; fill: var(--grey); }
.cx-ring-late { animation-delay: 1.3s !important; }
.cx-belt { position: relative; display: flex; overflow: hidden; margin-top: clamp(32px, 4vw, 56px); padding: 34px 0; border-top: 1px solid rgba(25, 40, 50, .12); border-bottom: 1px solid rgba(25, 40, 50, .12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cx-belt-track { flex: none; display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); padding-right: clamp(48px, 6vw, 88px); animation: cx-belt 42s linear infinite; }
.cx-belt:hover .cx-belt-track { animation-play-state: paused; }
.cx-belt li { display: flex; align-items: center; height: 56px; }
.cx-belt img { display: block; height: 30px; width: auto; max-width: none; object-fit: contain; filter: grayscale(1) contrast(1.2); opacity: .7; transition: filter .3s, opacity .3s; }
.cx-belt li:hover img { filter: none; opacity: 1; }
/* Belt logos sized to equal visual area (measured on each file's artwork), same method as the company profile */
.cx-belt .cx-pl-emaar img { height: 27px; } .cx-belt .cx-pl-westfield img { height: 42px; } .cx-belt .cx-pl-majid-al-futtaim img { height: 36px; }
.cx-belt .cx-pl-stockland img { height: 46px; } .cx-belt .cx-pl-meraas img { height: 33px; } .cx-belt .cx-pl-vicinity img { height: 44px; }
.cx-belt .cx-pl-gpt img { height: 46px; } .cx-belt .cx-pl-qic img { height: 39px; } .cx-belt .cx-pl-jll img { height: 43px; } .cx-belt .cx-pl-cbre img { height: 26px; }
@keyframes cx-belt { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 700px) { .cx-belt img { transform: scale(.8); } .cx-belt-track { animation-duration: 32s; } }
@media (prefers-reduced-motion: reduce) {
  .cx-belt { -webkit-mask-image: none; mask-image: none; }
  .cx-belt-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; padding-right: 0; }
  .cx-belt-track[aria-hidden] { display: none; }
}

.cx-me-map { -webkit-mask-image: radial-gradient(ellipse 72% 70% at 60% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 60% 50%, #000 58%, transparent 100%); color: rgba(25, 40, 50, .5); }
.cx-me-map .cx-route-label { font-size: 17px; }
.cx-me-map .cx-route-sublabel { font-size: 14px; }
.cx-me-map .cx-route-land { stroke: none; }
.cx-me-map text { paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }

/* ---------- Lomax System build animation (CSS 3D) ---------- */
.cx-build3d { background: var(--paper); overflow: hidden; }
.cx-b3-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.b3-steps { margin: 32px 0 28px; padding: 0; list-style: none; border-top: 1px solid rgba(25, 40, 50, .12); }
.b3-steps li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(25, 40, 50, .12); font: 400 18px/1.3 var(--head); color: rgba(25, 40, 50, .4); transition: color .5s; }
.b3-steps li span { font: 600 12px var(--body); letter-spacing: .16em; color: rgba(25, 40, 50, .35); transition: color .5s; }
.b3-steps li.is-done { color: var(--slate); }
.b3-steps li.is-on { color: var(--slate); }
.b3-steps li.is-on span, .b3-steps li.is-done span { color: var(--orange); }
.b3-steps li.is-on::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: auto; align-self: center; border-radius: 50%; background: var(--orange); }
.b3-replay { opacity: 0; pointer-events: none; transition: opacity .4s; border: 0; background-color: transparent; padding: 0 0 4px; cursor: pointer; }
.is-finished .b3-replay { opacity: 1; pointer-events: auto; }
.b3-stage { position: relative; height: clamp(420px, 46vw, 640px); cursor: grab; user-select: none; }
.b3-stage:active { cursor: grabbing; }
.b3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.b3-ready .b3-canvas { opacity: 1; }
.b3-nogl .b3-stage { display: none; }
.b3-hint { position: absolute; right: 0; bottom: 0; font: 600 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); opacity: 0; transition: opacity .4s; }
.is-finished .b3-hint { opacity: 1; }
@media (max-width: 1080px) { .cx-b3-grid { grid-template-columns: 1fr; } .b3-stage { height: 480px; } }
@media (max-width: 600px) { .b3-stage { height: 400px; } .b3-steps li { font-size: 16px; padding: 11px 0; } }

/* Phones: the six service cards sit two to a row, so the section stays short */
@media (max-width: 700px) {
  .cx-service-grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .cx-service-img { margin-bottom: 12px; }
  .cx-service h3 { font-size: 18px; }
  .cx-service p { margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
}
