/*
Theme Name: Chaboun Construction v2
Template: chaboun
Author: Arius Automation
Description: Version 2 of the Chaboun Construction design: neutral rounded panels with brand accents and a layered sky hero. Child of the v1 theme, which provides content types, helpers and the enquiry form.
Version: 2.1.0
Text Domain: chaboun
*/

/* ---------- Tokens: neutral base, Chaboun accents ---------- */
:root {
    --bg: #ffffff;
    --panel: #f3f4f6;
    --panel-2: #e9ebef;
    --ink: #11141a;
    --muted: #5e6572;
    --line: #e3e6eb;
    --navy: #1f2f63;
    --navy-900: #141d40;
    --blue: #1377bd;
    --blue-100: #e6f1fa;
    --yellow: #ffbc13;
    --white: #ffffff;
    --font-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1280px;
    --gutter: clamp(16px, 3.4vw, 40px);
    --space: clamp(56px, 8vw, 112px);
    --r-sm: 12px;
    --r: 22px;
    --r-lg: 30px;
    --shadow: 0 30px 60px -34px rgba(17, 20, 26, .32);
    --shadow-sm: 0 12px 30px -20px rgba(17, 20, 26, .3);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 92px;
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 200; top: 8px; left: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }

.h-xl { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
.h-lg { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--muted); max-width: 58ch; }
.eyebrow { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 500 .78rem/1 var(--font-head); letter-spacing: .02em; color: var(--ink); margin-bottom: 1.3em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.eyebrow--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--white); }
.eyebrow--light::before { background: var(--yellow); }
.accent { color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 999px; font: 500 .95rem/1.1 var(--font-head); cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--accent { background: var(--yellow); color: var(--ink); font-weight: 600; box-shadow: 0 14px 28px -16px rgba(255, 188, 19, .95); }
.btn--accent:hover { background: #ffc93f; }
.btn--blue, .btn--dark { background: var(--navy); color: var(--white); }
.btn--blue:hover, .btn--dark:hover { background: var(--navy-900); }
.btn--ghost { background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn__arrow { width: 28px; height: 28px; margin: -6px -10px -6px 2px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn--accent .btn__arrow { background: rgba(17, 20, 26, .12); }
.btn:hover .btn__arrow { transform: rotate(-45deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .98rem var(--font-head); border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span, .card:hover .card__more span { transform: translateX(6px); }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); box-shadow: var(--shadow-sm); }
.round-btn:hover { background: var(--navy); color: var(--white); transform: scale(1.06); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn--prev svg { transform: rotate(180deg); }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

/* ---------- Header: floating bar; transparent over the sky hero ---------- */
.site-header { position: fixed; inset: 12px 0 auto 0; z-index: 100; transition: transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-140%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; padding-inline: 14px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(227, 230, 235, .9); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); transition: background .35s, border-color .35s, box-shadow .35s, color .35s; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .brand__white { display: none; }
.brand__name { font: 600 1.02rem/1.05 var(--font-head); letter-spacing: .01em; }
.brand__name small { display: block; font: 400 .66rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: 18px; }
.nav__menu > ul { display: flex; gap: 2px; }
.nav__menu > ul > li { position: relative; }
.nav__menu > ul > li > a { display: block; padding: 10px 13px; border-radius: 999px; font: 400 .93rem var(--font-head); transition: background .2s; }
.nav__menu > ul > li > a:hover, .nav__menu > ul > li.is-current > a { background: rgba(17, 20, 26, .07); }
.sub { position: absolute; top: calc(100% + 14px); left: 0; min-width: 250px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .22s var(--ease), visibility .22s; box-shadow: var(--shadow); }
.sub::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.sub--mega { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 10px; left: -140px; padding: 18px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: .92rem; }
.sub a:hover { background: var(--panel); }
.sub__title { font: 500 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 12px 6px; }
.nav__cta { padding: 13px 22px; }
.nav__toggle { display: none; }

/* On the home page, before scrolling, the bar melts into the sky. */
.home .site-header:not(.is-stuck) .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; color: var(--white); }
.home .site-header:not(.is-stuck) .brand .brand__white { display: block; }
.home .site-header:not(.is-stuck) .brand .brand__color { display: none; }
.home .site-header:not(.is-stuck) .brand__name small { color: rgba(255, 255, 255, .8); }
.home .site-header:not(.is-stuck) .nav__menu > ul > li > a:hover,
.home .site-header:not(.is-stuck) .nav__menu > ul > li.is-current > a { background: rgba(255, 255, 255, .18); }

/* ---------- Sky hero: sky > clouds > headline > building cut-out ---------- */
.sky { position: relative; height: 100vh; height: 100svh; min-height: 540px; max-height: 1100px; overflow: hidden; color: var(--white); background: linear-gradient(180deg, #1763c4 0%, #3d8fe0 46%, #9fcdf5 100%); isolation: isolate; }
.sky__clouds { position: absolute; inset: 0 auto 0 0; display: flex; height: 100%; width: max-content; z-index: 0; animation: sky-drift 150s linear infinite; will-change: transform; }
.sky__clouds img { height: 100%; width: auto; max-width: none; flex: none; }
.sky__clouds img:nth-child(even) { transform: scaleX(-1); }
.sky__clouds--far { opacity: .55; mix-blend-mode: screen; animation-duration: 240s; animation-direction: reverse; transform-origin: top left; scale: 1.5; }
@keyframes sky-drift { to { transform: translateX(-50%); } }
.sky__title { position: absolute; z-index: 2; left: 0; right: 0; top: var(--title-top, 15%); margin: 0; padding-inline: var(--gutter); text-align: center; font: 700 min(7.7vw, 24vh)/.92 var(--font-head); letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; color: var(--white); text-shadow: 0 4px 34px rgba(10, 50, 120, .5), 0 1px 2px rgba(10, 50, 120, .25); }
.sky__title .line { display: inline-block; overflow: hidden; padding-bottom: .06em; vertical-align: top; }
.sky__title .line > span { display: inline-block; }
/* The cut-out hangs from the top of this box so the roofline is never cropped;
   whatever does not fit is cut off at the bottom of the hero. */
.sky__building { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: var(--building-top, 24svh); will-change: transform; }
.sky__building img { position: absolute; top: 0; left: 50%; translate: var(--building-shift, -50%) 0; width: max(100%, calc((100svh - var(--building-top, 24svh)) / .536)); max-width: none; height: auto; }
/* Soft shade at the very top keeps the menu readable over bright clouds. */
.sky::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 190px; background: linear-gradient(180deg, rgba(10, 40, 100, .5), transparent); pointer-events: none; }
.sky::after { content: ""; position: absolute; z-index: 4; inset: 45% 0 0 0; background: linear-gradient(180deg, transparent, rgba(12, 18, 40, .72)); pointer-events: none; }
.sky__foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(18px, 4vh, 44px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sky__lead { max-width: 21ch; font: 500 clamp(1.25rem, min(2.5vw, 4.2vh), 2.2rem)/1.08 var(--font-head); letter-spacing: -.02em; margin: 0 0 clamp(12px, 2.4vh, 22px); text-wrap: balance; }
.sky__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sky__thumbs { display: flex; gap: 12px; }
.sky__thumb { position: relative; width: clamp(120px, 12vw, 190px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
.sky__thumb:hover { transform: translateY(-8px); border-color: var(--yellow); }
.sky__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sky__thumb span { position: absolute; inset: auto 0 0 0; padding: 18px 10px 7px; font: 500 .72rem var(--font-head); background: linear-gradient(transparent, rgba(12, 18, 40, .85)); }
.sky__scroll { position: absolute; z-index: 5; left: 50%; bottom: 14px; translate: -50% 0; display: grid; justify-items: center; gap: 6px; font: 400 .68rem var(--font-head); letter-spacing: .08em; opacity: .9; }
.sky__scroll i { width: 20px; height: 32px; border: 1.5px solid var(--white); border-radius: 12px; position: relative; }
.sky__scroll i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ---------- Sections, panels ---------- */
.section { padding-block: var(--space); position: relative; }
.section--tight { padding-block: calc(var(--space) * .55); }
.section--soft { background: var(--panel); }
.section--navy { background: var(--navy-900); color: rgba(255, 255, 255, .84); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(26px, 4vw, 48px); flex-wrap: wrap; }
.section__head .h-xl, .section__head .h-lg { margin: 0; }
.section__head p { margin: 0; max-width: 36ch; color: var(--muted); font-size: .95rem; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.panel { background: linear-gradient(140deg, #f6f7f9, #eceef2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 48px); }
.ghost-word { position: absolute; z-index: 0; top: 4%; left: -1vw; font: 700 min(22vw, 340px)/.8 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(17, 20, 26, .07); writing-mode: vertical-rl; transform: rotate(180deg); pointer-events: none; user-select: none; }
.section > .wrap { position: relative; z-index: 1; }

/* Intro split (pin B hero) */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(14px, 1.6vw, 22px); }
.intro__text { display: flex; flex-direction: column; justify-content: center; }
.intro__text .btn { align-self: flex-start; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(24px, 4vw, 44px); }
.tile { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; }
.tile strong { display: block; font: 300 clamp(1.9rem, 3.4vw, 2.9rem)/1 var(--font-head); letter-spacing: -.03em; }
.tile strong em { font-style: normal; color: var(--blue); font-size: .7em; vertical-align: top; }
.tile > span { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.intro__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(360px, 44vw, 600px); background: var(--panel-2); }
.intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__pills { position: absolute; top: 16px; right: 16px; left: 16px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pill-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 500 .84rem var(--font-head); box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); transition: transform .25s var(--ease); }
a.pill-chip:hover { transform: translateY(-2px); }
.pill-chip svg { width: 15px; height: 15px; }

/* Bento (pin A) */
.bento { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(12px, 1.4vw, 18px); }
.bento__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(340px, 40vw, 560px); background: var(--panel-2); }
.bento__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__photo .pill-chip { position: absolute; top: 18px; left: 18px; }
.bento__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 18px); }
.stat-tile { background: var(--panel); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 180px; transition: background .35s, color .35s, transform .35s var(--ease); }
.stat-tile:hover { background: var(--navy); color: var(--white); transform: translateY(-4px); }
.stat-tile strong { font: 400 clamp(1.5rem, 2.5vw, 2.2rem)/1.05 var(--font-head); letter-spacing: -.02em; }
.stat-tile p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 22ch; transition: color .35s; }
.stat-tile:hover p { color: rgba(255, 255, 255, .78); }

/* What we build (pin B: text + drawing + dark cards) */
.build { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.build__drawing { margin-top: 26px; color: var(--ink); opacity: .85; }
.build__drawing svg { width: min(100%, 560px); height: auto; }
.dark-cards { display: grid; gap: 14px; }
.dark-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 14px 20px 14px 14px; border-radius: var(--r); background: linear-gradient(135deg, #263468, var(--navy-900)); color: var(--white); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.dark-card:hover { transform: translateX(-8px); box-shadow: var(--shadow); }
.dark-card__thumb { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); background: var(--navy); }
.dark-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dark-card h3 { color: var(--white); font-size: 1.12rem; margin: 0 0 4px; }
.dark-card p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .74); line-height: 1.45; }
.dark-card__go { width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.dark-card:hover .dark-card__go { transform: rotate(-45deg); background: var(--yellow); }
.dark-card__go svg { width: 16px; height: 16px; }

/* Catalogue rail (pin B) */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(20px, 3.4vw, 48px)); padding-inline: clamp(20px, 3.4vw, 48px); scroll-padding-inline: clamp(20px, 3.4vw, 48px); }
.rail::-webkit-scrollbar { display: none; }
.rail__item { position: relative; flex: none; width: clamp(210px, 22vw, 290px); aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: var(--panel-2); color: var(--white); }
.rail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rail__item:hover img { transform: scale(1.08); }
.rail__item::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(12, 18, 40, .9)); }
.rail__caption { position: absolute; z-index: 1; inset: auto 16px 14px 16px; }
.rail__caption strong { display: block; font: 500 1.05rem/1.2 var(--font-head); }
.rail__caption span { font-size: .78rem; opacity: .8; }
.rail__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.rail__nav { display: flex; gap: 10px; }

/* Project cards with icon rows (pin A) */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.pcard__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard h3 { font-size: 1.15rem; margin: 16px 0 10px; }
.pcard__rows { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.pcard__rows li { display: flex; align-items: center; gap: 9px; }
.pcard__rows svg { width: 16px; height: 16px; color: var(--ink); }

/* Alternating light/dark cards (pin B) */
.alt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.alt-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 250px; padding: 22px 22px 70px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.alt-card:nth-child(even) { background: linear-gradient(150deg, #263468, var(--navy-900)); border-color: transparent; color: rgba(255, 255, 255, .8); }
.alt-card:nth-child(even) h3 { color: var(--white); }
.alt-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.alt-card h3 { font-size: 1.14rem; margin: 0; }
.alt-card p { margin: 0; font-size: .88rem; line-height: 1.55; }
.alt-card__go { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; transition: transform .3s var(--ease); }
.alt-card:nth-child(even) .alt-card__go { background: var(--white); color: var(--ink); }
.alt-card:hover .alt-card__go { transform: rotate(-45deg); }
.alt-card__go svg { width: 15px; height: 15px; }

/* Steps with bracketed numbers (pin B) */
.steps2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.step2 { border-top: 1px solid var(--line); padding-top: 22px; }
.step2__num { display: inline-flex; align-items: center; font: 300 2.6rem/1 var(--font-head); color: #c5cad3; margin-bottom: 18px; transition: color .3s; }
.step2__num::before { content: "["; margin-right: 6px; }
.step2__num::after { content: "]"; margin-left: 6px; }
.step2:hover .step2__num { color: var(--blue); }
.step2 h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step2 p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Testimonials, areas */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 18px; transition: transform .35s var(--ease), box-shadow .35s; }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote__mark { width: 34px; height: 34px; color: var(--blue); }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 600 1rem var(--font-head); flex: none; }
.quote figcaption strong { display: block; color: var(--ink); font: 500 .98rem var(--font-head); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area { position: relative; border-radius: var(--r); padding: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 44px; overflow: hidden; transition: color .35s, transform .35s var(--ease); }
.area::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateY(101%); transition: transform .45s var(--ease); }
.area:hover::before { transform: none; }
.area:hover { color: var(--white); transform: translateY(-6px); }
.area > * { position: relative; }
.area svg { width: 30px; height: 30px; color: var(--blue); transition: color .35s; }
.area:hover svg { color: var(--yellow); }
.area__name { font: 500 1.3rem var(--font-head); display: block; }
.area__more { font: 400 .82rem var(--font-head); color: var(--muted); transition: color .35s; }
.area:hover .area__more { color: rgba(255, 255, 255, .8); }

/* Cards (services, posts) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--panel-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__tag { position: absolute; z-index: 1; top: 14px; left: 14px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 500 .72rem var(--font-head); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.card__body { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.card__title { font-size: 1.16rem; margin-bottom: 8px; }
.card__text { font-size: .9rem; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin-top: auto; font: 500 .88rem var(--font-head); display: inline-flex; gap: 8px; }
.card__more span { transition: transform .25s var(--ease); }

/* Enquiry */
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; background: linear-gradient(150deg, #263468, var(--navy-900)); color: rgba(255, 255, 255, .84); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 60px); }
.enquiry h2 { color: var(--white); }
.enquiry__list { display: grid; gap: 16px; margin-top: 24px; }
.enquiry__list li { display: flex; gap: 14px; align-items: center; }
.enquiry__list svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--yellow); flex: none; }
.enquiry__list small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.enquiry__list a, .enquiry__list span { font: 500 1.05rem var(--font-head); color: var(--white); }
.enquiry__list a:hover { color: var(--yellow); }
.quote-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 2.2vw, 30px); box-shadow: var(--shadow); display: grid; gap: 12px; scroll-margin-top: 120px; border: 1px solid var(--line); }
.quote-card .quote-card__title { font-size: 1.35rem; margin: 0; color: var(--ink); }
.quote-card__sub { font-size: .88rem; color: var(--muted); margin: -6px 0 2px; }
.quote-card label { display: grid; gap: 5px; font: 500 .8rem var(--font-head); color: var(--ink); }
.quote-card input, .quote-card select, .quote-card textarea { width: 100%; font: 400 .98rem var(--font-body); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus { outline: 0; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(19, 119, 189, .14); }
.quote-card .btn { width: 100%; }
.quote-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-card__small { font-size: .76rem; color: var(--muted); margin: 0; text-align: center; }
.quote-card__small a { text-decoration: underline; }
.form__trap { position: absolute; left: -9999px; }
.form__notice { margin: 0; padding: 12px 14px; border-radius: 14px; font-weight: 500; font-size: .92rem; }
.form__notice--ok { background: #e2f4e6; color: #17592a; }
.form__notice--error { background: #fde7e2; color: #8a2a12; }

.cta-band { padding-block: 0 var(--space); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(150deg, #263468, var(--navy-900)); color: var(--white); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 56px); }
.cta-band__title { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 0; max-width: 18ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { background: var(--panel); border-top: 1px solid var(--line); color: var(--muted); padding-top: clamp(44px, 6vw, 80px); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.site-footer .brand img { height: 84px; }
.site-footer address { margin-top: 18px; line-height: 1.9; }
.site-footer__title { font: 500 .95rem var(--font-head); color: var(--ink); margin-bottom: 12px; }
.site-footer li { padding: 4px 0; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--ink); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--line); font-size: .8rem; }
.mobile-bar { display: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + 8px) var(--gutter) 0; }
.page-hero__card { position: relative; width: min(100%, var(--wrap)); margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(140deg, #f6f7f9, #e6e9ee); min-height: clamp(260px, 32vw, 420px); display: flex; align-items: flex-end; isolation: isolate; }
.page-hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image .page-hero__card { color: var(--white); }
.page-hero.has-image .page-hero__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 18, 40, .82) 0%, rgba(12, 18, 40, .45) 55%, rgba(12, 18, 40, .15) 100%); }
.page-hero__inner { padding: clamp(22px, 4vw, 54px); max-width: 760px; }
.page-hero__title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin: 0; color: inherit; }
.page-hero__intro { margin: 14px 0 0; max-width: 52ch; font-size: 1.04rem; opacity: .86; }
.crumbs { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink); margin-bottom: 16px; backdrop-filter: blur(6px); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.06rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 40px; }
.prose ol li::before { content: counter(item); position: absolute; left: 0; top: .05em; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); font: 500 .78rem/26px var(--font-head); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .94rem; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); display: block; overflow-x: auto; }
.prose thead th { background: var(--navy); color: var(--white); font: 500 .84rem var(--font-head); text-align: left; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.prose tbody tr:nth-child(even) { background: var(--panel); }
.aside-cta { position: sticky; top: 110px; background: linear-gradient(150deg, #263468, var(--navy-900)); color: rgba(255, 255, 255, .82); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.aside-cta h2 { font-size: 1.4rem; color: var(--white); }
.aside-cta p { font-size: .93rem; }
.aside-cta .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--white); }
.aside-cta .eyebrow::before { background: var(--yellow); }
.aside-cta .btn { width: 100%; }
.aside-cta__phone { display: block; text-align: center; margin-top: 14px; font: 500 1.15rem var(--font-head); color: var(--white); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.photo-grid__item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--panel-2); cursor: zoom-in; position: relative; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo-grid__item:hover img { transform: scale(1.08); }
.photo-grid--masonry .photo-grid__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10, 14, 28, .95); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; line-height: 1; }

.project-list { display: grid; gap: clamp(36px, 6vw, 88px); }
.project-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(22px, 5vw, 60px); align-items: center; }
.project-row:nth-child(even) .project-row__media { order: 2; }
.project-row__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--panel-2); }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-row:hover img { transform: scale(1.05); }
.project-row__body p { color: var(--muted); }
.strip__index { display: inline-block; font: 500 .76rem var(--font-head); background: var(--panel); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 500 .94rem var(--font-head); border-top: 1px solid var(--line); padding-top: 24px; }
.pager a:hover { color: var(--blue); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pill { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font: 400 .9rem var(--font-head); transition: background .2s, color .2s; }
.pill:hover, .pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination { margin-top: 44px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font: 500 .9rem var(--font-head); }
.pagination .page-numbers { min-width: 44px; text-align: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; }
.pagination .current, .pagination a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact dl { margin: 0 0 24px; display: grid; gap: 12px; }
.contact__item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.contact__item svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--panel); color: var(--navy); flex: none; }
.contact dt { font-size: .76rem; color: var(--muted); }
.contact dd { margin: 2px 0 0; font: 500 1.02rem var(--font-head); }

/* ---------- Motion start states (only when motion is allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(30px); }
.motion [data-reveal="left"] { transform: translateX(-36px); }
.motion [data-reveal="right"] { transform: translateX(36px); }
.motion [data-reveal="zoom"] { transform: scale(.94); }
.motion [data-wipe] { clip-path: inset(0 0 100% 0 round 22px); }
.motion [data-split] .word > span { display: inline-block; transform: translateY(110%); }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
/* Hero entrance is CSS only, so it never depends on the script. */
.motion .sky__title .line > span { animation: sky-rise 1.1s var(--ease) .15s both; }
.motion .sky__title .line:nth-child(2) > span { animation-delay: .28s; }
.motion .sky__title .line:nth-child(3) > span { animation-delay: .41s; }
/* The building stays hidden until its image has fully loaded (never half-drawn),
   then rises in. Without the script-free onload hook it would simply appear. */
.sky__building { opacity: 0; transition: opacity .9s var(--ease), translate 1.2s var(--ease); translate: 0 6%; }
.sky__building.is-loaded { opacity: 1; translate: 0 0; }
.motion .sky__foot > *, .motion .sky__scroll { animation: sky-fade .8s var(--ease) .7s both; }
@keyframes sky-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes sky-up { from { transform: translateY(9%); } to { transform: none; } }
@keyframes sky-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-height: 640px) {
    .sky__thumbs, .sky__scroll { display: none; }
}
@media (max-width: 1180px) {
    :root { --header-h: 84px; }
    .nav { height: 62px; }
    .brand img { height: 40px; }
    .nav__toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: var(--navy); border: 0; border-radius: 50%; cursor: pointer; position: relative; z-index: 2; }
    .nav__toggle span:not(.screen-reader-text) { width: 18px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease); }
    .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
    .nav__menu { position: fixed; inset: -12px 0 0 0; height: 100dvh; background: var(--white); color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 96px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
    .nav__menu.is-open { transform: none; visibility: visible; }
    .nav__menu > ul { flex-direction: column; }
    .nav__menu > ul > li > a { padding: 15px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); }
    .sub, .sub--mega { position: static; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 8px 4px; min-width: 0; }
    .sub--mega > div + div { margin-top: 8px; }
    .nav__cta { margin-top: 20px; padding: 16px; }
    .card-grid, .quotes, .alt-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .layout-aside { grid-template-columns: 1fr; }
    .aside-cta { position: static; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .areas, .steps2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .intro, .bento, .build, .contact, .project-row, .enquiry { grid-template-columns: 1fr; }
    .project-row:nth-child(even) .project-row__media { order: 0; }
    .pcards { grid-template-columns: 1fr 1fr; }
    .sky__thumbs { display: none; }
    .ghost-word { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; padding-bottom: 62px; }
    .card-grid, .quotes, .alt-grid, .pcards, .quote-card__row, .steps2 { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tile { padding: 14px 12px; }
    .bento__tiles { grid-template-columns: 1fr 1fr; }
    .stat-tile { min-height: 150px; gap: 22px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .dark-card { grid-template-columns: 72px 1fr auto; gap: 12px; }
    .dark-card__thumb { width: 72px; height: 72px; }
    /* Phones: headline stacks, building sits lower and shows its loft side;
       the phone button is dropped because the bar below already has "Call now". */
    .sky__title { white-space: normal; font-size: min(16.5vw, 13.5vh); top: 13%; }
    .sky__title .line { display: block; }
    .sky { --building-top: 36svh; }
    .sky__actions .btn { flex: 1 1 0; padding: 15px 12px; }
    .sky__actions .btn--ghost { display: none; }
    .sky__foot { bottom: 80px; }
    .sky__scroll { display: none; }
    .rail__item { width: 68vw; }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; }
    .mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.3fr; box-shadow: 0 -10px 30px -12px rgba(17, 20, 26, .4); }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; font: 600 .92rem var(--font-head); }
    .mobile-bar a:first-child { background: var(--navy-900); color: var(--white); }
    .mobile-bar a:last-child { background: var(--yellow); color: var(--ink); }
    .mobile-bar svg { width: 18px; height: 18px; }
}

@media (max-width: 640px) and (orientation: portrait) {
    .sky { --building-shift: -66%; }
}

@media (prefers-reduced-motion: reduce) {
    .sky__building { translate: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    @view-transition { navigation: none; }
}
