/* Rizcon Engineering: core styles (tokens, base, layout, components). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format("woff2"); }

/* Metric-matched fallbacks (measured on the site's own text, tools/font-metrics.js): until the web fonts arrive,
   Arial is scaled to Barlow's width and line box, so the menu and the hero do not reflow when the fonts swap in (lesson C35). */
@font-face { font-family: "BC Fallback Narrow"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"); size-adjust: 82%; ascent-override: 122%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: "BC Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 67.5%; ascent-override: 148%; descent-override: 29.6%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 98.4%; ascent-override: 101.6%; descent-override: 20.3%; line-gap-override: 0%; }

:root {
	/* Brand: logo navy and the site's maroon, on concrete neutrals. */
	--navy: #0b2259;
	--navy-900: #071538;
	--navy-700: #17357a;
	--brick: #7b0808;
	--brick-700: #5c0505;
	--brick-tint: #f2b9b1;
	--ink: #11151c;
	--text: #2b303b;
	--muted: #586072;
	--muted-light: #c3cbdc;
	--line: #d9d5cd;
	--line-dark: rgba(255, 255, 255, .16);
	--concrete: #f3f1ec;
	--concrete-2: #e6e2d9;
	--white: #fff;

	--font-display: "Barlow Condensed", "BC Fallback Narrow", "BC Fallback", sans-serif;
	--font-body: "Barlow", "Barlow Fallback", sans-serif;

	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 8vw, 120px);
	--topbar-h: 40px;
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: .005em; word-spacing: normal; color: var(--ink); margin: 0 0 .5em; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; font: 600 1rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--brick); color: #fff; }
.btn--accent:hover { background: var(--brick-700); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--concrete); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font: 600 1rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--navy); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brick); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light, .link-arrow--light:hover { color: #fff; }

/* Kicker: label with the brand bar */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 .9375rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); }
.kicker::before { content: ""; width: 32px; height: 3px; background: currentColor; flex: none; }
.kicker--light { color: var(--brick-tint); }

/* Top bar */
.topbar { background: var(--navy-900); color: var(--muted-light); font-size: .875rem; }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: var(--topbar-h); }
.topbar__item { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__item .icon { width: 16px; height: 16px; color: var(--brick-tint); }
.topbar__item:first-child .icon { margin-left: -3px; } /* the pin glyph has 3 px of side bearing; align it with the logo edge */
.topbar__item--mail { margin-left: auto; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(7, 21, 56, .08); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { width: auto; height: 58px; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: stretch; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: flex; align-items: center; min-height: var(--header-h); padding: 0 12px; white-space: nowrap; font: 600 1.0625rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy); position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 22px; height: 3px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__item:hover > .nav__link::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__item--parent > .nav__link { padding-right: 2px; }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; margin-right: 6px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__item.is-open > .nav__toggle .icon { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% - 14px); left: 0; min-width: 270px; padding: 10px 0; background: #fff; border-top: 3px solid var(--brick); box-shadow: 0 18px 40px rgba(7, 21, 56, .14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s .2s; z-index: 5; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__sub .nav__item { display: block; }
.nav__sub .nav__link { min-height: 0; padding: 12px 22px; font-size: 1rem; letter-spacing: .04em; }
.nav__sub .nav__link::after { display: none; }
.nav__sub .nav__link:hover { background: var(--concrete); color: var(--brick); }
.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-call { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 600 1.0625rem/1.1 var(--font-display); letter-spacing: .03em; }
.header-call > .icon { width: 42px; height: 42px; padding: 10px; border: 1.5px solid var(--line); color: var(--brick); }
.header-call small { display: block; font: 500 .75rem/1.2 var(--font-body); letter-spacing: .02em; color: var(--muted); text-transform: none; }
.header-call:hover > .icon { border-color: var(--brick); }
.menu-btn { display: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }

/* Drawer */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(7, 21, 56, .55); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: min(400px, 100%); background: #fff; display: flex; flex-direction: column; overflow-y: auto; animation: drawer-in .3s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head img { height: 46px; width: auto; }
.drawer__close { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.drawer__close .icon { width: 22px; height: 22px; }
.drawer__nav { padding: 8px var(--gutter); }
.nav__list--drawer { display: block; }
.nav__list--drawer .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.nav__list--drawer .nav__link { flex: 1; min-height: 56px; padding: 0; font-size: 1.25rem; }
.nav__list--drawer .nav__link::after { display: none; }
.nav__list--drawer .nav__toggle { width: 48px; height: 48px; margin: 0; }
.nav__list--drawer .nav__sub { position: static; width: 100%; min-width: 0; padding: 0 0 12px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
.nav__list--drawer .nav__item.is-open > .nav__sub { display: block; }
.nav__list--drawer .nav__sub .nav__item { border: 0; }
.nav__list--drawer .nav__sub .nav__link { min-height: 44px; font-size: 1.0625rem; color: var(--muted); }
.drawer__contact { margin-top: auto; padding: 24px var(--gutter) 32px; display: grid; gap: 12px; background: var(--concrete); }
.drawer__contact p { margin: 8px 0 0; font-size: .9375rem; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; min-height: min(860px, calc(100svh - var(--header-h) - var(--topbar-h))); color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 21, 56, .94) 0%, rgba(7, 21, 56, .82) 38%, rgba(7, 21, 56, .35) 72%, rgba(7, 21, 56, .2) 100%), linear-gradient(0deg, rgba(7, 21, 56, .7) 0%, rgba(7, 21, 56, 0) 35%); }
.hero__floors { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 12%; width: clamp(160px, 22vw, 320px); color: rgba(255, 255, 255, .14); z-index: -1; }
/* The content block takes the free height and centres itself; the client strip stays flush with the hero's bottom edge. */
.hero__in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(28px, 5.5vh, 96px) clamp(24px, 4.5vh, 64px); }
/* Type follows the viewport height too, so the H1 stays at 2-3 lines and the actions stay in the first screen (lesson V16).
   Width cap in em, not ch: ch follows each font's "0", so the fallback and Barlow would wrap differently. */
.hero__title { max-width: 9.4em; margin-bottom: clamp(14px, 2.2vh, 24px); font-size: min(clamp(2.5rem, 1.45rem + 2.9vw, 4.375rem), 8.4vh); line-height: .95; color: #fff; }
.hero__lead { max-width: 34rem; margin-bottom: clamp(20px, 3.4vh, 36px); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; color: #dfe5f1; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero__clients { border-top: 1px solid var(--line-dark); background: rgba(7, 21, 56, .62); backdrop-filter: blur(6px); }
.hero__clients-in { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.hero__clients-label { flex: none; margin: 0; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--brick-tint); }
/* Client marquee: two identical tracks slide left; the copy is aria-hidden. Pauses on hover/focus; static for reduced motion. */
.marquee { display: flex; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.marquee__track { display: flex; flex: none; align-items: center; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item { display: flex; align-items: center; flex: none; }
.marquee__item::after { content: ""; width: 5px; height: 5px; margin: 0 26px; background: var(--brick-tint); }
.marquee__item a { display: flex; align-items: center; min-height: 44px; font: 600 1rem/1.15 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; white-space: nowrap; opacity: .85; transition: opacity .2s; }
.marquee__item a:hover { opacity: 1; color: #fff; }
.marquee__item img { width: auto; height: 36px; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) {
	.marquee { mask-image: none; -webkit-mask-image: none; }
	.marquee__track { flex-wrap: wrap; flex: 1; gap: 6px 0; animation: none; }
	.marquee__track[aria-hidden] { display: none; }
}

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__num { margin: 0 0 10px; font: 700 clamp(2.5rem, 1.8rem + 2.6vw, 4rem)/1 var(--font-display); color: var(--navy); white-space: nowrap; }
.fact__num span { color: var(--brick); }
.fact__label { margin: 0; max-width: 18rem; font-size: .9375rem; line-height: 1.45; color: var(--muted); }

/* Sticky columns: default for every two-column layout (lesson V4). Both columns carry the class, so the shorter one
   follows the reader; core.js drops it from a column taller than the viewport, whose end could otherwise never be reached. */
@media (min-width: 1101px) {
	.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
	.sticky-col.is-too-tall { position: static; }
}

/* Sections */
.section { padding-block: var(--sec); }
.section--light { background: var(--concrete); }
.section--dark { background: var(--navy); color: var(--muted-light); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.section-head--split > div { max-width: 46rem; }
.section-head__text { max-width: 30rem; margin: 0; color: var(--muted); }
.section-title { margin: 0; font-size: clamp(2.25rem, 1.5rem + 2.8vw, 4rem); line-height: .95; color: var(--navy); }
.section--dark .section-title { color: #fff; }

/* Service phases */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); counter-reset: phase; }
.phase { --pad: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; padding: var(--pad); background: #fff; }
.phase__media { position: relative; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 28px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.phase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.phase:hover .phase__media img { transform: scale(1.04); }
.phase__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 21, 56, .75) 0%, rgba(7, 21, 56, 0) 55%); }
.phase__num { position: absolute; left: var(--pad); bottom: 14px; z-index: 1; margin: 0; font: 700 3.5rem/.8 var(--font-display); color: #fff; }
.phase__title { margin-bottom: 14px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.phase__title a { color: var(--navy); text-decoration: none; }
.phase__title a:hover { color: var(--brick); }
.phase__text { color: var(--muted); }
.ticks { display: grid; gap: 10px; margin: 8px 0 32px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.ticks .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--brick); }
.phase .link-arrow { margin-top: auto; }
.roles { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; }
.roles__label { margin: 0; font: 600 .9375rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.roles__list { display: flex; flex-wrap: wrap; gap: 10px; }
.roles__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--navy); font: 600 1rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy); background: #fff; }
.roles__list a:hover { background: var(--navy); color: #fff; }

/* Project cards (photo-led, specs like a data sheet) */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.project-card--lead { grid-column: span 2; grid-row: span 2; }
.project-card__link { position: relative; display: flex; height: 100%; min-height: 320px; color: #fff; text-decoration: none; overflow: hidden; background: var(--navy-900); }
.project-card__media { position: absolute; inset: 0; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 21, 56, .95) 0%, rgba(7, 21, 56, .55) 45%, rgba(7, 21, 56, 0) 75%); }
.project-card__link:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { position: relative; z-index: 2; align-self: flex-end; width: 100%; padding: clamp(20px, 2.4vw, 32px); }
.project-card__cat { margin: 0 0 8px; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brick-tint); }
.project-card__title { margin: 0 0 14px; font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); line-height: 1; color: #fff; }
.project-card--lead .project-card__title { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .9375rem; }
.specs div { display: flex; gap: 8px; }
.specs dt { color: #aeb8cf; }
.specs dd { margin: 0; color: #fff; font-weight: 500; }

/* Approach */
.approach__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.approach__intro p { margin-bottom: 32px; }
.approach__photo { margin: 48px 0 0; }
.approach__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.approach__photo figcaption { margin-top: 12px; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.approach__intro .section-title { margin-bottom: 24px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.pillar { padding: 32px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pillar h3 { font-size: 1.625rem; margin-bottom: 12px; }
.pillar h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; background: var(--brick-tint); }
.pillar p { margin: 0; font-size: 1rem; }

/* Closing CTA: an inset card, never a full-bleed band against the footer (lesson V1) */
.cta-wrap { padding-block: clamp(56px, 7vw, 96px); }
.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; padding: clamp(36px, 5vw, 64px); background: var(--navy-900); border-left: 6px solid var(--brick); overflow: hidden; isolation: isolate; color: var(--muted-light); }
.cta__floors { position: absolute; right: -40px; bottom: -60px; width: 300px; color: rgba(255, 255, 255, .06); z-index: -1; }
.cta__text { max-width: 44rem; }
.cta__title { margin-bottom: 12px; font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem); line-height: .98; color: #fff; }
.cta__text p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--muted-light); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brick-tint); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.1fr .8fr 1.1fr; gap: 40px; padding-block: clamp(56px, 7vw, 96px) 48px; }
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 22rem; }
.site-footer__title { margin-bottom: 18px; font-size: 1.125rem; letter-spacing: .1em; color: #fff; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brick-tint); }
.footer-links { display: grid; gap: 8px; }
.footer-links .nav__sub, .footer-links .nav__toggle { display: none; }
.footer-links .nav__item, .footer-links .nav__link { display: inline; min-height: 0; padding: 0; font: inherit; letter-spacing: 0; text-transform: none; color: #fff; }
.footer-links .nav__link::after { display: none; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); }
.social .icon { width: 18px; height: 18px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.site-footer__base p { margin: 0; }

/* ---------- Inner pages ---------- */

/* Page header */
.page-head { position: relative; padding-block: clamp(48px, 8vw, 112px) clamp(40px, 6vw, 88px); background: var(--navy); color: #dfe5f1; overflow: hidden; isolation: isolate; }
.page-head--photo { background: var(--navy-900); }
.page-head__media { position: absolute; inset: 0; z-index: -2; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 21, 56, .94) 0%, rgba(7, 21, 56, .8) 45%, rgba(7, 21, 56, .45) 100%); }
.page-head__floors { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: -40px; width: clamp(140px, 18vw, 260px); color: rgba(255, 255, 255, .1); z-index: -1; }
.page-head__title { max-width: 18em; margin: 0 0 16px; font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem); line-height: .95; color: #fff; }
.page-head__lead { max-width: 40rem; margin: 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 28px; font-size: .875rem; color: var(--muted-light); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--brick-tint); }

.section-title--sm { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 24px; }
.section-head--spaced { margin-top: clamp(48px, 6vw, 80px); margin-bottom: 24px; }
.section-head__text--light { color: var(--muted-light); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Prose */
.prose { max-width: 46rem; }
.prose--lg { font-size: 1.125rem; }
.prose--article { margin-inline: auto; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--navy); }
.prose img { margin-block: 1.5em; }
.prose a { color: var(--brick); }

/* Split: two columns, both sticky (V4) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--ceo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split__text .section-title { margin-bottom: 24px; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.split__media--natural img { aspect-ratio: auto; }
.portrait { max-width: 400px; }
.portrait img { aspect-ratio: 1 / 1; object-position: 50% 20%; } /* source portraits are 400x400 */
.portrait figcaption { display: grid; gap: 2px; font-size: .9375rem; }
.portrait figcaption strong { font: 700 1.375rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.quote { margin: 0 0 28px; padding-left: 24px; border-left: 4px solid var(--brick); }
.quote p { margin: 0; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.125rem)/1.15 var(--font-display); color: var(--navy); }

/* Project data sheet and layout */
.datasheet { border-bottom: 1px solid var(--line); background: #fff; }
.datasheet__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; }
.datasheet__item { padding: 24px clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.datasheet__item:first-child { border-left: 0; padding-left: 0; }
.datasheet dt { margin-bottom: 6px; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.datasheet dd { margin: 0; font: 600 1.25rem/1.2 var(--font-display); color: var(--navy); }
.project-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.project-overview { margin-top: clamp(40px, 5vw, 64px); }
.side-card { display: grid; gap: 12px; padding: 32px; background: var(--concrete); border-top: 4px solid var(--brick); }
.side-card p { margin: 0 0 4px; }
.side-card .kicker { margin-bottom: 4px; }
.side-card--dark { background: var(--navy-900); color: var(--muted-light); border-top-color: var(--brick); }
.side-card--dark a { color: #fff; }
.side-card__title { margin-bottom: 8px; font-size: 1.5rem; color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery__item--lead { grid-column: span 3; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--concrete-2); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery__item--lead img { aspect-ratio: 16 / 9; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox (C43: on-site images open here, never in a new tab) */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 10, 28, .96); color: #fff; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); font-size: .9375rem; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.lb__img { flex: 1 1 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lb__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(7, 21, 56, .6); color: #fff; cursor: pointer; }
.lb__btn .icon { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: clamp(8px, 2vw, 24px); }
.lb__prev .icon { transform: rotate(180deg); }
.lb__next { right: clamp(8px, 2vw, 24px); }
.lb__caption { padding: 12px var(--gutter) 20px; text-align: center; color: var(--muted-light); font-size: .9375rem; }
body.lb-open { overflow: hidden; }

/* Previous / next */
.pager-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager-nav__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 28px; }
.pager-nav__link { display: grid; gap: 4px; font: 700 1.25rem/1.1 var(--font-display); text-transform: uppercase; text-decoration: none; color: var(--navy); }
.pager-nav__link span { font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; color: var(--brick); }
.pager-nav__link--next { text-align: right; }
.pager-nav__all { font: 600 .9375rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* Filters and chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--line); background: #fff; font: 600 1rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy); cursor: pointer; }
.chip span { font-size: .8125rem; color: var(--muted); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { color: var(--muted-light); }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filters__status { min-height: 1.5em; margin-bottom: 24px; font-size: .9375rem; color: var(--muted); }
.project-grid--all, .project-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid--all .project-card__link, .project-grid--three .project-card__link { min-height: 380px; }
.project-card[hidden] { display: none; }

/* Services */
.tabs-nav { border-bottom: 1px solid var(--line); background: #fff; }
.tabs-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-nav a { display: flex; align-items: center; min-height: 60px; padding: 0 18px; font: 600 1rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs-nav a:hover { color: var(--navy); }
.tabs-nav a[aria-current] { color: var(--navy); border-bottom-color: var(--brick); }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.item-card { padding: clamp(24px, 2.6vw, 36px); background: #fff; }
.item-card__num { margin: 0 0 14px; font: 700 2.5rem/.8 var(--font-display); color: var(--brick); }
.item-card__title { margin-bottom: 10px; font-size: 1.5rem; color: var(--navy); }
.item-card p:last-child { margin: 0; color: var(--muted); }
.role-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-row { display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.role-row__num { margin: 0; font: 700 3rem/.9 var(--font-display); color: var(--brick); }
.role-row__title { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); color: var(--navy); }
.role-row__text { color: var(--text); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.service-card__link { display: grid; height: 100%; grid-template-rows: auto 1fr; background: #fff; color: var(--text); text-decoration: none; }
.service-card__media { position: relative; overflow: hidden; background: var(--navy-900); }
.service-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 21, 56, .7) 0%, rgba(7, 21, 56, 0) 50%); }
.service-card__link:hover img { transform: scale(1.04); }
.service-card__num { position: absolute; left: 28px; bottom: 16px; z-index: 1; margin: 0; font: 700 3.5rem/.8 var(--font-display); color: #fff; }
.service-card__body { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); }
.service-card__title { margin-bottom: 12px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); color: var(--navy); }
.service-card__body .link-arrow { margin-top: auto; padding-top: 16px; }
.service-card__link:hover .service-card__title { color: var(--brick); }

/* About */
.facts--bordered { border-top: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.value-card { grid-column: span 2; padding: clamp(24px, 2.6vw, 36px); background: #fff; border-top: 4px solid var(--navy); }
.value-card:nth-child(4), .value-card:nth-child(5) { grid-column: span 3; }
.value-card h3 { margin-bottom: 12px; font-size: 1.625rem; color: var(--navy); }
.value-card p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.step { padding: 32px 28px 8px 0; border-right: 1px solid var(--line-dark); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step__num { margin: 0 0 18px; font: 700 2.75rem/.8 var(--font-display); color: var(--brick-tint); }
.step h3 { margin-bottom: 12px; font-size: 1.5rem; }
.step p { margin: 0; font-size: 1rem; }

/* History */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--navy); margin-left: 8px; }
.timeline__item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 0 0 40px 32px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -9px; top: 10px; width: 16px; height: 16px; background: var(--brick); }
.timeline__year { margin: 0; font: 700 3rem/.9 var(--font-display); color: var(--navy); }
.timeline__item h3 { margin-bottom: 8px; font-size: 1.625rem; color: var(--navy); }
.timeline__item p { margin: 0; max-width: 46rem; color: var(--muted); }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.place { padding: 32px; background: #fff; }
.place h3 { margin-bottom: 14px; font-size: 1.75rem; color: var(--navy); }
.place li { padding: 6px 0; border-top: 1px solid var(--line); font-weight: 500; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: clamp(16px, 2vw, 32px); }
.team-grid--lead { grid-template-columns: repeat(2, minmax(0, 340px)); }
.person { margin: 0; }
.person__photo { margin-bottom: 16px; overflow: hidden; background: var(--concrete-2); }
.person__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
.team-photo { max-width: 800px; margin: clamp(48px, 6vw, 80px) 0 0; }
.team-photo figcaption { margin-top: 12px; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.person__name { margin: 0 0 4px; font-size: 1.375rem; color: var(--navy); }
.person--lead .person__name { font-size: 1.75rem; }
.person__role { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Contact and forms */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-layout__aside { display: grid; gap: 16px; }
.contact-layout > *, .contact-layout__aside > * { min-width: 0; }
.contact-list span { min-width: 0; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 .9375rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.field label span { color: var(--brick); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 0; background: #fff; font: inherit; color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 34, 89, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--brick); }
.field__error { margin: 0; font-size: .875rem; color: var(--brick); }
.form__hint { margin: -6px 0 0; font-size: .875rem; color: var(--muted); }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__trap input { font-size: 16px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { margin: 0; font-weight: 500; }
.form__status.is-error { color: var(--brick); }
.form-done { padding: 40px; background: var(--concrete); border-top: 4px solid var(--brick); }
.form-done[hidden] { display: none; }
.map { aspect-ratio: 4 / 3; background: var(--concrete-2); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* News and sitemap */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.news-card__link { display: grid; height: 100%; grid-template-rows: auto 1fr; background: var(--concrete); color: var(--text); text-decoration: none; }
.news-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-card__body { padding: 24px; }
.news-card__meta { margin: 0 0 8px; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.news-card__title { margin-bottom: 10px; font-size: 1.5rem; color: var(--navy); }
.news-card__link:hover .news-card__title { color: var(--brick); }
.sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sitemap .site-footer__title { color: var(--navy); }
.sitemap li { padding: 6px 0; border-top: 1px solid var(--line); }
.sitemap a { text-decoration: none; }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Fields under 16 px make iPhones zoom (C19). */
@media (max-width: 999px), (pointer: coarse) {
	.field input, .field select, .field textarea { font-size: 16px !important; }
}

/* Inner pages: responsive */
@media (max-width: 1100px) {
	.split, .split--ceo, .project-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
	.split--center { grid-template-columns: minmax(0, 1fr); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step:nth-child(2) { border-right: 0; }
	.step:nth-child(3) { padding-left: 0; }
	.sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.project-grid--all, .project-grid--three, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.item-grid, .places { grid-template-columns: minmax(0, 1fr); }
	.service-grid { grid-template-columns: minmax(0, 1fr); }
	.value-grid { grid-template-columns: minmax(0, 1fr); }
	.value-card, .value-card:nth-child(4), .value-card:nth-child(5) { grid-column: auto; }
	.role-row { grid-template-columns: 56px minmax(0, 1fr); }
	.role-row__text { grid-column: 2; }
	.pager-nav__in { grid-template-columns: 1fr 1fr; }
	.pager-nav__all { display: none; }
	.timeline__item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.datasheet__item:nth-child(odd) { border-left: 0; padding-left: 0; }
	.datasheet__item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
	.project-grid--all, .project-grid--three, .news-grid, .team-grid, .team-grid--lead, .sitemap { grid-template-columns: minmax(0, 1fr); }
	.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.form__row, .steps { grid-template-columns: minmax(0, 1fr); }
	.step, .step + .step { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery__item--lead { grid-column: span 2; }
	.lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; }
}

/* Responsive */
@media (max-width: 1280px) {
	.header-call__text { display: none; }
}
@media (max-width: 1100px) {
	:root { --header-h: 76px; }
	.nav { display: none; }
	.menu-btn { display: grid; }
	.site-header__in { justify-content: space-between; }
	.brand img { height: 50px; }
	.approach__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.topbar__item--hours { display: none; }
	.facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact:nth-child(3) { border-left: 0; padding-left: 0; }
	.fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.phases { grid-template-columns: minmax(0, 1fr); }
	.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-card--lead { grid-row: span 1; }
	.project-card--lead .project-card__link { min-height: 440px; }
	.hero__clients-in { flex-direction: column; align-items: stretch; gap: 8px; }
}
@media (max-width: 760px) {
	.topbar { display: none; }
	:root { --topbar-h: 0px; }
	.header-call { display: none; }
	.header-cta { display: none; }
	.hero { min-height: auto; }
	.hero__floors { display: none; }
	.hero::before { background: linear-gradient(0deg, rgba(7, 21, 56, .96) 0%, rgba(7, 21, 56, .82) 55%, rgba(7, 21, 56, .55) 100%); }
	.marquee__item::after { margin: 0 18px; }
	.pillars { grid-template-columns: minmax(0, 1fr); }
	.pillar { padding: 24px; }
}
@media (max-width: 600px) {
	.project-grid { grid-template-columns: minmax(0, 1fr); }
	.project-card--lead { grid-column: auto; }
	.project-card__link, .project-card--lead .project-card__link { min-height: 340px; }
	.fact { padding-inline: 0 12px; }
	.fact:nth-child(even) { padding-left: 16px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.cta__actions, .cta__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
