/*
Theme Name: Jati
Theme URI: https://jaticorporateservices.my
Description: Custom monochrome editorial theme for Jati Corporate Services Sdn. Bhd.
Author: Danish Syazwan
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jati
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0a0a0a;
	--ink-2: #141414;
	--ink-3: #1c1c1c;
	--paper: #ffffff;
	--paper-2: #f6f6f4;
	--text: #111111;
	--muted: #6b6b6b;
	--line: #e4e4e0;
	--line-dark: rgba(255, 255, 255, .14);
	--on-dark: #ffffff;
	--on-dark-muted: rgba(255, 255, 255, .72);

	--font-display: "Inter Tight", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--container: 1280px;
	--gutter: 24px;
	--section: clamp(72px, 10vw, 128px);
	--radius: 12px;
	--radius-sm: 8px;
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.1;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

address { font-style: normal; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.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: 16px; top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--on-dark);
	border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.icon { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow::before { content: "+"; font-size: 14px; color: var(--text); }
.eyebrow--dark { color: var(--on-dark-muted); }
.eyebrow--dark::before { color: var(--on-dark); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--on-dark); }

.section-title { font-size: clamp(30px, 4.2vw, 52px); max-width: 18ch; }

.statement {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.28;
	letter-spacing: -.02em;
	color: var(--text);
	max-width: 30ch;
}

.mini-title { font-size: 20px; margin-bottom: 12px; }

.person__name { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; margin: 0; }
.person__role { display: block; font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.person__credentials { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; max-width: 52ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.person__credentials li { position: relative; padding-left: 16px; }
.person__credentials li::before { content: ""; position: absolute; left: 2px; top: calc(.75em - 1.5px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row--center { justify-content: center; margin-top: 56px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font: 500 15px/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: #2a2a2a; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .4); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); 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(--on-dark); }
.btn--outline { border-color: currentColor; color: inherit; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	color: var(--text);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .45s var(--ease);
}
/* Hidden while scrolling down (extra 46px clears the admin bar when logged in). */
.site-header.is-hidden { transform: translateY(calc(-100% - 46px)); }
.site-header:focus-within { transform: none; }
/* Sit below the WordPress admin bar when logged in. */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .mobile-menu { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 600px) {
	/* On small screens the admin bar scrolls away with the page. */
	.admin-bar .site-header.is-scrolled { top: 0; }
	.admin-bar.menu-open .site-header { top: 0; }
	.admin-bar .mobile-menu { top: var(--header-h); }
}
.has-dark-hero .site-header:not(.is-scrolled) {
	color: var(--on-dark);
	background: transparent;
	border-color: transparent;
}
body:not(.has-dark-hero) .site-main { padding-top: var(--header-h); }

/* Logo on the left; navigation + WhatsApp grouped on the right. */
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 36px;
	height: var(--header-h);
	max-width: none; /* full width, minimal side margins */
	padding: 0 40px;
}
@media (max-width: 600px) { .site-header__inner { padding: 0 20px; } }
.site-nav { margin-left: auto; }

.site-nav__list { display: flex; gap: 28px; list-style: none; }
.site-nav__list a {
	position: relative;
	font-size: 15px;
	text-decoration: none;
	opacity: .85;
	transition: opacity .2s;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a { opacity: 1; }
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item a::after { transform: scaleX(1); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 34px; height: auto; transition: filter .3s; }
.has-dark-hero .site-header:not(.is-scrolled) .brand__logo { filter: brightness(0) invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
/* Matches the "JATI" lettering in the logo: geometric sans, semibold, wide tracking. */
.brand__name { font-family: "Montserrat", var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.brand__sub { margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

.site-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
/* Desktop: the actions area only holds the (hidden) menu button, so drop it to avoid an empty gap. */
@media (min-width: 961px) { .site-header__actions { display: none; } }

.menu-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.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; }

/* Full-screen mobile menu: numbered links up top, contact + WhatsApp pinned to the
   bottom (thumb reach). Sizes scale with the viewport so 5 links + footer fit
   on short phones (iPhone SE) without scrolling; taller content still scrolls. */
.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0;
	height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--ink);
	color: var(--on-dark);
	animation: menu-fade .3s var(--ease) both;
}
.mobile-menu__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding-top: clamp(16px, 4vh, 32px);
	padding-bottom: max(20px, env(safe-area-inset-bottom));
}
@media (max-width: 600px) { .mobile-menu__inner { padding-left: 20px; padding-right: 20px; } }
.mobile-menu__eyebrow { margin-bottom: clamp(4px, 1.5vh, 12px); }

.mobile-menu__list { list-style: none; counter-reset: menu; border-top: 1px solid var(--line-dark); }
.mobile-menu__list li { counter-increment: menu; }
.mobile-menu__list a {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	padding: clamp(10px, 1.9vh, 18px) 0;
	border-bottom: 1px solid var(--line-dark);
	font-family: var(--font-display);
	font-size: clamp(28px, 8.5vw, 40px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-decoration: none;
	color: var(--on-dark-muted);
	transition: color .25s var(--ease);
}
.mobile-menu__list a::before {
	content: counter(menu, decimal-leading-zero);
	align-self: flex-start;
	min-width: 22px;
	padding-top: .35em;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .08em;
	color: var(--on-dark-muted);
}
/* Arrow on the right (SVG mask so it follows currentColor). */
.mobile-menu__list a::after {
	content: "";
	width: 20px; height: 20px;
	margin-left: auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .5;
	transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible,
.mobile-menu__list .current-menu-item a { color: var(--on-dark); }
.mobile-menu__list a:hover::after,
.mobile-menu__list a:focus-visible::after { opacity: 1; transform: translate(2px, -2px); }
/* Current page: solid dot instead of the arrow. */
.mobile-menu__list .current-menu-item a::after {
	width: 8px; height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	-webkit-mask: none; mask: none;
	opacity: 1;
	transform: none;
}

.mobile-menu__foot { margin-top: auto; padding-top: clamp(24px, 4vh, 40px); }
.mobile-menu__contact {
	display: grid;
	list-style: none;
	margin-bottom: 16px;
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	overflow: hidden;
}
.mobile-menu__contact li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu__contact a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background .2s;
}
.mobile-menu__contact a:hover { background: rgba(255, 255, 255, .06); }
.mobile-menu__contact .icon { width: 18px; height: 18px; color: var(--on-dark-muted); }
.mobile-menu__label {
	display: block;
	margin-bottom: 2px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--on-dark-muted);
}
.mobile-menu__value { display: block; }
.mobile-menu__cta { width: 100%; min-height: 52px; justify-content: space-between; padding: 14px 20px; font-size: 16px; }
@media (max-width: 360px) { .mobile-menu__contact a { font-size: 14px; } }

/* Short screens (small phones, landscape): drop the eyebrow, tighten the links
   and turn Call / Email into a two-up button row so everything fits one screen. */
@media (max-height: 700px) {
	.mobile-menu__eyebrow { display: none; }
	.mobile-menu__inner { padding-top: 12px; }
	.mobile-menu__list { border-top: 0; }
	.mobile-menu__list a { min-height: 48px; padding: 8px 0; font-size: clamp(26px, 7.5vw, 34px); }
	.mobile-menu__foot { padding-top: 20px; }
	.mobile-menu__contact { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
	.mobile-menu__contact li + li { border-top: 0; border-left: 1px solid var(--line-dark); }
	.mobile-menu__contact a { justify-content: center; gap: 10px; min-height: 48px; padding: 10px; }
	.mobile-menu__value { display: none; }
	.mobile-menu__label { margin: 0; font-size: 12px; color: var(--on-dark); }
	.mobile-menu__cta { min-height: 48px; }
}

/* Entrance: panel fades, links and footer rise in sequence. */
.mobile-menu__eyebrow,
.mobile-menu__list li,
.mobile-menu__foot { animation: menu-rise .55s var(--ease) both; }
.mobile-menu__list li:nth-child(1) { animation-delay: .05s; }
.mobile-menu__list li:nth-child(2) { animation-delay: .09s; }
.mobile-menu__list li:nth-child(3) { animation-delay: .13s; }
.mobile-menu__list li:nth-child(4) { animation-delay: .17s; }
.mobile-menu__list li:nth-child(5) { animation-delay: .21s; }
.mobile-menu__list li:nth-child(6) { animation-delay: .25s; }
.mobile-menu__list li:nth-child(n+7) { animation-delay: .29s; }
.mobile-menu__foot { animation-delay: .27s; }
@keyframes menu-fade { from { opacity: 0; } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
	.mobile-menu,
	.mobile-menu__eyebrow,
	.mobile-menu__list li,
	.mobile-menu__foot { animation: none; }
}
.menu-open .site-header { background: var(--ink) !important; color: var(--on-dark) !important; border-color: var(--line-dark) !important; }
.menu-open .site-header .brand__logo { filter: brightness(0) invert(1); }

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.site-nav { display: none; }
	.site-header__actions { margin-left: auto; }
	.menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: var(--section) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .section-title,
.section--dark .statement { color: var(--on-dark); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__text { max-width: 52ch; margin-top: 24px; color: var(--muted); }
.section--dark .section-head__text { color: var(--on-dark-muted); }
.section-head--row {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px 64px;
	align-items: end;
}
.section-head--row .section-head__text { margin-top: 0; }

.split {
	display: grid;
	grid-template-columns: 3fr 9fr;
	gap: 32px 48px;
}
/* Content keeps the editorial indent (the left column stays empty). */
.split__main { grid-column: 2; }
.split__main > .section-title { margin-bottom: 32px; }
/* The home About heading is a full sentence, so it runs smaller than other section titles. */
.about-intro .split__main > .section-title { font-size: clamp(26px, 3vw, 40px); max-width: 26ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.two-col .mini-title { color: var(--text); }

@media (max-width: 860px) {
	.split, .section-head--row, .two-col { grid-template-columns: 1fr; }
	.split__main { grid-column: 1; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: min(100svh, 940px);
	padding: var(--header-h) 0 0;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
	isolation: isolate;
}
.hero__media,
.page-hero__media,
.cta__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img,
.page-hero__media img,
.cta__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 30% 45%;
	filter: grayscale(.35) contrast(1.05);
}
.hero__media::after,
.page-hero__media::after,
.cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .45) 40%, rgba(10, 10, 10, .9) 100%);
}
.hero__media img { object-position: 50% 50%; }

/* Sticky hero: it stays put while the next sections scroll up and cover it.
   :where() keeps these rules at zero specificity so each section's own background still wins. */
.hero { position: sticky; top: 0; z-index: 0; }
:where(.hero) ~ :where(section) { position: relative; z-index: 1; background: var(--paper); }
.hero + section { box-shadow: 0 -24px 48px rgba(0, 0, 0, .25); }

/* Cinematic layout: short text + buttons on the right, a thin rule across,
   the big headline at the bottom-left. Side margins match the navbar. */
.hero__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 48px 40px clamp(32px, 5vh, 56px);
}
.hero__aside { align-self: flex-end; width: min(100%, 440px); }
.hero__text { margin: 0; color: var(--on-dark-muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; }
.hero__text strong { color: var(--on-dark); font-weight: 500; }
.hero__rule { display: block; height: 1px; margin-top: 28px; background: rgba(255, 255, 255, .3); }
/* Buttons sit just under the rule, lined up with the text column on the right. */
.hero__actions { align-self: flex-end; width: min(100%, 440px); margin-top: 24px; }
.hero__title {
	max-width: 17ch;
	margin-top: clamp(56px, 16vh, 200px);
	font-size: clamp(44px, 7.2vw, 104px);
	line-height: 1;
	letter-spacing: -.04em;
}
/* Phones: headline first, then the short text, rule and buttons, all grouped at the bottom. */
@media (max-width: 600px) {
	.hero__inner { padding: 32px 20px max(28px, env(safe-area-inset-bottom)); }
	.hero__title {
		order: -1;
		max-width: 12ch;
		margin: 0 0 20px;
		font-size: clamp(40px, 11.5vw, 54px);
		line-height: 1.02;
	}
	.hero__aside, .hero__actions { align-self: stretch; width: auto; }
	.hero__text { font-size: 16px; }
	.hero__rule { margin-top: 24px; }
	.hero__actions { margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
	.hero__actions .btn { flex: 1 1 0; justify-content: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(420px, 62vh, 620px);
	padding: calc(var(--header-h) + 48px) 0 56px;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
	isolation: isolate;
}
.page-hero__media img { object-position: 50% 50%; filter: grayscale(.6) contrast(1.05) brightness(.8); }
.page-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 96px 96px;
	mask-image: linear-gradient(180deg, transparent, #000 60%);
	opacity: .35;
}
.page-hero__inner { width: 100%; }
.page-hero__eyebrow { padding-bottom: 20px; margin-bottom: 28px; width: 100%; border-bottom: 1px solid var(--line-dark); }
.page-hero__row { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 32px; align-items: end; }
.page-hero__title { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.04em; line-height: 1; }
.page-hero__title--post { max-width: 22ch; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; }
.page-hero__summary { position: relative; padding-left: 22px; color: var(--on-dark-muted); font-size: 17px; }
.page-hero__summary::before { content: "↳"; position: absolute; left: 0; top: 0; color: var(--on-dark); }
.post-meta { display: flex; gap: 10px; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 860px) {
	.page-hero__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Home: about + facts
   ========================================================================== */
.about-intro { overflow: hidden; }
.watermark {
	position: absolute;
	top: 40px; left: -1vw;
	z-index: -1;
	font-family: var(--font-display);
	font-size: clamp(120px, 24vw, 360px);
	font-weight: 500;
	line-height: .8;
	letter-spacing: -.05em;
	text-transform: uppercase;
	color: var(--paper-2);
	pointer-events: none;
	user-select: none;
}
.about-intro .split__main > .statement { margin-bottom: 64px; }
.about-intro__person {
	display: grid;
	grid-template-columns: minmax(0, 340px) 1fr;
	gap: 40px;
	align-items: end;
}
.about-intro__person-text > p:not(.person__name):not(.person__role) { margin-top: 20px; color: var(--muted); max-width: 46ch; }

.portrait { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.portrait:hover img { transform: scale(1.03); }

.facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: clamp(72px, 9vw, 112px);
	list-style: none;
	border-top: 1px solid var(--line);
}
.facts__item { padding: 28px 24px 0 0; }
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.facts__value { display: block; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.facts__label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
	.about-intro__person { grid-template-columns: 1fr; }
	.about-intro__person .portrait { max-width: 340px; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts__item { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
	.facts__item + .facts__item { padding-left: 0; border-left: 0; }
	.facts__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   Home: why – heading row, photo band, dark panel of reasons overlapping the band
   ========================================================================== */
.why {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: var(--section);
	padding-bottom: var(--section);
	background: var(--ink);
	color: var(--on-dark);
}
.why .section-title { color: var(--on-dark); }
.why__head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
	padding-bottom: clamp(40px, 6vw, 72px);
}
.why__lead { max-width: 44ch; margin: 0 0 0 auto; color: var(--on-dark-muted); font-size: 17px; }
.why__band { position: relative; }
.why__media { position: absolute; top: 0; left: 0; right: 0; height: clamp(220px, 26vw, 340px); overflow: hidden; }
.why__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(.45); }
.why__band > .container { position: relative; padding-top: clamp(90px, 12vw, 160px); }
.why__panel { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); }
.why__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.why-stat + .why-stat { border-left: 1px solid var(--line-dark); }
.why-stat a {
	display: grid;
	/* Label + arrow on top, photo on the right, the big words along the bottom at full width. */
	grid-template-areas: "label arrow" ". thumb" "value value";
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	gap: 16px;
	height: 100%;
	min-height: 280px;
	padding: 20px 20px 24px;
	text-decoration: none;
	transition: background-color .3s var(--ease);
}
.why-stat a:hover { background: var(--ink-3); }
.why-stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.why-stat__arrow { justify-self: end; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.why-stat a:hover .why-stat__arrow { transform: translate(2px, -2px); }
.why-stat__label { grid-area: label; }
.why-stat__arrow { grid-area: arrow; }
.why-stat__value {
	grid-area: value;
	align-self: end;
	font-family: var(--font-display);
	font-size: clamp(24px, 2.3vw, 34px);
	line-height: 1.08;
	letter-spacing: -.03em;
	color: var(--on-dark);
}
.why-stat__thumb { grid-area: thumb; align-self: start; width: 84px; height: 104px; overflow: hidden; border-radius: 6px; }
.why-stat__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .6s var(--ease); }
.why-stat a:hover .why-stat__thumb img { transform: scale(1.06); }
.why__note {
	margin: 0;
	padding: 28px max(24px, calc((100% - 52ch) / 2)) 32px;
	border-top: 1px solid var(--line-dark);
	color: var(--on-dark-muted);
	font-size: 15px;
	text-align: center;
}
@media (max-width: 960px) {
	.why__stats { grid-template-columns: 1fr 1fr; }
	.why-stat:nth-child(3) { border-left: 0; }
	.why-stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 760px) {
	.why__head { grid-template-columns: 1fr; gap: 16px; }
	.why__lead { margin: 0; }
}
@media (max-width: 520px) {
	.why__stats { grid-template-columns: 1fr; }
	.why-stat + .why-stat { border-left: 0; border-top: 1px solid var(--line-dark); }
	.why-stat a { min-height: 0; }
	.why-stat__thumb { width: 72px; height: 88px; }
	/* One card per row: wide enough to put the words beside the photo again. */
	.why-stat a { grid-template-areas: "label arrow" "value thumb"; grid-template-rows: auto 1fr; }
	.why-stat__thumb { align-self: end; }
}

/* ==========================================================================
   Services
   ========================================================================== */
/* Homepage: full-bleed photo with a row of frosted cards; the open card turns white and shows the details. */
.svc-show {
	--svc-closed: 230px;
	--svc-open: 480px;
	--svc-h: 210px;
	--svc-h-open: 330px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--ink);
	color: var(--on-dark);
}
.svc-show__media { position: absolute; inset: 0; z-index: -1; }
.svc-show__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(.6) contrast(1.05) brightness(.85); }
.svc-show__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, .25) 45%, rgba(10, 10, 10, .55) 100%);
}
.svc-show__inner {
	display: flex;
	flex-direction: column;
	min-height: clamp(680px, 100svh, 920px);
	padding-top: var(--section);
	padding-bottom: 40px;
}
.svc-show__head { margin-bottom: auto; }
.svc-show__eyebrow { margin: 0 0 16px; font-size: 14px; color: var(--on-dark-muted); }
.svc-show__title { max-width: 10ch; font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.035em; color: var(--on-dark); }

/* Track runs past the right edge of the container, like a filmstrip. */
.svc-track {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin: 56px calc(50% - 50vw) 0 0;
	padding: 0 calc(50vw - 50%) 0 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	min-height: var(--svc-h-open);
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 var(--svc-closed);
	height: var(--svc-h);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	backdrop-filter: blur(16px) saturate(1.1);
	color: var(--on-dark);
	transition: flex-basis .6s var(--ease), height .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.svc-card:not(.is-active):hover { background: rgba(255, 255, 255, .2); }
.svc-card.is-active {
	flex-basis: var(--svc-open);
	height: var(--svc-h-open);
	border-color: transparent;
	background: var(--paper);
	color: var(--text);
}
.svc-card__toggle {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	padding: 24px 24px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.svc-card:not(.is-active) .svc-card__toggle { padding-bottom: 24px; }
.svc-card.is-active .svc-card__toggle { cursor: default; }
.svc-card__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; border-radius: 14px; }
.svc-card__icon { width: 32px; height: 32px; }
.svc-card__title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: inherit; }
.svc-card.is-active .svc-card__title { font-size: 21px; font-weight: 600; }

/* Fixed width so the text doesn't reflow while the card opens. */
.svc-card__body { display: none; width: calc(var(--svc-open) - 2px); padding: 6px 24px 24px; }
.svc-card.is-active .svc-card__body { display: block; animation: svc-in .5s .2s var(--ease) both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(8px); } }
.svc-card__desc { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.svc-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #8a8a8a;
	font-size: 16px;
}
.svc-card__fee { font-weight: 600; }
.svc-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.svc-card__link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card__link:hover .icon { transform: translate(2px, -2px); }

.svc-stage { position: relative; }
/* Footer row: progress + "All services"; the arrows (inside .svc-stage) sit at its right end. */
.svc-show__foot { display: flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 32px; padding-right: 120px; }
.svc-progress { position: relative; width: 120px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.svc-progress span { position: absolute; inset: 0 auto 0 0; width: 16.66%; background: var(--on-dark); transition: transform .6s var(--ease); }
.svc-show__all { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--on-dark-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.svc-show__all:hover { color: var(--on-dark); }
.svc-show__all .icon { width: 16px; height: 16px; }
.svc-nav { position: absolute; top: calc(100% + 32px); right: 0; display: flex; gap: 8px; }
.svc-nav__btn {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: var(--on-dark);
	cursor: pointer;
	transition: background-color .2s, opacity .2s;
}
.svc-nav__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .26); }
.svc-nav__btn:disabled { opacity: .4; cursor: default; }
.svc-nav__btn:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }

@media (max-width: 600px) {
	.svc-show { --svc-closed: 190px; --svc-open: min(86vw, 360px); --svc-h: 200px; --svc-h-open: 330px; }
	.svc-card__title { font-size: 16px; }
	.svc-card.is-active .svc-card__title { font-size: 19px; }
	.svc-card__desc { font-size: 16px; }
	.svc-card__foot { font-size: 15px; }
	.svc-show__inner { min-height: 640px; }
	.svc-card__toggle { padding: 20px 20px 0; }
	.svc-card:not(.is-active) .svc-card__toggle { padding-bottom: 20px; }
	.svc-card__body { padding: 6px 20px 20px; }
	.svc-progress { display: none; }
	.svc-show__all { margin-left: 0; margin-right: auto; }

	/* Arrows float on either side of the open card, centred on it, in the side gutters.
	   Dark so they read against both the white card and the photo; hidden at the ends. */
	.svc-show__foot { min-height: 0; padding-right: 0; }
	.svc-nav {
		top: auto;
		bottom: calc(var(--svc-h-open) / 2 - 20px);
		left: calc(var(--gutter) / -2 - 12px);
		right: calc(var(--gutter) / -2 - 12px);
		justify-content: space-between;
		pointer-events: none;
	}
	.svc-nav__btn {
		width: 40px; height: 40px;
		border-color: rgba(255, 255, 255, .22);
		border-radius: 50%;
		background: rgba(10, 10, 10, .72);
		box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
		pointer-events: auto;
		transition: background-color .2s, opacity .25s, visibility .25s;
	}
	.svc-nav__btn:hover:not(:disabled) { background: rgba(10, 10, 10, .9); }
	.svc-nav__btn:disabled { opacity: 0; visibility: hidden; }
}

/* Services page list */
.service-list { list-style: none; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--ink); }
.service-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 220px;
	gap: 24px 48px;
	align-items: start;
	padding: 36px 0;
	border-bottom: 1px solid var(--line);
	transition: background .3s;
}
.service-row:target { background: var(--paper-2); }
.service-row__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.service-row__desc { color: var(--muted); }
.service-row__desc p { margin: 0; }
.service-row__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.service-row__title a:hover { background-size: 100% 1px; }
.service-row__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.service-row__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service-row__more:hover .icon { transform: translateX(4px); }

/* Single service page */
.service-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service-single__aside { position: sticky; top: 120px; display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.service-single__aside .btn { justify-content: center; }
.service-single__aside .service-row__fee { text-align: left; }
.service-single__aside .fee-note { margin: 0; }
.service-single__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; color: var(--muted); font-size: 15px; text-decoration: none; }
.service-single__back:hover { color: var(--ink); }
@media (max-width: 960px) {
	.service-single { grid-template-columns: 1fr; }
	.service-single__aside { position: static; }
}
.service-row__fee { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.service-row__fee-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.service-row__fee-value { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; }
.fee-note { max-width: 70ch; margin-top: 32px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
	.service-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
	.service-row__fee { margin-top: 4px; }
	.service-row__fee { text-align: left; flex-direction: row; align-items: baseline; gap: 12px; }
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--ink); }
.step::before {
	content: "";
	position: absolute;
	top: -5px; left: 0;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--ink);
}
.step__title { margin-bottom: 12px; font-size: 22px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Homepage process: intro on the left, a tray of numbered steps on the right; the hovered step turns black. */
.process__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.process__title { max-width: 11ch; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.04em; }
.process__title em { font-style: normal; color: #8a8a8a; }
.process__lead { max-width: 34ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-weight: 600; text-decoration: none; }
.arrow-link__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-dark); transition: transform .35s var(--ease); }
.arrow-link__icon .icon { width: 16px; height: 16px; }
.arrow-link:hover .arrow-link__icon { transform: rotate(45deg); }

.ptray { display: grid; gap: 6px; padding: 6px; list-style: none; border-radius: 24px; background: #e7e7e4; }
.prow { display: grid; grid-template-columns: 36px 1fr; gap: 6px; }
.prow__tab,
.prow__card { border-radius: 18px; background: var(--paper); transition: background-color .45s var(--ease), color .45s var(--ease); }
.prow__tab {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
}
.prow__bars {
	width: 10px; height: 9px;
	background:
		linear-gradient(currentColor 0 0) top / 100% 1.5px no-repeat,
		linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor 0 0) bottom / 100% 1.5px no-repeat;
	opacity: .7;
}
.prow__card { display: flex; flex-direction: column; min-height: 200px; padding: 28px 30px; }
.prow__icon { width: 26px; height: 26px; margin-bottom: auto; }
.prow__title { margin: 40px 0 8px; font-size: 22px; letter-spacing: -.015em; color: inherit; }
.prow__desc { max-width: 44ch; margin: 0; color: var(--muted); font-size: 16px; transition: color .45s var(--ease); }
.prow.is-active .prow__tab,
.prow.is-active .prow__card { background: var(--ink); color: var(--on-dark); }
.prow.is-active .prow__desc { color: var(--on-dark-muted); }
@media (max-width: 860px) {
	.process__grid { grid-template-columns: 1fr; }
	.process__intro { position: static; }
	.prow { grid-template-columns: 30px 1fr; }
	.prow__card { min-height: 0; padding: 24px; }
	.prow__title { margin-top: 28px; font-size: 20px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(28px, 3.5vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}
.quote-card__mark { font-family: var(--font-display); font-size: 72px; line-height: .6; color: var(--line); height: 36px; }
.quote-card__text { margin: 24px 0 32px; }
.quote-card__text p { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -.01em; }
.quote-card__person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.quote-card__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote-card__person .person__name { font-size: 16px; }
.quote-card__person .person__role { font-size: 13px; }
.quote-grid--all .quote-card:nth-child(4n + 1),
.quote-grid--all .quote-card:nth-child(4n + 4) { background: var(--paper-2); border-color: var(--paper-2); }
/* An odd card out at the end (e.g. 3 or 5 Google reviews) spans the full row. */
.quote-grid--all .quote-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* Live Google reviews (Testimonials page) */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars svg { width: 18px; height: 18px; fill: var(--line); }
.stars svg.is-on { fill: var(--ink); }
.stars--sm svg { width: 15px; height: 15px; }
.rating-summary { display: flex; align-items: center; gap: 20px; justify-self: end; }
.rating-summary__score { font-family: var(--font-display); font-size: clamp(56px, 7vw, 88px); line-height: .9; letter-spacing: -.04em; }
.rating-summary__count { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card .quote-card__text { margin-top: 20px; }
.review-card .quote-card__person img { filter: none; } /* Google profile photos stay as the reviewer set them */
.review-grid .review-card .quote-card__text p { font-size: clamp(17px, 1.4vw, 20px); }
.quote-grid--all .quote-card:last-child:nth-child(odd) .quote-card__text p { max-width: 60ch; }
.review-card .person__name { display: block; text-decoration: none; }
.review-card a.person__name:hover { text-decoration: underline; }
.review-card .person__role { display: block; }
.google-reviews__actions { margin-top: 40px; }
.google-reviews__credit { margin-top: 20px; font-size: 13px; color: var(--muted); }
.google-reviews__credit--center { text-align: center; }
@media (max-width: 860px) {
	.rating-summary { justify-self: start; }
	.review-grid { grid-template-columns: 1fr; }
	.google-reviews__actions .btn,
	.testimonials-home .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; }
.post-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	text-decoration: none;
	transition: border-color .3s, transform .4s var(--ease);
}
.post-card__link:hover { border-color: var(--ink); transform: translateY(-4px); }
.post-card__meta { display: flex; gap: 8px; margin-bottom: 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-card__title { margin-bottom: 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.post-card__excerpt { color: var(--muted); font-size: 15px; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-size: 14px; font-weight: 500; }
.post-card__more .icon { width: 16px; height: 16px; }
.section--alt .post-card__link { border-color: transparent; }
.section--alt .post-card__link:hover { border-color: var(--ink); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Homepage "Latest guides": on phones, one card at a time – swipe (scroll-snap)
   or use the arrows below; the counter shows which guide is in view. */
.guides__nav { display: none; }
@media (max-width: 640px) {
	.post-grid--slider {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.post-grid--slider::-webkit-scrollbar { display: none; }
	.post-grid--slider > .post-card { flex: 0 0 100%; scroll-snap-align: start; }
	.post-grid--slider .post-card__link { min-height: 240px; }
	.post-grid--slider .post-card__link:hover { transform: none; }

	.guides__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
	.guides__count { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
	.guides__count span { color: var(--text); }
	.guides__btn {
		display: grid;
		place-items: center;
		width: 44px; height: 44px;
		padding: 0;
		border: 1px solid var(--ink);
		border-radius: 50%;
		background: transparent;
		color: var(--ink);
		cursor: pointer;
		transition: background-color .2s, color .2s, opacity .2s;
	}
	.guides__btn:hover:not(:disabled) { background: var(--ink); color: var(--on-dark); }
	.guides__btn:disabled { opacity: .25; cursor: default; }
	.guides__btn .icon { width: 18px; height: 18px; }
	.insights .btn-row--center { margin-top: 32px; }
}

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 14px;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 14px;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .icon { width: 16px; height: 16px; }

/* Single post / generic page content */
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 1.8em; font-size: 22px; }
.prose h4 { margin-top: 1.6em; font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--ink); font-family: var(--font-display); font-size: 22px; line-height: 1.45; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

.post-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 72px; padding: 32px;
	border-radius: var(--radius);
	background: var(--paper-2);
}
.post-cta__text { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.post-nav__link { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.post-nav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav__label .icon { width: 14px; height: 14px; }
.post-nav__title { font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: 1; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.leader { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.leader__text .section-title { max-width: 20ch; font-size: clamp(28px, 3.4vw, 44px); }
.leader__text .person__role { margin: 12px 0 0; font-size: 15px; }
.check-list { display: grid; gap: 0; margin-top: 40px; list-style: none; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-list .icon { margin-top: 4px; }
@media (max-width: 860px) {
	.leader { grid-template-columns: 1fr; }
	.leader__photo { max-width: 380px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__lead { margin: 24px 0 40px; color: var(--muted); max-width: 46ch; }
.contact-list { display: grid; margin-bottom: 40px; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { width: 22px; height: 22px; margin-top: 2px; }
.contact-list__label { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; font-size: 17px; }
.contact-list a:hover { text-decoration: underline; }

.contact__form { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--paper-2); }
.contact__form-title { margin-bottom: 28px; font-size: 28px; }
.contact__map { margin-top: clamp(56px, 8vw, 96px); }
.contact__map iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); filter: grayscale(1); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Spectra (UAGB) form – restyle the existing form to match the theme */
.contact__form .uagb-forms-main-form { display: grid; gap: 18px; }
.contact__form .uagb-forms-main-form label,
.contact__form .uagb-forms-input-label {
	display: block;
	margin-bottom: 8px !important;
	font-family: var(--font-mono) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted) !important;
}
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea,
.contact__form select {
	width: 100% !important;
	padding: 14px 16px !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm) !important;
	background: var(--paper) !important;
	color: var(--text) !important;
	font: 16px/1.5 var(--font-body) !important;
	box-shadow: none !important;
	transition: border-color .2s;
}
.contact__form textarea { min-height: 150px; }
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--ink) !important; }
.contact__form .uagb-forms-main-submit-button-wrap { margin-top: 8px; }
.contact__form button[type="submit"],
.contact__form .uagb-forms-main-submit-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: var(--radius-sm) !important;
	background: var(--ink) !important;
	color: var(--on-dark) !important;
	font: 500 15px/1 var(--font-body) !important;
	cursor: pointer;
}
.contact__form button[type="submit"]:hover { background: #2a2a2a !important; }
.contact__form .uagb-forms-success-message,
.contact__form .uagb-forms-failed-message { border-radius: var(--radius-sm); font-size: 15px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
	position: relative;
	padding: clamp(96px, 14vw, 180px) 0;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
	isolation: isolate;
}
/* KL skyline: keep the towers (right side) in frame; text sits on the darker left. */
.cta__media img { object-position: 75% 50%; filter: grayscale(.7) brightness(.7); }
.cta__media::after { background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .7) 55%, rgba(10, 10, 10, .45) 100%); }
.cta__title { max-width: 18ch; font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.03em; }
.cta__text { max-width: 54ch; margin-top: 24px; color: var(--on-dark-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: clamp(72px, 9vw, 112px); background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__top {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--line-dark);
}
.site-footer__statement {
	max-width: 18ch; margin: 0;
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 64px);
	line-height: 1.02;
	letter-spacing: -.035em;
	color: var(--on-dark);
}
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 56px 0; }
.site-footer__col--brand p { max-width: 38ch; margin-top: 24px; }
.brand--footer { color: var(--on-dark); }
.site-footer__title { margin-bottom: 20px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.site-footer__links { display: grid; gap: 10px; list-style: none; }
.social { display: flex; gap: 10px; margin-top: 24px; list-style: none; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	color: var(--on-dark);
	transition: background .2s, color .2s;
}
.social a:hover { background: var(--on-dark); color: var(--ink); }
.wechat { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.wechat img { width: 112px; height: 112px; padding: 6px; background: #fff; border-radius: 12px; }
.wechat figcaption { display: grid; gap: 4px; font-size: 14px; }
.wechat__title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding: 24px 0 32px;
	border-top: 1px solid var(--line-dark);
	font-size: 13px;
}
.site-footer__bottom p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound__title { margin-bottom: 24px; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.035em; }

/* ==========================================================================
   Reveal animation (only when JS is running)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Scroll effects (matched to the Streetwear theme)
   ========================================================================== */
/* Parallax: the photo is 24% taller than its frame and slides inside it.
   9.67% of the image height = 12% of the frame height, the spare room on each side. */
@media (prefers-reduced-motion: no-preference) {
	[data-parallax] img {
		position: absolute;
		left: 0;
		top: -12%;
		width: 100%;
		height: 124%;
		translate: 0 calc(var(--parallax, 0) * -9.67%);
		will-change: translate;
	}
}

/* Masked line reveal: each heading line slides up from behind its own clipped edge. */
.js-line-reveal :is(.hero__title, .hero__text, .page-hero__title, .section-title, .cta__title, .site-footer__statement, .notfound__title):not(.is-split):not(.is-done) { visibility: hidden; }
/* Never leave headings hidden if the theme script fails to load. */
.js-line-reveal:not(.line-reveal-ready) :is(.hero__title, .hero__text, .page-hero__title, .section-title, .cta__title, .site-footer__statement, .notfound__title) { animation: line-reveal-fallback 0s 3s forwards; }
@keyframes line-reveal-fallback { to { visibility: visible; } }
.line-mask { display: block; overflow: hidden; padding: 0 .06em .16em; margin: 0 -.06em -.16em; }
.line-inner {
	display: block;
	white-space: nowrap;
	transform: translate3d(0, 115%, 0);
	transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
	transition-delay: calc(var(--reveal-delay, 0s) + var(--line, 0) * 120ms);
}
.is-line-in .line-inner { transform: none; }

/* Word-by-word reveal (data-split="words"): each word rises from its own mask, tilted, then straightens. */
.word-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding: 0 .05em .16em;
	margin: 0 -.05em -.16em;
}
.word-inner {
	display: inline-block;
	transform: translate3d(0, 110%, 0) rotate(8deg);
	transform-origin: 0 100%;
	transition: transform .9s cubic-bezier(.22, 1, .36, 1);
	transition-delay: calc(var(--reveal-delay, 0s) + var(--word, 0) * 40ms);
}
.is-line-in .word-inner { transform: none; }
.hero__title, .page-hero__title { --reveal-delay: .3s; }

/* ==========================================================================
   Homepage intro / preloader
   White screen -> thin vertical line -> portrait card -> full-screen hero,
   then the header, headline and text come in. Classes set in <head>:
   .has-intro (stays) and .is-intro (removed by main.js when it ends).
   ========================================================================== */
html.is-intro { overflow: hidden; }
.is-intro body,
.is-intro .hero { background: var(--paper); }
/* Text is hidden until .intro-text-in (added at 1.7s, while the photo is still expanding). */
.is-intro:not(.intro-text-in) .site-header,
.is-intro:not(.intro-text-in) .hero__inner { opacity: 0; visibility: hidden; }
.intro-text-in .site-header,
.intro-text-in .hero__inner { animation: intro-fade .6s var(--ease) both; }
.has-intro .hero__title { --reveal-delay: 0s; }
/* Small hero text: same line reveal, slightly after the headline starts. */
.hero__text { --reveal-delay: .15s; }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }

.is-intro .hero__media { animation: intro-reveal 2.5s both; }
.is-intro .hero__media::after { animation: intro-shade 2.5s both; }
/* When the intro ends (2.6s, after the 2.5s animation) the photo is left in its normal,
   full-screen state – so it can never stay clipped if a browser paused the animation. */
@keyframes intro-reveal {
	0%   { clip-path: inset(20% 50% 20% 50%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
	12%  { clip-path: inset(20% 49.9% 20% 49.9%); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }  /* the line */
	46%  { clip-path: inset(20% 37.5% 20% 37.5%); }                                                          /* the card */
	62%  { clip-path: inset(20% 37.5% 20% 37.5%); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
	100% { clip-path: inset(0 0 0 0); }                                                                       /* full screen */
}
/* Keep the photo clean while it's a card; the dark overlay fades in as it fills the screen. */
@keyframes intro-shade {
	0%, 62% { opacity: 0; }
	100%    { opacity: 1; }
}
@media (max-width: 600px) {
	@keyframes intro-reveal {
		0%   { clip-path: inset(24% 50% 24% 50%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
		12%  { clip-path: inset(24% 49.7% 24% 49.7%); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
		46%  { clip-path: inset(24% 22% 24% 22%); }
		62%  { clip-path: inset(24% 22% 24% 22%); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
		100% { clip-path: inset(0 0 0 0); }
	}
}

/* The client's WPCode snippet "Floating WhatsApp Button" adds a floating icon site-wide.
   This theme already has WhatsApp in the header, so hide it here. */
.floating-whatsapp { display: none !important; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
