/* =========================================================================
   KAMIT Redesign — styles from the approved KAMIT design, adapted to WordPress.
   Fonts are self-hosted (no third-party requests; strict CSP compatible).
   ========================================================================= */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--ink: #20301A;
	--ink-deep: #172312;
	--steel: #5C6B4E;
	--steel-light: #93A085;
	--plate: #F2F3EA;
	--paper: #FAFAF7;
	--line: #DEDFD2;
	--line-dark: #3C5330;
	--orange: #E45A2A;
	--orange-deep: #B8460F;
	--orange-bright: #F17A48;
	--white: #FFFFFF;
	--sage-mute: #B9C7A9;
	--sage-dim: #93A47F;
	--font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.wrap--form { max-width: 780px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: .2px; }
.eyebrow-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--steel-light); text-transform: uppercase; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-bright); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-row--spaced { margin-top: 40px; }
.link-line { display: inline-block; font-size: 13.5px; font-weight: 600; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.link-line:hover { color: var(--orange-deep); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--sage-mute); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a:hover { color: var(--orange-bright); }
.topbar-tag { font-family: var(--font-mono); letter-spacing: .04em; color: var(--steel-light); text-transform: uppercase; }
@media (max-width: 780px) { .topbar-tag { display: none; } }
@media (max-width: 420px) { .topbar-links a:nth-child(2) { display: none; } }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(23, 35, 18, .97); border-bottom: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; flex-direction: column; color: var(--white); flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .5px; }
.logo-word .k { color: var(--orange-bright); }
.logo-tag { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .16em; color: var(--sage-mute); margin-top: 4px; font-weight: 500; }
.logo--image { background: #fff; padding: 6px 10px; }
.logo-img { max-height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; }
.main-nav .nav-link { color: var(--sage-mute); font-size: 14.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.main-nav .nav-link:hover, .main-nav .nav-link.is-current { color: var(--white); border-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 12px 22px; font-size: 14px; }
.btn-short { display: none; }
.icon-call { color: var(--sage-mute); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.icon-call .icon { width: 17px; height: 17px; }
.icon-call:hover { color: var(--white); }
.menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
@media (max-width: 1100px) { .main-nav { gap: 20px; } .main-nav .nav-link { font-size: 14px; } }
@media (max-width: 1020px) { .main-nav, .icon-call { display: none; } .menu-toggle { display: block; } }
@media (max-width: 520px) { .header-actions .btn span:first-child { display: none; } .btn-short { display: inline; } .header-actions .btn { padding: 10px 16px; } }

.mobile-panel { position: fixed; inset: 115px 0 0 0; background: var(--ink); z-index: 49; overflow-y: auto; }
.mobile-panel[hidden] { display: none; }
.mobile-panel nav { display: flex; flex-direction: column; padding: 8px 20px 96px; }
.mobile-panel a { color: #EDEFEC; font-size: 21px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.mobile-panel a.is-current { color: var(--orange-bright); }
.mobile-panel .mobile-quote { color: var(--orange); }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; z-index: -1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(23, 35, 18, .95) 0%, rgba(23, 35, 18, .86) 45%, rgba(23, 35, 18, .55) 100%); }
.hero--photo .hero-grid { opacity: .25; }
.hero-inner { position: relative; padding-block: 110px 90px; }
.hero-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero-tag .dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.hero-tag .eyebrow-mono { text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); max-width: 920px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero p.lead { margin-top: 26px; max-width: 560px; font-size: 17.5px; color: var(--sage-mute); line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-coords { position: absolute; right: 32px; bottom: 28px; font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-light); text-align: right; letter-spacing: .04em; line-height: 1.9; border-right: 1px solid var(--line-dark); padding-right: 16px; }
.hero-corner-frame { position: absolute; top: 28px; left: 32px; width: 34px; height: 34px; border-top: 1px solid var(--steel); border-left: 1px solid var(--steel); }
@media (max-width: 780px) { .hero-coords { display: none; } }
@media (max-width: 640px) { .hero-inner { padding-block: 70px 60px; } .hero-corner-frame { left: 20px; top: 20px; } }

.reveal { opacity: 0; transform: translateY(14px); animation: kamit-rise .7s ease forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes kamit-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; animation: none; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Stats ---------- */
.stats-strip { background: var(--plate); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid--1 { grid-template-columns: 1fr; }
.stat-cell { padding: 36px 30px; border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--ink); line-height: 1; }
.stat-num span { color: var(--orange-deep); }
.stat-label { font-size: 13.5px; color: var(--steel); margin-top: 8px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-cell:nth-child(3) { border-left: none; padding-left: 0; } .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } .stat-cell { border-left: none; border-top: 1px solid var(--line); padding: 26px 0; } .stat-cell:first-child { border-top: none; } }

/* ---------- Sections ---------- */
.section { padding-block: 100px; }
.section--white { background: var(--white); }
.section--flush-top { padding-top: 0; }
.section--pt-sm { padding-top: 56px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section--flush-top { padding-top: 0; } .section--pt-sm { padding-top: 40px; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head--tight { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 640px; text-transform: uppercase; }
.section-head p { color: var(--steel); font-size: 15.5px; max-width: 380px; padding-bottom: 4px; }
@media (max-width: 780px) { .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; } }
.empty-note { color: var(--steel); font-size: 16px; max-width: 620px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-panel { position: relative; aspect-ratio: 5 / 4; background: var(--steel); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.panel-drawing { width: 60%; opacity: .9; }
.panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corner-brackets { position: absolute; inset: 14px; pointer-events: none; z-index: 2; }
.corner-brackets i { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--orange); }
.corner-brackets .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-brackets .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-brackets .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-brackets .br { bottom: 0; right: 0; border-left: none; border-top: none; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 22px; text-transform: uppercase; }
.about-copy p, .prose--about p { color: var(--steel); font-size: 16px; margin-bottom: 16px; max-width: 480px; }
.prose--about { margin-top: 14px; }
.prose--about h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; margin-bottom: 18px; color: var(--ink); }
.about-copy .btn { margin-top: 20px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.mv-grid p { margin-top: 12px; font-size: 16px; color: var(--steel); max-width: 520px; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Services grid (also projects & equipment) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 38px 32px; position: relative; transition: background .15s; display: flex; flex-direction: column; align-items: flex-start; }
.section--white .service-card { background: var(--paper); }
.service-card:hover { background: var(--white); }
.service-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--steel-light); letter-spacing: .04em; text-transform: uppercase; }
.service-card > .icon { width: 36px; height: 36px; margin: 18px 0 20px; color: var(--orange-deep); }
.service-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.service-card h3 a:hover { color: var(--orange-deep); }
.service-card p { color: var(--steel); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.project-item[hidden] { display: none; }
.project-thumb, .equip-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; }
.project-thumb { background: linear-gradient(160deg, #3C5330, #1B2A14); }
.service-card:nth-child(even) .project-thumb { background: linear-gradient(160deg, #4C6B3A, #20301A); }
.project-thumb img, .equip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .project-thumb img, .service-card:hover .equip-thumb img { transform: scale(1.03); }
.project-thumb__fill .icon { width: 46px; height: 46px; color: rgba(255, 255, 255, .28); }
.project-item h3 { margin-top: 12px; }
.equip-thumb { background: var(--plate); }
.equip-thumb > .icon { width: 34%; height: auto; color: var(--orange-deep); stroke-width: 1.4; }
.avail-tag { display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.avail-tag--available { background: #E5F1DE; color: #2E5C1A; }
.avail-tag--on_hire, .avail-tag--enquire { background: var(--plate); color: var(--steel); }

/* ---------- Filter pills ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.filter-btn { padding: 9px 18px; font-size: 13.5px; font-weight: 600; border: 1.5px solid var(--line-dark); background: transparent; color: var(--sage-mute); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.filter-btn:hover { border-color: var(--orange); color: var(--white); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* ---------- Industries ---------- */
.industries { background: var(--ink); color: var(--white); }
.industries .section-head p { color: var(--sage-mute); }
.industry-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.industry-cell { padding: 34px 24px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.industry-cell:nth-child(4n) { border-right: none; }
.industry-cell .icon { width: 30px; height: 30px; color: var(--orange); margin-bottom: 16px; }
.industry-cell h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.3; }
.industry-cell p { font-size: 13.5px; color: var(--sage-dim); }
@media (max-width: 900px) { .industry-row { grid-template-columns: repeat(2, 1fr); } .industry-cell:nth-child(2n) { border-right: none; } }
@media (max-width: 560px) { .industry-row { grid-template-columns: 1fr; } .industry-cell { border-right: none; } }

/* ---------- Featured projects ---------- */
.projects-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.projects-grid--single { grid-template-columns: 1fr; }
.project-col { display: flex; flex-direction: column; gap: 24px; }
.project-card { position: relative; background: var(--steel); color: var(--white); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; flex: 1; isolation: isolate; }
.project-card.large { min-height: 704px; }
.project-visual { position: absolute; inset: 0; background: linear-gradient(160deg, #3C5330, #1B2A14); z-index: -2; }
.project-col .project-card:first-child .project-visual { background: linear-gradient(160deg, #4C6B3A, #20301A); }
.project-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.project-card.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 35, 18, .05) 25%, rgba(23, 35, 18, .92) 100%); }
.project-card:hover .project-photo { transform: scale(1.03); }
.project-body { position: relative; padding: 30px 30px 32px; }
.project-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--orange-bright); letter-spacing: .04em; text-transform: uppercase; }
.project-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 22px; margin: 10px 0 8px; line-height: 1.25; }
.project-card p { font-size: 14px; color: var(--sage-mute); max-width: 420px; margin-bottom: 16px; }
.project-card .link-line { color: var(--white); }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr; } .project-card.large { min-height: 340px; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.why-grid--3 { grid-template-columns: repeat(3, 1fr); }
.why-item .icon { width: 30px; height: 30px; color: var(--orange-deep); margin-bottom: 16px; }
.why-item h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.why-item p { font-size: 14px; color: var(--steel); }
@media (max-width: 900px) { .why-grid, .why-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid, .why-grid--3 { grid-template-columns: 1fr; } }

/* ---------- HSE ---------- */
.hse { background: var(--ink); color: var(--white); position: relative; }
.hse .section-head h2 { color: var(--white); }
.hse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hse-copy h2 { font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; margin: 14px 0 20px; }
.hse-copy p, .hse-lead { color: var(--sage-mute); font-size: 16px; max-width: 480px; margin-bottom: 26px; }
.hse-lead { max-width: 640px; }
.iso-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.iso-badge { border: 1px solid var(--line-dark); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.iso-badge .code { font-family: var(--font-mono); font-size: 13px; color: var(--orange); }
.iso-badge .name { font-size: 12.5px; color: var(--sage-mute); }
.hse-visual { aspect-ratio: 1 / 1; border: 1px solid var(--line-dark); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hse-visual .hse-shield { width: 56%; height: auto; color: var(--steel-light); stroke-width: 1.2; }
@media (max-width: 900px) { .hse-grid { grid-template-columns: 1fr; gap: 36px; } .hse-visual { max-width: 520px; } }

/* ---------- CSR ---------- */
.csr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.csr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.csr-grid--2 { grid-template-columns: repeat(2, 1fr); }
.csr-card { border: 1px solid var(--line); padding: 26px 24px; background: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
.section--white .csr-card { background: var(--paper); }
.csr-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--orange-deep); letter-spacing: .04em; text-transform: uppercase; }
.csr-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 12px 0 8px; line-height: 1.3; }
.csr-card p { font-size: 13.5px; color: var(--steel); margin-bottom: 14px; }
.csr-card .metric { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--orange-deep); margin-bottom: 6px; }
.csr-thumb { display: block; margin: -26px -24px 18px; width: calc(100% + 48px); aspect-ratio: 3 / 2; overflow: hidden; }
.csr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.csr-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; flex-wrap: wrap; gap: 20px; }
.csr-footer p { color: var(--steel); font-size: 15px; max-width: 520px; }
@media (max-width: 900px) { .csr-grid, .csr-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .csr-grid, .csr-grid--3, .csr-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients { background: var(--plate); }
.clients-row { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients-row--1 { grid-template-columns: 1fr; }
.clients-row--2 { grid-template-columns: repeat(2, 1fr); }
.clients-row--3 { grid-template-columns: repeat(3, 1fr); }
.clients-row--4 { grid-template-columns: repeat(4, 1fr); }
.clients-row--5 { grid-template-columns: repeat(5, 1fr); }
.client-logo { aspect-ratio: 2.6 / 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; color: var(--steel); text-align: center; padding: 12px; text-transform: uppercase; }
@media (max-width: 900px) { .clients-row { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 560px) { .clients-row { grid-template-columns: repeat(2, 1fr) !important; } .client-logo { font-size: 16px; } }

/* ---------- News & vacancies ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.news-card { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.news-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-light); letter-spacing: .04em; text-transform: uppercase; }
.news-card h3, .news-card__title { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 12px 0 10px; line-height: 1.35; }
.news-card h3 a:hover, .news-card__title a:hover { color: var(--orange-deep); }
.news-card p { font-size: 14px; color: var(--steel); margin-bottom: 16px; flex: 1; }
.news-thumb { display: block; margin: -30px -28px 20px; width: calc(100% + 56px); aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 9px 15px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--orange); color: var(--ink); }
.final-cta .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.final-cta h2 { font-size: clamp(28px, 4vw, 52px); max-width: 640px; text-transform: uppercase; }
.final-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Inner page header ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: 110px 56px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-top: 14px; text-transform: uppercase; font-size: clamp(30px, 5vw, 54px); }
.page-hero .wrap > h1 { max-width: 860px; }
.page-hero .wrap > p { color: var(--sage-mute); font-size: 16px; max-width: 600px; margin-top: 18px; }
@media (max-width: 640px) { .page-hero { padding-block: 72px 44px; } }

/* ---------- Content pages ---------- */
.prose { max-width: 72ch; font-size: 16.5px; color: #33402B; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose li + li { margin-top: .4em; }
.prose img { width: 100%; }
.prose--spaced { margin-top: 56px; }
.prose-figure { margin-bottom: 28px; }
.metric-callout { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--orange-deep); line-height: 1; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 72px; align-items: start; }
.split-aside { position: sticky; top: 108px; display: grid; gap: 16px; }
.aside-title { font-size: 24px; text-transform: uppercase; }
.tick-list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--orange); }
.facts { border: 1px solid var(--line); background: var(--white); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: none; }
.facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--steel-light); text-transform: uppercase; padding-top: 2px; }
.facts dd { font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-aside { position: static; } }

.map-frame { border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- Forms (KAMIT Core markup) ---------- */
.form-heading { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 48px 0 0; }
.kamit-form-wrap { margin-top: 12px; }
.kamit-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.kamit-field { display: flex; flex-direction: column; }
.kamit-field--wide { grid-column: 1 / -1; }
.kamit-field > label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.kamit-field .req { color: var(--orange-deep); }
.kamit-field input[type="text"], .kamit-field input[type="email"], .kamit-field input[type="tel"], .kamit-field select, .kamit-field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #C9CBBB; background: var(--white); font-family: var(--font-body); font-size: 15px; color: var(--ink); border-radius: 0; min-height: 48px; appearance: none; -webkit-appearance: none;
}
.kamit-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2320301A' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.kamit-field textarea { min-height: 140px; resize: vertical; }
.kamit-field input:focus, .kamit-field select:focus, .kamit-field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.kamit-field input[type="file"] { padding: 14px; border: 1.5px dashed #B8BBA8; background: var(--plate); font-family: var(--font-body); font-size: 14px; width: 100%; cursor: pointer; }
.kamit-field input[type="file"]::file-selector-button { font: 600 13px var(--font-body); padding: 9px 14px; margin-right: 14px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.kamit-field.has-error input, .kamit-field.has-error select, .kamit-field.has-error textarea { border-color: #B3261E; }
.kamit-field__err { color: #B3261E; font-size: 13px; font-weight: 600; margin-top: 6px; }
.kamit-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--steel); }
.kamit-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex-shrink: 0; }
.kamit-check a { color: var(--orange-deep); text-decoration: underline; }
.kamit-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.kamit-form button[type="submit"] { margin-top: 22px; display: inline-flex; align-items: center; padding: 15px 28px; font: 600 15px var(--font-body); background: var(--orange); color: var(--ink); border: 0; cursor: pointer; }
.kamit-form button[type="submit"]:hover { background: var(--orange-bright); }
.kamit-form.is-submitting button[type="submit"] { opacity: .65; pointer-events: none; }
.kamit-alert { padding: 16px 20px; margin-bottom: 8px; border-left: 4px solid; font-weight: 600; font-size: 14.5px; }
.kamit-alert--ok { background: #E5F1DE; border-color: #1F7A3D; color: #1F5A2E; }
.kamit-alert--err { background: #FBE6E4; border-color: #B3261E; color: #7A1610; }
.form-note { font-size: 13.5px; color: var(--steel); margin-top: 28px; }
.form-note a { color: var(--orange-deep); font-weight: 600; }
@media (max-width: 640px) { .kamit-form__grid { grid-template-columns: 1fr; } .kamit-form button[type="submit"] { width: 100%; justify-content: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sage-mute); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
.footer-h { font-family: var(--font-body); color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 20px; letter-spacing: .03em; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 6px; }
.footer-col > a, .footer-col .nav-link { font-size: 14px; display: block; padding: 6px 0; color: var(--sage-mute); }
.footer-col a:hover { color: var(--orange-bright); }
.footer-col a.inline { display: inline; padding: 0; }
.footer-addr { margin-top: 16px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-word { font-size: 22px; }
.footer-quote { color: var(--orange) !important; margin-top: 10px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--orange-bright); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar .row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
.mobile-bar .row--two { grid-template-columns: 1fr 1.3fr; }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px; color: #EDEFEC; font-size: 11px; border-right: 1px solid var(--line-dark); }
.mobile-bar a.quote { background: var(--orange); color: var(--ink); font-weight: 700; font-size: 13px; border-right: none; }
.mobile-bar .icon { width: 19px; height: 19px; }
@media (max-width: 780px) { .mobile-bar { display: block; } body { padding-bottom: 62px; } }

/* ---------- Block editor content ---------- */
.alignwide { max-width: none; }
.wp-block-image figcaption { color: var(--steel); font-size: 13px; margin-top: 8px; }


/* =========================================================================
   Block-built pages (WordPress editor). Sections are full-width Group blocks
   with a kamit-section class; everything below is editable in the editor.
   ========================================================================= */

/* Page containers */
.kamit-content > .alignfull,
.kamit-content > .alignfull + * { margin-block-start: 0; }
.kamit-content > :last-child { margin-block-end: 0; }
.kamit-builder-content { width: 100%; }

/* Left-align a narrow block inside a centred content column (instead of centring it). */
.kamit-hero > .hero-title, .kamit-hero > .hero-lead, .kamit-hero > .hero-tag,
.page-hero > h1, .page-hero > .page-hero-lead, .page-hero > .is-style-kamit-eyebrow,
.kamit-hse > .hse-lead, .kamit-hse > h2 {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1176px)) / 2)) !important;
	margin-right: auto !important;
}

/* Section shell */
.kamit-section { padding-top: 100px; padding-bottom: 100px; position: relative; }
.kamit-section--flush-top { padding-top: 0; }
.kamit-section--tight-top { padding-top: 56px; }
@media (max-width: 640px) {
	.kamit-section { padding-top: 64px; padding-bottom: 64px; }
	.kamit-section--flush-top { padding-top: 0; }
	.kamit-section--tight-top { padding-top: 40px; }
}
/* A section whose only live block has nothing to show (e.g. News before the first post) hides itself. */
.kamit-section:has(.kamit-empty-marker) { display: none; }
/* Text colour (editor "Highlight" tool): never show the browser's default yellow marker, even after kses strips the inline transparent background for non-admin editors. */
mark.has-inline-color:not([class*="-background-color"]) { background-color: transparent; }

/* Typography styles offered in the editor */
.is-style-kamit-eyebrow { font-family: var(--font-mono); font-size: 12px !important; letter-spacing: .06em; color: var(--steel-light); text-transform: uppercase; }
.is-style-kamit-section-title { font-size: clamp(28px, 3.6vw, 44px); text-transform: uppercase; }
.wp-block-heading { line-height: 1.05; }
h3.wp-block-heading, h4.wp-block-heading { font-family: var(--font-body); font-weight: 700; line-height: 1.3; }
h3.wp-block-heading { font-size: 17px; }
h4.wp-block-heading { font-size: 16px; }

/* Buttons (block styles) */
.wp-block-button .wp-block-button__link { border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.wp-block-button.is-style-kamit-primary .wp-block-button__link { background: var(--orange); color: var(--ink); }
.wp-block-button.is-style-kamit-primary .wp-block-button__link:hover { background: var(--orange-bright); }
.wp-block-button.is-style-kamit-dark .wp-block-button__link { background: var(--ink); color: var(--white); }
.wp-block-button.is-style-kamit-dark .wp-block-button__link:hover { background: var(--ink-deep); }
.wp-block-button.is-style-kamit-outline-dark .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.wp-block-button.is-style-kamit-outline-dark .wp-block-button__link:hover { background: var(--ink); color: var(--white); }
.wp-block-button.is-style-kamit-outline-light .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.wp-block-button.is-style-kamit-outline-light .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.wp-block-buttons { gap: 14px 16px; }

/* Hero */
.kamit-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding-top: 110px; padding-bottom: 90px;
	background-image: linear-gradient(to right, rgba(60, 83, 48, .55) 1px, transparent 1px), linear-gradient(to bottom, rgba(60, 83, 48, .55) 1px, transparent 1px);
	background-size: 62px 62px;
}
.kamit-hero[style*="background-image"]::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(23, 35, 18, .95) 0%, rgba(23, 35, 18, .86) 45%, rgba(23, 35, 18, .55) 100%);
}
.kamit-hero::after { content: ""; position: absolute; top: 28px; left: 32px; width: 34px; height: 34px; border-top: 1px solid var(--steel); border-left: 1px solid var(--steel); pointer-events: none; }
.kamit-hero > .hero-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.kamit-hero > .hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.kamit-hero > .hero-title { font-size: clamp(38px, 6.4vw, 78px); text-transform: uppercase; max-width: 920px; line-height: 1.02; }
.kamit-hero > .hero-title em { font-style: normal; color: var(--orange); display: block; }
.kamit-hero > .hero-lead { max-width: 560px; font-size: 17.5px; line-height: 1.7; color: var(--sage-mute); margin-top: 26px; }
.kamit-hero > .hero-ctas { margin-top: 40px; }
.kamit-hero > .hero-coords { position: absolute; right: 32px; bottom: 28px; margin: 0 !important; width: auto; max-width: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-light); text-align: right; letter-spacing: .04em; line-height: 1.9; border-right: 1px solid var(--line-dark); padding-right: 16px; }
@media (max-width: 780px) { .kamit-hero > .hero-coords { display: none; } }
@media (max-width: 640px) { .kamit-hero { padding-top: 70px; padding-bottom: 60px; } .kamit-hero::after { left: 20px; top: 20px; } }

/* Inner page header */
.wp-block-group.page-hero {
	padding-block: 110px 56px;
	background-image: linear-gradient(to right, rgba(60, 83, 48, .45) 1px, transparent 1px), linear-gradient(to bottom, rgba(60, 83, 48, .45) 1px, transparent 1px);
	background-size: 62px 62px;
}
.wp-block-group.page-hero > h1 { max-width: 860px; margin-top: 14px; }
.wp-block-group.page-hero > .page-hero-lead { max-width: 600px; color: var(--sage-mute); font-size: 16px; margin-top: 18px; }
@media (max-width: 640px) { .wp-block-group.page-hero { padding-block: 72px 44px; } }

/* Key figures */
.wp-block-group.kamit-stats { padding-top: 0; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.wp-block-group.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stats-grid > * { margin-block: 0; }
.stats-grid > .stat-cell { padding: 36px 30px; border-left: 1px solid var(--line); }
.stats-grid > .stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-cell > * { margin: 0; }
.stat-cell > .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--ink); }
.stat-cell > .stat-label { font-size: 13.5px; color: var(--steel); margin-top: 8px; }
@media (max-width: 900px) {
	.wp-block-group.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid > .stat-cell:nth-child(odd) { border-left: none; padding-left: 0; }
	.stats-grid > .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
	.wp-block-group.stats-grid { grid-template-columns: 1fr; }
	.stats-grid > .stat-cell { border-left: none; padding: 26px 0; border-top: 1px solid var(--line); }
	.stats-grid > .stat-cell:first-child { border-top: none; }
}

/* Section heading row */
.wp-block-group.section-head { margin-bottom: 56px; gap: 14px 32px; }
.wp-block-group.section-head > * { margin: 0; }
.section-head > .wp-block-heading { max-width: 640px; }
.section-head > .section-intro { color: var(--steel); font-size: 15.5px; max-width: 380px; padding-bottom: 4px; }
.has-ink-background-color .section-head > .section-intro { color: var(--sage-mute); }
@media (max-width: 780px) { .wp-block-group.section-head { margin-bottom: 40px; } }

/* About / two-column sections */
.wp-block-columns.about-grid, .wp-block-columns.hse-grid { display: flex; gap: 70px; }
.wp-block-columns.hse-grid { gap: 60px; }
.wp-block-columns.mv-grid { gap: 40px; }
.about-grid .wp-block-column > p:not([class*="is-style"]) { color: var(--steel); font-size: 16px; max-width: 480px; }
.about-grid .wp-block-column > .wp-block-heading { margin-top: 14px; margin-bottom: 22px; font-size: clamp(26px, 3.4vw, 40px); }
.about-grid .wp-block-buttons { margin-top: 28px; }
.mv-grid .mv-text { color: var(--steel); font-size: 16px; max-width: 520px; margin-top: 12px; }

/* Photo panel (KAMIT block) */
.media-panel { position: relative; width: 100%; background: var(--steel); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-panel--shield { background: transparent; border: 1px solid var(--line-dark); }
.media-panel .panel-drawing { width: 60%; opacity: .9; }
.media-panel .hse-shield { width: 56%; height: auto; color: var(--steel-light); stroke-width: 1.2; }
.media-panel .panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Icon (KAMIT block) */
.kamit-block--icon { line-height: 0; }
.kamit-icon { display: inline-block; color: var(--orange-deep); }
.kamit-icon .icon { width: 30px; height: 30px; }
.kamit-icon--medium .icon { width: 36px; height: 36px; }
.kamit-icon--large .icon { width: 96px; height: 96px; }
.has-ink-background-color .kamit-icon { color: var(--orange); }

/* Icon grids (Why KAMIT, values, focus areas, contact) */
.wp-block-group.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.wp-block-group.why-grid.why-grid--3 { grid-template-columns: repeat(3, 1fr); }
.why-grid > * { margin-block: 0; }
.why-item > * { margin: 0; }
.why-item > .kamit-block--icon { margin-bottom: 16px; }
.why-item > h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-item > p { font-size: 14px; color: var(--steel); }
@media (max-width: 900px) { .wp-block-group.why-grid, .wp-block-group.why-grid.why-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wp-block-group.why-grid, .wp-block-group.why-grid.why-grid--3 { grid-template-columns: 1fr; } }
.wp-block-buttons.contact-buttons { margin-top: 40px; }
.contact-buttons .wp-block-button__link { padding: 13px 22px; }

/* HSE (dark) */
.kamit-hse .wp-block-heading { margin: 14px 0 20px; font-size: clamp(26px, 3.4vw, 40px); }
.kamit-hse .hse-lead { color: var(--sage-mute); font-size: 16px; max-width: 520px; margin-bottom: 26px; }
.kamit-hse > .hse-lead { max-width: 640px; }
.wp-block-group.iso-row { gap: 14px; margin-bottom: 30px; }
.wp-block-group.iso-badge { border: 1px solid var(--line-dark); padding: 14px 18px; min-width: 140px; }
.iso-badge > * { margin: 0; }
.iso-badge > .code { font-family: var(--font-mono); font-size: 13px; color: var(--orange); }
.iso-badge > .name { font-size: 12.5px; color: var(--sage-mute); margin-top: 4px; }

/* Cards (CSR, certifications) */
.wp-block-group.csr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wp-block-group.csr-grid.csr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.csr-grid > * { margin-block: 0; }
.wp-block-group.csr-card { border: 1px solid var(--line); padding: 26px 24px; background: var(--white); }
.has-white-background-color .wp-block-group.csr-card { background: var(--paper); }
.csr-card > * { margin: 0; }
.csr-card > .tag { font-family: var(--font-mono); font-size: 11px; color: var(--orange-deep); letter-spacing: .04em; text-transform: uppercase; }
.csr-card > h3 { font-size: 16px; margin: 12px 0 8px; }
.csr-card > p:not(.tag) { font-size: 13.5px; color: var(--steel); }
.wp-block-group.csr-footer { margin-top: 44px; gap: 20px; }
.csr-footer > p { color: var(--steel); font-size: 15px; max-width: 520px; margin: 0; }
@media (max-width: 900px) { .wp-block-group.csr-grid, .wp-block-group.csr-grid.csr-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wp-block-group.csr-grid, .wp-block-group.csr-grid.csr-grid--3 { grid-template-columns: 1fr; } }

/* Clients */
.wp-block-group.clients-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 45%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients-row > * { margin-block: 0; }
.clients-row > .client-logo { aspect-ratio: 2.6 / 1; display: flex; align-items: center; justify-content: center; margin: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; color: var(--steel); text-align: center; padding: 12px; text-transform: uppercase; }
.kamit-clients .section-head { margin-bottom: 32px; }

/* Call to action (orange) */
.kamit-cta .wp-block-group.cta-row { gap: 30px; }
.cta-row > * { margin: 0; }
.cta-row > .wp-block-heading { font-size: clamp(28px, 4vw, 52px); max-width: 640px; }

/* Narrow column (forms) */
.wp-block-group.narrow { max-width: 780px; }
.narrow > .wp-block-heading { margin-bottom: 8px; }

/* Dark sections: readable defaults for text users add */
.has-ink-background-color { color: var(--white); }
.has-ink-background-color .wp-block-heading { color: inherit; }
.has-ink-background-color p a { color: var(--orange-bright); }

/* Live KAMIT blocks inside sections */
.kamit-block { width: 100%; }
.kamit-block--projects .filter-row { margin: 0 0 32px; }
.kamit-block--projects .filter-btn { border-color: var(--line); background: var(--white); color: var(--ink); }
.kamit-block--projects .filter-btn:hover { border-color: var(--orange); color: var(--ink); }
.kamit-block--projects .filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.kamit-industries .industry-row { margin-top: 0; }
.kamit-block--map .map-frame { width: 100%; }
.back-link { margin-bottom: 28px; }

/* Block editor: show live blocks as on the site, but keep them selectable */
.editor-styles-wrapper .kamit-block { pointer-events: none; }
.editor-styles-wrapper .kamit-section:has(.kamit-empty-marker) { display: block; }
@media (max-width: 560px) { .clients-row > .client-logo { font-size: 15px; } }
/* Editor canvas: stack full-width sections without gaps, as on the site. */
.is-root-container > .alignfull,
.is-root-container > .alignfull + * { margin-block-start: 0; }
