/*
Theme Name: Frangipani Communications
Theme URI: https://frangipanicommunications.org
Author: Frangipani Communications
Description: Custom landing-page theme for Frangipani Communications — a global communications & marketing agency. Editable via Appearance → Customize → Frangipani Landing Page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frangipani
*/

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
	font-family: "Kudryashev Display Contrast Sans";
	src: url("assets/fonts/kudryashev-display-contrast-sans.otf") format("opentype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--cream: #f8f5ef;
	--cream-2: #f2ede4;
	--paper: #ffffff;
	--ink: #1c1b19;
	--text: #4b4743;
	--muted: #807a72;
	--line: #e6dfd3;
	--gold: #c8873a;
	--gold-dark: #a66b24;
	--gold-soft: #e9c79a;
	--dark: #121110;
	--navy: #1f2b47;

	--font-serif: "Kudryashev Display Contrast Sans", "Times New Roman", serif;
	/* One typeface site-wide: body, UI and headings all use the Kudryashev display face. */
	--font-sans: "Kudryashev Display Contrast Sans", "Times New Roman", serif;
	--font-script: "Mrs Saint Delafield", cursive;

	--container: 1240px;
	--gutter: 32px;
	--header-h: 80px;
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold); 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:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--ink); color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section--tight { padding: 48px 0 96px; }

.icon { width: 1em; height: 1em; flex: none; }

/* ==========================================================================
   Type
   ========================================================================== */
.eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
}
.eyebrow--light { color: var(--gold-soft); }

.section-title {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(1.9rem, 2.8vw, 2.4rem);
	line-height: 1.08;
	letter-spacing: -.01em;
}
.section-title--lg { font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.04; margin-bottom: 22px; }
.section-title--xl { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.02; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px -12px rgba(166, 107, 36, .8); }
.btn--gold:hover { background: var(--gold-dark); }

.btn--outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn--outline:hover { background: var(--gold); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gold);
}
.text-link .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--gold-dark); }
.text-link:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   Logo
   ========================================================================== */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo__mark { width: 40px; height: 40px; flex: none; }
.brand-logo__text { display: flex; flex-direction: column; line-height: 1; }
.brand-logo__name { font-family: var(--font-serif); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.brand-logo__sub { margin-top: 4px; font-size: 8.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.custom-logo { max-height: 56px; width: auto; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(248, 245, 239, .92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	transition: box-shadow .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .25); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	gap: 24px;
}

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav__menu { display: flex; gap: 34px; }
.primary-nav__menu a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	transition: color .2s;
}
.primary-nav__menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1.5px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.primary-nav__menu a:hover,
.primary-nav__menu .current-menu-item > a { color: var(--gold); }
.primary-nav__menu a:hover::after,
.primary-nav__menu .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 12px 10px;
	border: 0;
	background: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}
.nav-toggle__bar { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	min-height: min(calc(100vh - var(--header-h)), 600px);
	background: var(--cream);
}
.hero__content {
	align-self: center;
	padding: 64px 48px 64px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero__title {
	margin-bottom: 0;
	font-family: var(--font-serif);
	font-size: 60px;
	font-weight: 500;
	line-height: 1.2em;
	letter-spacing: -.02em;
}
.hero__subtitle {
	margin: 0 0 12px;
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2em;
	letter-spacing: -.01em;
	color: var(--gold-dark);
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% center;
	animation: hero-zoom 14s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.rule-top {
	background: linear-gradient(var(--line), var(--line)) no-repeat;
	background-size: calc(100% - 2 * var(--gutter)) 1px;
	background-position: var(--gutter) 0;
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands { padding-bottom: 40px; }

.section-head { margin-bottom: 40px; }
.section-head .section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }

.brand-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 88px;
	align-items: center;
	padding: 44px 0;
	border-top: 1px solid var(--line);
}
.brand-row--flip .brand-row__number { order: -1; }
.brand-row__number img { object-position: right center; }
.brand-row--flip .brand-row__number img { object-position: left center; }

.brand-row__title {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
	font-family: var(--font-serif);
	font-size: clamp(1.3rem, 1.9vw, 1.65rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.brand-row__title .is-accent { color: var(--gold); }
.brand-row__tagline { margin-bottom: 20px; color: var(--text); }

.brand-row__number { padding: 0 12px; }
.brand-row__number img {
	width: 100%;
	max-height: 230px;
	object-fit: contain;
	mix-blend-mode: multiply;
}


/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--cream-2); }
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 64px;
	align-items: center;
}
.about__content p { max-width: 520px; margin-bottom: 28px; }

.about__media { position: relative; min-height: 440px; overflow: hidden; }
.about__media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}
.stats {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 64%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 42px 28px;
	padding: 48px 40px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45);
}
.stat__value { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--ink); }
.stat__label { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Clients
   ========================================================================== */
.clients { background: var(--paper); padding-top: 24px; }
.clients__grid {
	display: grid;
	grid-template-columns: .8fr 2.2fr;
	gap: 48px;
	align-items: center;
	padding-top: 56px;
}
.logo-marquee {
	min-width: 0;
	display: grid;
	gap: 28px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__row { display: flex; overflow: hidden; }
.logo-marquee__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 56px;
	padding-right: 56px;
	animation: logo-scroll 60s linear infinite;
}
.logo-marquee__row--reverse .logo-marquee__track { animation-direction: reverse; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 80px;
	flex: none;
}
.logo-marquee__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
	.logo-marquee { -webkit-mask-image: none; mask-image: none; }
	.logo-marquee__row { overflow-x: auto; }
	.logo-marquee__track[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Founder
   ========================================================================== */
.founder {
	display: grid;
	grid-template-columns: .85fr 1.15fr 1.3fr;
	min-height: 400px;
	background: var(--paper);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.founder__portrait { position: relative; background: #1a1918; overflow: hidden; }
.founder__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.founder__bio { align-self: center; padding: 56px 48px; }
.founder__name { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; margin-bottom: 8px; }
.founder__role { margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--ink); }
.founder__bio p:not(.eyebrow):not(.founder__role) { font-size: 14px; }
.founder__bio .btn { margin-top: 8px; }

.founder__quote {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 48px;
	background: var(--cream);
	overflow: hidden;
	isolation: isolate;
}
.founder__quote::before,
.founder__quote::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.founder__quote::before { background: var(--quote-bg) right center / cover no-repeat; }
.founder__quote::after { background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 58%, rgba(248, 245, 239, .6) 74%, rgba(248, 245, 239, 0) 90%); }
.founder__quote blockquote { max-width: 62%; }
.founder__quote .icon-quote { width: 30px; height: 22px; margin-bottom: 18px; color: var(--gold); }
.founder__quote blockquote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; color: var(--ink); }
.founder__quote figcaption { display: flex; flex-direction: column; margin-top: 18px; max-width: 62%; align-items: flex-end; }
.signature { font-family: var(--font-script); font-size: 46px; line-height: 1; color: var(--ink); }
.signature__role { margin-top: 2px; font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding-bottom: 48px; }
.testimonials__grid { display: grid; grid-template-columns: .8fr 2.4fr; gap: 48px; align-items: center; }
.t-carousel { min-width: 0; }
.t-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 20px) / 2);
	gap: 20px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.t-carousel__track::-webkit-scrollbar { display: none; }
.t-carousel__track:focus-visible { outline-offset: 4px; }
.t-carousel__track .testimonial { scroll-snap-align: start; }

.t-carousel__nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.t-carousel__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.t-carousel__btn .icon { width: 16px; height: 16px; }
.t-carousel__btn--prev .icon { transform: rotate(180deg); }
.t-carousel__btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #fff; }
.t-carousel__btn:disabled { opacity: .4; cursor: default; }
.t-carousel__dots { display: flex; gap: 8px; }
.t-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--line);
	cursor: pointer;
	transition: width .3s var(--ease), background-color .3s;
}
.t-carousel__dot[aria-selected="true"] { width: 24px; background: var(--gold); }
.testimonial {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	background: var(--paper);
	border: 1px solid var(--line);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.testimonial:hover { border-color: var(--gold-soft); }
.testimonial .icon-quote { width: 18px; height: 14px; margin-bottom: 12px; color: var(--gold); }
.testimonial blockquote { flex: 1; }
.testimonial blockquote p { font-size: 13.5px; color: var(--text); }
.testimonial figcaption { display: flex; flex-direction: column; font-size: 12px; line-height: 1.5; }
.testimonial figcaption strong { color: var(--ink); font-weight: 600; }
.testimonial figcaption span { color: var(--muted); }

/* ==========================================================================
   Insights
   ========================================================================== */
.insights { padding-top: 48px; }
.insights__grid {
	display: grid;
	grid-template-columns: .8fr 2.4fr;
	grid-template-areas: "head all" "head cards";
	column-gap: 48px;
	row-gap: 20px;
	padding-top: 56px;
}
.insights__grid > header { grid-area: head; align-self: center; }
.insight-cards { grid-area: cards; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insights__all { grid-area: all; justify-self: end; }

.insight__link { display: block; }
.insight__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); }
.insight__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insight__link:hover .insight__image img { transform: scale(1.05); }
.insight__source { margin: 16px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.insight__title { margin: 6px 0 6px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); transition: color .2s; }
.insight__image + .insight__title { margin-top: 16px; }
.insight__link:hover .insight__title { color: var(--gold-dark); }
.insight__date { font-size: 12px; color: var(--muted); }
.insight__excerpt { margin-top: 10px; font-size: 14px; }

/* ==========================================================================
   Dark band (Story)
   ========================================================================== */
.dark-band {
	position: relative;
	overflow: hidden;
	background: var(--dark);
	color: rgba(255, 255, 255, .78);
	isolation: isolate;
}
.dark-band .section-title { color: #fff; }
.dark-band__bg {
	position: absolute;
	inset: -24px;
	z-index: -2;
	background-size: cover;
	background-position: center;
	opacity: .7;
}
.dark-band__bg.is-soft { filter: blur(10px) brightness(.75); opacity: .9; }
.dark-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(12, 11, 10, .92) 0%, rgba(12, 11, 10, .6) 55%, rgba(12, 11, 10, .85) 100%);
}

.story { border-top: 1px solid rgba(255, 255, 255, .08); }
.story__inner {
	display: grid;
	grid-template-columns: 1.3fr auto 1.2fr auto;
	gap: 40px;
	align-items: center;
	padding-top: 56px;
	padding-bottom: 56px;
}
.story__content .section-title { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 14px; }
.story__content p { margin: 0; font-size: 13px; }
.story__map img {
	width: 100%;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
}
.story__locations { display: grid; gap: 10px; }
.story__locations li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #fff; }
.story__locations .icon-pin { width: 14px; height: 14px; color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--paper); font-size: 15px; }
.site-footer__top {
	display: grid;
	grid-template-columns: 1.6fr 1.2fr .8fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 44px;
}
.site-footer__tagline { margin-top: 12px; font-size: 12px; color: var(--muted); }
.site-footer__title { margin-bottom: 16px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }

.contact-list li { display: flex; gap: 10px; margin: 0; line-height: 1.55; }
.contact-list { display: grid; gap: 10px; }
.contact-list .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.contact-list a:hover { color: var(--gold-dark); }

.social-links { display: flex; gap: 14px; }
.social-links a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); transition: color .2s, transform .2s var(--ease); }
.social-links a:hover { color: var(--gold); transform: translateY(-2px); }
.social-links .icon { width: 19px; height: 19px; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 26px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-menu a:hover { color: var(--gold); }
.copyright { margin: 0; color: var(--muted); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding: 88px 0 40px; }
.page-hero--center { text-align: center; padding: 140px 0; }
.page-hero--center p { max-width: 520px; margin: 18px auto 30px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.single-thumb img { width: 100%; }

.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content h2,
.entry-content h3 { margin: 1.6em 0 .6em; font-family: var(--font-serif); line-height: 1.15; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--gold); font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--ink); }
.entry-content img { margin: 1.4em 0; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--muted); }

.navigation.pagination { margin-top: 56px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; }
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ==========================================================================
   Brand Division page
   ========================================================================== */
.division-hero { padding: 72px 0 24px; }
.division-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.division-hero__title {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
	font-family: var(--font-serif);
	font-size: clamp(2.4rem, 4.4vw, 3.7rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.division-hero__title .is-accent { color: var(--gold); }
.division-hero__tagline { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.35; color: var(--text); }
.division-hero__media img {
	width: 100%;
	max-height: 340px;
	object-fit: contain;
	object-position: right center;
	mix-blend-mode: multiply;
}

.services { padding-top: 64px; }
.service-rows,
.service-aside__list { margin: 0; padding: 0; list-style: none; }
.service-rows { border-bottom: 1px solid var(--line); }
.service-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) 48px;
	gap: 32px;
	align-items: center;
	padding: 30px 8px;
	border-top: 1px solid var(--line);
	transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.service-row__num { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--gold); }
.service-row__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--ink); }
.service-row__tagline { font-size: 14px; color: var(--muted); }
.service-row__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.service-row__arrow .icon { width: 16px; height: 16px; }
.service-row:hover { background: var(--paper); padding-left: 20px; padding-right: 20px; }
.service-row:hover .service-row__title { color: var(--gold-dark); }
.service-row:hover .service-row__arrow { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateX(4px); }

/* ==========================================================================
   Service page
   ========================================================================== */
.service-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; font-size: 12px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs [aria-current] { color: var(--ink); }
.service-hero .section-title { max-width: 900px; margin-bottom: 20px; }
.service-hero__tagline { max-width: 760px; margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; color: var(--gold-dark); }

.service-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 80px;
	align-items: start;
	padding-top: 24px;
}
.service-body { font-size: 16px; line-height: 1.85; }
.service-body > p:first-child {
	margin-bottom: 1.4em;
	font-family: var(--font-serif);
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	line-height: 1.45;
	color: var(--ink);
}
.service-body h2 {
	margin: 56px 0 24px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	font-size: 1.7rem;
}
.service-body ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	counter-reset: service-item;
}
.service-body ul li {
	position: relative;
	padding: 16px 0 16px 44px;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	counter-increment: service-item;
}
.service-body ul li::before {
	content: counter(service-item, decimal-leading-zero);
	position: absolute;
	top: 19px;
	left: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--gold);
}
.service-body ul li strong { display: block; margin-bottom: 2px; font-weight: 600; }
.service-body ul li:has(strong) { color: var(--muted); font-size: 14px; }
.service-body ul li:has(strong) strong { color: var(--ink); font-size: 15px; }

.service-closing {
	margin-top: 48px;
	padding: 40px 44px;
	background: var(--dark);
	color: rgba(255, 255, 255, .78);
}
.service-closing::before {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin-bottom: 24px;
	background: var(--gold);
}
.service-closing p { margin: 0 0 .9em; }
.service-closing p:first-of-type { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; color: #fff; }
.service-closing p:last-child { margin-bottom: 0; }

.service-aside__inner {
	position: sticky;
	top: calc(var(--header-h) + 32px);
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--line);
}
.admin-bar .service-aside__inner { top: calc(var(--header-h) + 64px); }
.service-aside__list { margin-bottom: 24px; }
.service-aside__list a {
	display: block;
	padding: 11px 0 11px 14px;
	border-bottom: 1px solid var(--line);
	border-left: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text);
	transition: color .2s, border-color .2s;
}
.service-aside__list li:last-child a { border-bottom: 0; }
.service-aside__list a:hover { color: var(--gold-dark); }
.service-aside__list a[aria-current] { border-left-color: var(--gold); color: var(--ink); font-weight: 600; }
.service-aside .btn { width: 100%; justify-content: center; }

.service-pager { border-top: 1px solid var(--line); }
.service-pager__inner { display: grid; grid-template-columns: 1fr 1fr; }
.service-pager__link { display: flex; flex-direction: column; gap: 6px; padding: 40px 0; }
.service-pager__link .eyebrow { margin: 0; }
.service-pager__link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.service-pager__title { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; color: var(--ink); transition: color .2s; }
.service-pager__title .icon { width: 20px; height: 20px; color: var(--gold); transition: transform .25s var(--ease); }
.service-pager__link--prev .icon { transform: rotate(180deg); }
.service-pager__link:hover .service-pager__title { color: var(--gold-dark); }
.service-pager__link--next:hover .icon { transform: translateX(4px); }
.service-pager__link--prev:hover .icon { transform: rotate(180deg) translateX(4px); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero { padding-bottom: 24px; }
.contact-hero__intro { max-width: 640px; margin-top: 20px; font-size: 16px; }
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
	gap: 64px;
	align-items: start;
}
.contact-info { border-top: 1px solid var(--line); }
.contact-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-block__title { margin-bottom: 14px; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact-block__list { display: grid; gap: 14px; }
.contact-block__list li,
.contact-block__link { display: flex; align-items: flex-start; gap: 12px; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.contact-block .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }
.contact-block__link { transition: color .2s; }
.contact-block__link:hover { color: var(--gold-dark); }

.contact-form-wrap { padding: 44px; background: var(--paper); border: 1px solid var(--line); }
.contact-form-wrap .section-title { margin-bottom: 28px; }
.contact-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.contact-form__field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.contact-form label span { color: var(--gold); }
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--cream);
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	transition: border-color .2s, background-color .2s;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); }
.contact-form .btn { align-self: flex-start; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { margin-bottom: 24px; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--cream); font-size: 14px; color: var(--ink); }
.contact-notice--invalid,
.contact-notice--error { border-left-color: #b4432f; }

/* ==========================================================================
   Careers page
   ========================================================================== */
.careers-content { display: grid; gap: 32px; }
.job {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 0 56px;
	padding: 44px;
	background: var(--paper);
	border: 1px solid var(--line);
}
.job > h2 {
	grid-column: 1;
	align-self: center;
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	line-height: 1.15;
}
.job__apply { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
.job__col { grid-row: 2; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.job__col + .job__col { grid-column: 2; }
.job h3 {
	margin: 0 0 16px;
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
}
.job ul + h3 { margin-top: 36px; }
.job ul { margin: 0; padding: 0; list-style: none; }
.job li {
	position: relative;
	padding: 9px 0 9px 22px;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text);
}
.job li:last-child { border-bottom: 0; }
.job li::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 0;
	width: 8px;
	height: 1px;
	background: var(--gold);
}

/* ==========================================================================
   About page: founder profile
   ========================================================================== */
.about-story .entry-content > p:first-child {
	margin-bottom: 1.4em;
	font-family: var(--font-serif);
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	line-height: 1.45;
	color: var(--ink);
}
.about-story .service-closing { margin-top: 48px; }
.about-company {
	margin-top: 72px;
	padding-top: 56px;
	border-top: 1px solid var(--line);
}
.entry-content .about-company h2 {
	margin: 0 0 28px;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	line-height: 1.05;
}

/* ==========================================================================
   Reveal animation (only when JS is running)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .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 .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.primary-nav { gap: 24px; }
	.primary-nav__menu { gap: 22px; }
	.founder { grid-template-columns: .8fr 1.2fr; }
	.founder__quote { grid-column: 1 / -1; min-height: 300px; }
	.story__inner { grid-template-columns: 1.4fr auto 1fr; }
	.story__map { display: none; }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }

	.nav-toggle { display: flex; }
	.primary-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		padding: 16px var(--gutter) 32px;
		background: var(--cream);
		box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 32px); }
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.primary-nav__menu { flex-direction: column; gap: 0; width: 100%; }
	.primary-nav__menu li { border-bottom: 1px solid var(--line); }
	.primary-nav__menu a { padding: 14px 0; font-size: 15px; }
	.primary-nav__menu a::after { display: none; }

	.section { padding: 72px 0; }

	.brand-row { grid-template-columns: 1fr; gap: 28px; }
	.brand-row__number,
	.brand-row--flip .brand-row__number { order: -1; }
	.brand-row__number img,
	.brand-row--flip .brand-row__number img { object-position: center; }
	.brand-row__number img { max-height: 200px; }

	.about__grid,

	.clients__grid,
	.testimonials__grid { grid-template-columns: 1fr; gap: 32px; }

	.insights__grid { grid-template-columns: 1fr; grid-template-areas: "head" "cards" "all"; }
	.insights__all { justify-self: start; }

	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }

	.division-hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.division-hero__media { order: -1; }
	.division-hero__media img { max-height: 220px; object-position: left center; }
	.service-row { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 8px 20px; }
	.service-row__tagline { grid-column: 2; grid-row: 2; }
	.service-row__arrow { grid-column: 3; grid-row: 1 / span 2; }
	.service-layout { grid-template-columns: 1fr; gap: 48px; }
	.service-aside__inner { position: static; }
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.job { grid-template-columns: 1fr; }
	.job__apply { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 20px; }
	.job__col,
	.job__col + .job__col { grid-column: 1; grid-row: auto; }
	.job__col + .job__col { margin-top: 0; border-top: 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; }

	.section { padding: 60px 0; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__content { padding: 48px var(--gutter) 40px; }
	.hero__title { font-size: 40px; }
	.hero__subtitle { font-size: 24px; }
	.hero__media { aspect-ratio: 4 / 3; order: 2; }


	.brand-row { padding: 36px 0; }
	.brand-row__number img { max-height: 150px; }

	.about__media { min-height: 0; display: grid; }
	.about__media > img { position: static; height: 260px; }
	.stats { position: static; transform: none; width: 100%; padding: 32px 24px; }

	.logo-marquee__item { width: 120px; height: 64px; }
	.logo-marquee__track { gap: 36px; padding-right: 36px; animation-duration: 45s; }

	.founder { grid-template-columns: 1fr; }
	.founder__portrait { aspect-ratio: 4 / 3; }
	.founder__bio,
	.founder__quote { padding: 44px var(--gutter); }
	.founder__quote::after { background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 62%, rgba(248, 245, 239, .7) 100%); }
	.founder__quote blockquote,
	.founder__quote figcaption { max-width: none; }

	.insight-cards,
	.post-grid { grid-template-columns: 1fr; }
	.t-carousel__track { grid-auto-columns: 100%; }

	.story__inner { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
	.story__locations { grid-template-columns: repeat(2, 1fr); }

	.site-footer__top { grid-template-columns: 1fr; gap: 32px; }

	.division-hero { padding-top: 40px; }
	.service-row { grid-template-columns: 36px minmax(0, 1fr) 40px; padding: 24px 0; gap: 6px 14px; }
	.service-row:hover { padding-left: 0; padding-right: 0; background: none; }
	.service-row__arrow { width: 40px; height: 40px; }
	.service-hero { padding: 40px 0 32px; }
	.breadcrumbs { margin-bottom: 28px; }
	.service-body ul { grid-template-columns: 1fr; }
	.service-closing { padding: 32px 24px; }
	.contact-form-wrap { padding: 28px 20px; }
	.contact-form { grid-template-columns: 1fr; }
	.job { padding: 28px 20px; }
	.service-pager__inner { grid-template-columns: 1fr; }
	.service-pager__link--next { grid-column: 1; }
	.service-pager__link { padding: 28px 0; }
	.service-pager__link + .service-pager__link { border-top: 1px solid var(--line); }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
