/* ==========================================================================
   RHEM CONSULTANCY — Design System v2
   Self-hosted Raleway (static weights) + Abril Fatface
   Light/Dark theme via [data-theme] on <html>
   ========================================================================== */

/* ---------- self-hosted fonts ---------- */
@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Thin.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-ExtraLight.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Raleway';
	src: url('../font/Raleway/static/Raleway-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Abril Fatface';
	src: url('../font/Abril_Fatface/AbrilFatface-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- theme tokens ---------- */
/* Two full palettes: "light" = light body + black anchor sections (hero,
   footer, CTA, marquee, dark services block). "dark" = dark body + the
   anchor sections invert to a light cream so the whole page genuinely
   flips, not just the content sections. --photo-tint stays constant in
   both themes since it only darkens photography, not UI chrome. */

:root,
[data-theme="light"] {
	--ivory: #f7f5f1;
	--ivory-deep: #efebe3;
	--white: #ffffff;
	--charcoal: #161512;
	--gray-mid: #716a5c;
	--gray-line: rgba(10, 10, 10, 0.13);
	--photo-tint: #0a0a0a;

	--black: #0a0a0a;
	--on-black: #f7f5f1;

	--stone: #c9bca3;
	--stone-dim: #a08e68;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--inv-border-30: rgba(255, 255, 255, 0.3);
	--inv-border-14: rgba(255, 255, 255, 0.14);
	--inv-border-12: rgba(255, 255, 255, 0.12);
	--inv-text-70: rgba(247, 245, 241, 0.7);
	--inv-text-68: rgba(247, 245, 241, 0.68);
	--inv-text-55: rgba(247, 245, 241, 0.55);
	--inv-text-40: rgba(247, 245, 241, 0.4);
	--inv-hover-bg: rgba(255, 255, 255, 0.1);
	--inv-stroke-09: rgba(247, 245, 241, 0.09);
	--inv-stroke-07: rgba(247, 245, 241, 0.07);
	--header-scroll-bg: rgba(10, 10, 10, 0.86);
	--anchor-card-hover: #222121;
	--preloader-right-bg: #eae4d4;
	--opacityforbackgroundimg: 0.1;
}

[data-theme="dark"] {
	--ivory: #141311;
	--ivory-deep: #0c0b0a;
	--white: #1b1a17;
	--charcoal: #f3f0e8;
	--gray-mid: #8c8679;
	--gray-line: rgba(255, 255, 255, 0.13);
	--photo-tint: #0a0a0a;

	--black: #f3f0e8;
	--on-black: #121110;
	
	--stone: #8a6f3f;
	--stone-dim: #6e582f;
	
	--inv-border-30: rgba(10, 10, 10, 0.28);
	--inv-border-14: rgba(10, 10, 10, 0.14);
	--inv-border-12: rgba(10, 10, 10, 0.12);
	--inv-text-70: rgba(18, 17, 16, 0.72);
	--inv-text-68: rgba(18, 17, 16, 0.68);
	--inv-text-55: rgba(18, 17, 16, 0.55);
	--inv-text-40: rgba(18, 17, 16, 0.42);
	--inv-hover-bg: rgba(10, 10, 10, 0.06);
	--inv-stroke-09: rgba(18, 17, 16, 0.1);
	--inv-stroke-07: rgba(18, 17, 16, 0.08);
	--header-scroll-bg: rgba(243, 240, 232, 0.9);
	--anchor-card-hover: #ded7c6;
	--preloader-right-bg: #161514;
	--opacityforbackgroundimg: 0.4;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	color: var(--charcoal);
	background: var(--ivory);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background 0.5s ease, color 0.5s ease;
	--font-body: 'Raleway';
	--font-display: 'Abril Fatface';
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	color: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

ul {
	list-style: none;
}

::selection {
	background: var(--stone);
	color: var(--black);
}

:focus-visible {
	outline: 1px solid var(--stone-dim);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- grain texture overlay ---------- */
.grain {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- custom cursor ---------- */
.cursor-dot,
.cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 9998;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	will-change: transform;
}

.cursor-dot {
	width: 6px;
	height: 6px;
	background: var(--stone-dim);
	transition: opacity 0.2s;
}

.cursor-ring {
	width: 38px;
	height: 38px;
	border: 1px solid var(--stone-dim);
	opacity: 0.6;
	transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.is-active {
	width: 64px;
	height: 64px;
	opacity: 0.9;
}

@media (hover: none),
(pointer: coarse) {

	.cursor-dot,
	.cursor-ring {
		display: none;
	}
}

/* ---------- layout helpers ---------- */
.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: clamp(24px, 5vw, 64px);
	padding-right: clamp(24px, 5vw, 64px);
}

.section {
	padding-top: clamp(80px, 12vw, 160px);
	padding-bottom: clamp(80px, 12vw, 160px);
	position: relative;
}

.section--ivory {
	background: var(--ivory);
	color: var(--charcoal);
}

.section--white {
	background: var(--white);
	color: var(--charcoal);
}

.section--deep {
	background: var(--ivory-deep);
	color: var(--charcoal);
}

.section--dark {
	background: var(--black);
	color: var(--on-black);
}

.eyebrow {
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--stone-dim);
	display: inline-block;
	margin-bottom: 22px;
}

.section--dark .eyebrow {
	color: var(--stone);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.06;
}

h1 {
	font-size: clamp(48px, 7.5vw, 75px);
}

h2 {
	font-size: clamp(34px, 4.4vw, 58px);
}

h3 {
	font-size: clamp(22px, 2.4vw, 28px);
}

p.lede {
	font-size: clamp(17px, 1.7vw, 20px);
	font-weight: 400;
	color: var(--gray-mid);
	max-width: 640px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	padding: 18px 34px;
	transition: all 0.4s var(--ease);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--charcoal);
	color: var(--ivory);
	border: 1px solid var(--charcoal);
}

.section--dark .btn-primary,
.cta-banner .btn-primary {
	background: var(--on-black);
	color: var(--black);
	border-color: var(--on-black);
}

.btn-primary:hover {
	background: var(--stone-dim);
	border-color: var(--stone-dim);
	color: var(--black);
}

.btn-outline {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
}

.btn-outline:hover {
	background: var(--black);
	color: var(--ivory);
}

.section--dark .btn-outline:hover,
.cta-banner .btn-outline:hover {
	background: var(--on-black);
	color: var(--black);
	border-color: var(--on-black);
}

.btn-arrow {
	transition: transform 0.4s var(--ease);
}

.btn:hover .btn-arrow {
	transform: translateX(5px);
}

/* ---------- header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 26px clamp(24px, 5vw, 64px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.5s var(--ease), padding 0.4s var(--ease), border-color 0.5s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: var(--header-scroll-bg);
	backdrop-filter: blur(10px);
	padding-top: 16px;
	padding-bottom: 16px;
	border-color: var(--inv-border-14);
}

.site-header,
.site-header a {
	color: var(--on-black);
}

.logo-mark img {
	height: 40px;
	width: auto;
}

[data-theme="dark"] .logo-mark img,
[data-theme="dark"] .footer-brand img {
	filter: invert(1);
	mix-blend-mode: multiply;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 34px;
}

.main-nav ul {
	display: flex;
	gap: 34px;
}

.main-nav a {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 500;
	position: relative;
}

.main-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--stone);
	transition: width 0.35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
	width: 100%;
}

.main-nav a.active {
	color: var(--stone);
}

.nav-cta {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	border: 1px solid var(--inv-border-30);
	padding: 12px 24px;
	transition: all 0.4s var(--ease);
}

.nav-cta:hover {
	background: var(--on-black);
	color: var(--black);
	border-color: var(--on-black);
}

.theme-toggle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--inv-border-30);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s var(--ease);
	flex-shrink: 0;
}

.theme-toggle:hover {
	background: var(--inv-hover-bg);
}

.theme-toggle svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.theme-toggle .icon-sun {
	display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	width: 26px;
	z-index: 110;
}

.nav-toggle span {
	height: 1px;
	width: 100%;
	background: var(--on-black);
	transition: all 0.35s var(--ease);
}

.mobile-nav {
	position: fixed;
	inset: 0;
	background: var(--black);
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	transform: translateY(-100%);
	transition: transform 0.55s var(--ease);
}

.mobile-nav.is-open {
	transform: translateY(0);
}

.mobile-nav a {
	font-family: var(--font-display);
	font-size: 34px;
	color: var(--on-black);
}

/* ---------- marquee ---------- */
.marquee {
	background: var(--black);
	color: var(--on-black);
	overflow: hidden;
	white-space: nowrap;
	border-top: 1px solid var(--inv-border-12);
	border-bottom: 1px solid var(--inv-border-12);
	padding: 22px 0;
}
.marquee-track {
	display: inline-flex;
	animation: marquee 34s linear infinite;
}
.marquee-track > span {
	display: inline-flex;
	align-items: center;
}
.marquee-track > span > span {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.8vw, 38px);
	padding: 0 34px;
	color: var(--on-black);
	opacity: 0.9;
	display: inline-flex;
	align-items: center;
	gap: 74px;
}
.marquee-track > span > span::after {
	content: '—';
	color: var(--stone-dim);
	font-family: var(--font-body);
}
@keyframes marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ---------- hero (split, asymmetric) ---------- */
.hero {
	min-height: 100vh;
	background: var(--black);
	color: var(--on-black);
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: stretch;
	position: relative;
	overflow: hidden;
	padding-top: 100px;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px clamp(24px, 5vw, 64px);
	position: relative;
	z-index: 3;
}

.hero-word-bg {
	position: absolute;
	top: 50%;
	left: clamp(24px, 5vw, 64px);
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: clamp(90px, 16vw, 260px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--inv-stroke-09);
	z-index: 0;
	user-select: none;
	white-space: nowrap;
}

.hero h1 {
	position: relative;
	margin-bottom: 26px;
	z-index: 2;
}

.hero h1 em {
	font-style: normal;
	color: var(--stone);
}

.hero-actions {
	display: flex;
	gap: 20px;
	margin-top: 44px;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
}

.hero-media {
	position: relative;
	overflow: hidden;
	clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
/*	filter: grayscale(1) contrast(1.08) brightness(0.85);*/
	transform: scale(1.12);
	transition: filter 1.2s ease;
}

.hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.55) 85%);
}

.hero-scroll {
	position: absolute;
	bottom: 36px;
	left: clamp(24px, 5vw, 64px);
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--inv-text-55);
	z-index: 3;
}

.hero-scroll .line {
	width: 40px;
	height: 1px;
	background: var(--inv-text-55);
}

@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-media {
		min-height: 46vh;
		clip-path: none;
		order: -1;
	}

	.hero-copy {
		padding-top: 70px;
	}

	.hero-word-bg {
		display: none;
	}
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
	background: var(--black);
	color: var(--on-black);
	padding-top: 190px;
	padding-bottom: 90px;
	position: relative;
	overflow: hidden;
}

.page-hero .wrap {
	position: relative;
	z-index: 2;
}

.page-hero h1 {
	max-width: 760px;
}

.page-hero p.lede {
	margin-top: 24px;
	color: var(--inv-text-68);
}

.page-hero-word {
	position: absolute;
	top: 50%;
	right: -2%;
	transform: translateY(-48%);
	font-family: var(--font-display);
	font-size: clamp(120px, 22vw, 340px);
	color: transparent;
	-webkit-text-stroke: 1px var(--inv-stroke-07);
	white-space: nowrap;
	z-index: 1;
	user-select: none;
}

/* ---------- scroll zoom/fade media blocks ---------- */
.scroll-media {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	will-change: transform, opacity;
}

.scroll-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(1) contrast(1.05);
	transition: filter 1s ease;
}

.scroll-media.is-active img {
	filter: grayscale(0.35) contrast(1.05);
}

.scroll-media .tone {
	position: absolute;
	inset: 0;
	background: var(--photo-tint);
	opacity: 0.1;
	mix-blend-mode: multiply;
	pointer-events: none;
}

[data-theme="dark"] .scroll-media .tone {
	opacity: 0.28;
}

.media-break {
	height: 62vh;
	margin: 0;
}

.media-break .cap {
	position: absolute;
	left: clamp(24px, 5vw, 64px);
	bottom: 40px;
	z-index: 3;
	color: #f7f5f1;
	font-family: var(--font-display);
	font-size: clamp(24px, 3.2vw, 42px);
	max-width: 560px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.media-break .cap-right {
	position: absolute;
	right: clamp(24px, 5vw, 64px);
	bottom: 40px;
	z-index: 3;
	color: #f7f5f1;
	font-family: var(--font-display);
	font-size: clamp(24px, 3.2vw, 42px);
	max-width: 560px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.media-break::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
}

/* ---------- audience / value cards ---------- */
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--gray-line);
	margin-top: 64px;
	border: 1px solid var(--gray-line);
}

.card {
	background: var(--ivory);
	padding: 48px 40px;
	transition: background 0.4s var(--ease);
	position: relative;
}

.bgcstm{
	background: var(--anchor-card-hover) !important;
}

.section--dark .card {
	background: var(--black);
}

.card:hover {
	background: var(--white);
}

.section--dark .card:hover {
	background: var(--anchor-card-hover);
}

.card .num {
	font-family: var(--font-display);
	font-size: 16px;
	color: var(--stone-dim);
	margin-bottom: 28px;
	display: block;
}

.card h3 {
	margin-bottom: 16px;
}

.card p {
	color: var(--gray-mid);
	font-size: 16px;
	font-weight: 400;
}

.card ul {
	margin-top: 20px;
}

.card li {
	font-size: 15px;
	color: var(--gray-mid);
	padding: 10px 0;
	border-top: 1px solid var(--gray-line);
	display: flex;
	align-items: center;
	gap: 10px;
}

.card li:first-of-type {
	border-top: none;
}

.card li::before {
	content: '—';
	color: var(--stone-dim);
}

/* ---------- section heading ---------- */
.section-head {
	max-width: 640px;
	margin-bottom: 20px;
}

.section-head.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ---------- process ---------- */
.process {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-top: 80px;
	position: relative;
}

.process-connector {
	position: absolute;
	top: 22px;
	left: 5%;
	right: 5%;
	height: 1px;
	background: var(--gray-line);
	z-index: 0;
}

.process-step {
	position: relative;
	z-index: 1;
}

.process-step .step-num {
	width: 44px;
	height: 44px;
	border: 1px solid currentColor;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 15px;
	background: var(--ivory);
	margin-bottom: 28px;
}

.section--dark .process-step .step-num {
	background: var(--black);
}

.process-step h3 {
	margin-bottom: 12px;
	font-size: 22px;
}

.process-step p {
	color: var(--gray-mid);
	font-size: 15.5px;
}

/* ---------- statement ---------- */
.statement {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.statement blockquote {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.35;
	font-weight: 400;
}

.statement blockquote span {
	color: var(--stone-dim);
}

/* ---------- CTA banner ---------- */
.cta-banner {
	background: var(--black);
	color: var(--on-black);
	text-align: center;
	padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 64px);
	position: relative;
	overflow: hidden;
}

.cta-banner h2 {
	max-width: 720px;
	margin: 0 auto 40px;
	position: relative;
	z-index: 2;
}

.cta-banner .btn-row {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
}

.cta-banner .eyebrow,
.cta-banner p.lede {
	position: relative;
	z-index: 2;
}

.cta-banner p.lede {
	color: var(--inv-text-68);
	margin: 0 auto 40px;
}

/* ---------- footer ---------- */
.site-footer {
	background: var(--black);
	color: var(--inv-text-70);
	padding: 90px clamp(24px, 5vw, 64px) 34px;
}

.footer-grid {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 60px;
	padding-bottom: 60px;
	border-bottom: 1px solid var(--inv-border-14);
}

.footer-brand img {
	height: 22px;
	margin-bottom: 22px;
}

.footer-brand p {
	max-width: 320px;
	font-size: 15px;
	color: var(--inv-text-55);
}

.footer-col h4 {
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--stone);
	margin-bottom: 22px;
	font-weight: 600;
}

.footer-col a,
.footer-col p {
	display: block;
	font-size: 15.5px;
	color: var(--inv-text-70);
	padding: 6px 0;
	transition: color 0.3s var(--ease);
}

.footer-col a:hover {
	color: var(--stone);
}

.footer-bottom {
	max-width: 1180px;
	margin: 0 auto;
	padding-top: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	letter-spacing: 0.05em;
	color: var(--inv-text-40);
	flex-wrap: wrap;
	gap: 16px;
}

/* ---------- reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-mask {
	overflow: hidden;
}

.reveal-mask > * {
	transform: translateY(105%);
	transition: transform 0.9s var(--ease);
}

.reveal-mask.is-visible > * {
	transform: translateY(0);
}

/* ---------- contact page ---------- */
.contact-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 90px;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.field label {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gray-mid);
	font-weight: 700;
}

.field input,
.field select,
.field textarea {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--gray-line);
	padding: 12px 2px;
	font-family: var(--font-body);
	font-size: 17px;
	color: var(--charcoal);
	transition: border-color 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--charcoal);
	outline: none;
}

.field textarea {
	resize: vertical;
	min-height: 120px;
}

.role-select {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.role-pill {
	border: 1px solid var(--gray-line);
	padding: 10px 20px;
	font-size: 13.5px;
	letter-spacing: 0.06em;
	transition: all 0.3s var(--ease);
}

.role-pill.is-active {
	background: var(--charcoal);
	color: var(--ivory);
	border-color: var(--charcoal);
}

.contact-details h4 {
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--stone-dim);
	margin-bottom: 12px;
	font-weight: 700;
}

.contact-detail-block {
	margin-bottom: 42px;
}

.contact-detail-block p,
.contact-detail-block a {
	font-size: 19px;
}

.contact-detail-block a:hover {
	color: var(--stone-dim);
}

.form-status {
	font-size: 14px;
	letter-spacing: 0.05em;
	color: var(--gray-mid);
	min-height: 20px;
}

/* ---------- values grid ---------- */
.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--gray-line);
	border: 1px solid var(--gray-line);
	margin-top: 64px;
}

.grid-4 .card {
	padding: 40px 30px;
}

/* ---------- sector rows ---------- */
.sector-list {
	margin-top: 64px;
	display: flex;
	flex-direction: column;
}

.sector-row {
	display: grid;
	grid-template-columns: 90px 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 42px 0;
	border-top: 1px solid var(--gray-line);
	transition: padding-left 0.4s var(--ease);
}

.sector-row:last-child {
	border-bottom: 1px solid var(--gray-line);
}

.sector-row:hover {
	padding-left: 14px;
}

.sector-row .idx {
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--stone-dim);
}

.sector-row h3 {
	margin-bottom: 6px;
}

.sector-row p {
	color: var(--gray-mid);
	font-size: 16px;
}

/* ---------- mission/vision ---------- */
.mv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	margin-top: 64px;
}

.mv-block {
	padding: 44px;
	border: 1px solid var(--gray-line);
}

.mv-block:hover{
	background: var(--gray-line);
}

.mv-block h3 {
	margin-bottom: 18px;
}

.mv-block p {
	color: var(--gray-mid);
	font-size: 17px;
}

/* ---------- preloader ---------- */
.preloader {
	position: fixed;
	inset: 0;
	z-index: 10000;
}

.preloader-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 50%;
	z-index: 10000;
	transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-panel--left {
	left: 0;
	background: var(--preloader-right-bg);
}

.preloader-panel--right {
	right: 0;
	background: var(--preloader-right-bg);
}

/* thin seam so the split is legible even when panel shades are close */
.preloader-seam {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 0px;
	background: var(--stone-dim);
	z-index: 10002;
	opacity: 0.6;
	transition: opacity 0.5s ease 0.4s;
}

.preloader-count {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 10001;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: flex-start;
	gap: 4px;
	font-family: var(--font-display);
	color: var(--stone);
	transition: opacity 0.4s ease;
}

.preloader-count span:first-child {
	font-size: clamp(48px, 8vw, 120px);
	line-height: 1;
}

.preloader-percent {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: clamp(14px, 1.6vw, 20px);
	letter-spacing: 0.1em;
	margin-top: clamp(10px, 1.6vw, 22px);
	color: var(--stone);
}

.preloader.is-loaded .preloader-panel--left {
	transform: translateX(-100%);
}

.preloader.is-loaded .preloader-panel--right {
	transform: translateX(100%);
}

.preloader.is-loaded .preloader-count {
	opacity: 0;
}

.preloader.is-loaded .preloader-seam {
	opacity: 0;
}

.preloader.is-done {
	display: none;
}

body.is-preloading {
	overflow: hidden;
}

/* ---------- title reveal: words appear one after another ---------- */
/* Requires the small JS helper (initTitleReveal) to wrap heading text in
   .word-mask > .word-inner spans at runtime — no HTML changes needed. */
.word-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}

.word-inner {
	display: inline-block;
	transform: translateY(112%);
	opacity: 0;
	transition: transform 0.9s var(--ease), opacity 0.7s ease;
	will-change: transform, opacity;
}

.is-title-revealed .word-inner {
	transform: translateY(0);
	opacity: 1;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 34px;
  bottom: 34px;
  width: 60px;
  height: 60px;
  z-index: 9997;
  display: block;
  animation: wa-pop 0.6s var(--ease) 1.6s both, wa-bounce 2.8s ease-in-out 2.4s infinite;
}

.whatsapp-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-ring 2.2s ease-out infinite;
}

.whatsapp-fab-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease, transform 0.3s ease;
}

.whatsapp-fab-icon svg { width: 28px; height: 28px; }

.whatsapp-fab:hover .whatsapp-fab-icon {
  background: #1ebe57;
  transform: scale(1.08);
}

@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes wa-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes wa-bounce {
  0%, 88%, 100% { transform: translateY(0); }
  92%           { transform: translateY(-8px); }
  96%           { transform: translateY(0); }
}

/* Social media Icons */
.footer-social {
	display: flex;
	gap: 14px;
	margin-top: 22px;
}

.footer-social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--inv-border-14);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s var(--ease);
}

.footer-social svg {
	width: 15px;
	height: 15px;
	color: var(--inv-text-70);
	transition: color 0.3s var(--ease);
}

.footer-social a:hover {
	background: var(--stone);
	border-color: var(--stone);
}

.footer-social a:hover svg {
	color: var(--black);
}

@media (max-width: 560px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab-icon svg { width: 24px; height: 24px; }
	.hero-scroll{display: none;}
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab-ring { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
	.word-inner {
		transform: none;
		opacity: 1;
		transition: none;
	}
}


.bgimgfirst {
	position: relative;
	overflow: hidden;
}

.bgimgfirst::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url(../img/transparent-img1.png);
	background-position: center right;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
	opacity: var(--opacityforbackgroundimg);
}

.bgimgfirst .wrap {
	position: relative;
	z-index: 1;
}

.squarebox{
	background-image: url(../img/squarebox.png);
}
/* ---------- responsive ---------- */
@media (max-width: 980px) {

	.main-nav ul,
	.main-nav .nav-cta {
		display: none;
	}

	.nav-toggle {
		display: flex;
	}

	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.process {
		grid-template-columns: 1fr 1fr;
		row-gap: 50px;
	}

	.process-connector {
		display: none;
	}

	.statement,
	.contact-layout,
	.mv-grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.sector-row {
		grid-template-columns: 50px 1fr;
	}

	.sector-row > p.sector-desc {
		grid-column: 2 / 3;
	}

	.marquee span {
		font-size: 22px;
	}
}

@media (max-width: 560px) {
	.process {
		grid-template-columns: 1fr;
	}

	.hero-actions .btn,
	.btn-row .btn {
		width: 100%;
		justify-content: center;
	}

	.media-break {
		height: 42vh;
	}
}
