/*
Theme Name: Kaarvaan
Theme URI: https://kaarvaangroup.com/
Author: Kaarvaan Group LLC
Description: Hand-written one-page portfolio theme for Kaarvaan Group LLC. No third-party code.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kaarvaan
*/

@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
	--ink: #0d0b08;
	--ink-2: #16120c;
	--ivory: #f3ede2;
	--ivory-2: #e9e1d2;
	--sand: #c6bba8;
	--gold: #cfae6b;
	--gold-deep: #6f5220;
	--muted-dark: #4d4436;
	--line-dark: rgba(207, 174, 107, 0.24);
	--line-light: rgba(77, 68, 54, 0.22);
	--serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 72px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.name :focus-visible, .ways :focus-visible { outline-color: var(--gold-deep); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}
.skip {
	position: fixed; top: -60px; left: 16px; z-index: 30;
	padding: 10px 16px; background: var(--ivory); color: var(--ink);
}
.skip:focus { top: 12px; }

.eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold);
}
.section-title {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(2.4rem, 5.4vw, 4.6rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
}
.line-link {
	position: relative;
	display: inline-block;
	padding-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ivory);
}
.line-link::before, .line-link::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
}
.line-link::before { background: var(--line-dark); }
.line-link::after {
	background: var(--gold);
	transform: scaleX(0.28);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}
.line-link:hover::after, .line-link:focus-visible::after { transform: scaleX(1); }

/* Header */
.top {
	position: fixed; inset: 0 0 auto; z-index: 20;
	display: flex; align-items: center; gap: 32px;
	padding: 26px var(--gutter);
	transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.top.is-stuck {
	padding-top: 14px; padding-bottom: 14px;
	background: rgba(13, 11, 8, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line-dark);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; }
.brand__word {
	font-family: var(--serif);
	font-size: 21px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ivory);
}
.top__nav { display: flex; gap: 34px; margin-left: auto; }
.top__nav a, .top__tel {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.3s;
}
.top__nav a:hover, .top__tel:hover { color: var(--gold); }
.top__tel { padding-left: 32px; border-left: 1px solid var(--line-dark); white-space: nowrap; letter-spacing: 0.08em; }

/* Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 130px var(--gutter) 90px;
	overflow: hidden;
	background: #090809;
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 100%;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 8, 9, 0.72) 0%, rgba(9, 8, 9, 0.38) 42%, rgba(9, 8, 9, 0) 68%), linear-gradient(180deg, rgba(13, 11, 8, 0) 84%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; }
.hero__title {
	margin: 24px 0 20px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(3.3rem, 8.6vw, 7.6rem);
	line-height: 0.98;
	letter-spacing: -0.015em;
}
.hero__sub {
	display: block;
	margin-top: 14px;
	font-style: italic;
	font-size: 0.42em;
	line-height: 1.15;
	letter-spacing: 0;
	color: var(--gold);
}
.hero__text { max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ivory-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 36px; }

/* Key figures */
.stats { padding: clamp(40px, 6vw, 70px) var(--gutter); border-bottom: 1px solid var(--line-dark); }
.stats__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
}
.stats__list > div { display: flex; flex-direction: column; padding-left: 22px; border-left: 1px solid var(--line-dark); }
.stats__list dd { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--gold); }
.stats__list dt { margin-top: 10px; font-size: 13px; color: var(--sand); }

/* Who we are */
.who { padding: clamp(90px, 12vw, 170px) var(--gutter); }
.who__grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(32px, 7vw, 110px);
	align-items: end;
	max-width: 1320px;
	margin: 0 auto;
}
.who .section-title { margin-top: 18px; }
.who__text p { color: var(--sand); margin-bottom: 18px; }
.who__text p:last-child { margin-bottom: 0; }

/* Who we serve */
.fields { padding: clamp(90px, 12vw, 170px) var(--gutter); background: var(--ivory); color: var(--ink); }
.fields .eyebrow, .eyebrow--dark, .steps .eyebrow { color: var(--gold-deep); }
.fields__head, .steps__head, .promise__head { max-width: 1320px; margin: 0 auto clamp(44px, 6vw, 76px); }
.fields__head .section-title, .steps__head .section-title, .promise__head .section-title { margin-top: 18px; max-width: 860px; }
.fields__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); max-width: 1320px; margin: 0 auto; }
.fields__list li { padding: clamp(26px, 3vw, 40px); background: #fbf7ef; border: 1px solid var(--line-light); }
.fields__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin-bottom: 12px; }
.fields__list p { color: var(--muted-dark); }

/* How a company takes shape */
.steps { padding: clamp(90px, 12vw, 170px) var(--gutter); background: var(--ivory-2); color: var(--ink); }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); max-width: 1320px; margin: 0 auto; counter-reset: step; }
.steps__list li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--gold-deep); }
.steps__list li::before { content: "0" counter(step); display: block; margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2.2rem; line-height: 1; color: var(--gold-deep); }
.steps__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
.steps__list p { color: var(--muted-dark); font-size: 15px; }

/* Our promise */
.promise { padding: clamp(90px, 12vw, 170px) var(--gutter); }
.promise__list { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--line-dark); }
.promise__list li { padding: 30px clamp(20px, 4vw, 56px) 30px 0; border-bottom: 1px solid var(--line-dark); }
.promise__list h3 { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1.2; margin-bottom: 8px; }
.promise__list p { color: var(--sand); max-width: 540px; }

/* Where we operate */
.reach { padding: clamp(80px, 10vw, 140px) var(--gutter); text-align: center; border-top: 1px solid var(--line-dark); }
.reach__inner { max-width: 860px; margin: 0 auto; }
.reach .section-title { margin: 18px 0 20px; }
.reach p:last-child { color: var(--sand); }

/* What we do */
.does { padding: clamp(90px, 12vw, 170px) var(--gutter); border-top: 1px solid var(--line-dark); }
.does__head { max-width: 1320px; margin: 0 auto clamp(44px, 6vw, 80px); }
.does__head .section-title { margin-top: 18px; max-width: 880px; }
.does__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 56px) clamp(24px, 4vw, 56px); max-width: 1320px; margin: 0 auto; }
.does__list li { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.does__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin-bottom: 10px; }
.does__list p { color: var(--sand); }

/* Companies page */
.company { padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line-dark); }
.company__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1320px; margin: 0 auto; }
.company:nth-of-type(odd) .company__media { order: 2; }
.company__media img { width: 100%; height: auto; border: 1px solid var(--line-dark); }
.company h2 { margin: 12px 0 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; }
.company__text { color: var(--sand); margin-bottom: 22px; }

/* The name */
.name { background: var(--ivory); color: var(--ink); padding: clamp(90px, 13vw, 180px) var(--gutter); }
.name__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 7vw, 110px);
	align-items: end;
	max-width: 1320px;
	margin: 0 auto;
}
.name__word {
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(4rem, 12.5vw, 11rem);
	line-height: 0.9;
	letter-spacing: -0.02em;
}
.name__sense { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.3; margin-bottom: 22px; }
.name__text { color: var(--muted-dark); max-width: 520px; }
.name__link { margin-top: 30px; }
.line-link--dark { color: var(--ink); }
.line-link--dark::before { background: var(--line-light); }
.line-link--dark::after { background: var(--gold-deep); }

/* Portfolio */
.ventures { padding: clamp(90px, 12vw, 170px) var(--gutter) clamp(50px, 6vw, 90px); }
.ventures__head { max-width: 1320px; margin: 0 auto clamp(56px, 8vw, 110px); }
.ventures__head .section-title { margin-top: 18px; }
.venture {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: clamp(28px, 6vw, 90px);
	align-items: center;
	max-width: 1320px;
	margin: 0 auto clamp(70px, 10vw, 140px);
}
.venture:nth-of-type(even) { grid-template-columns: 1fr 1.45fr; }
.venture:nth-of-type(even) .venture__media { order: 2; }
.venture__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 8 / 5;
	border: 1px solid var(--line-dark);
	background: var(--ink-2);
}
.venture__media img {
	width: 100%; height: 100%; object-fit: cover; object-position: top;
	filter: saturate(0.82) brightness(0.9);
	transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.venture:hover .venture__media img { transform: scale(1.035); filter: none; }
.venture__index {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 300;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--gold);
	margin-bottom: 26px;
}
.venture__name {
	margin: 12px 0 18px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(2.3rem, 4.4vw, 3.8rem);
	line-height: 1.05;
}
.venture__text { color: var(--sand); margin-bottom: 22px; }
.venture__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 30px; font-size: 14px; color: var(--ivory-2); }
.venture__list li { position: relative; padding-left: 16px; }
.venture__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--gold); }

/* Principles */
.ways { background: var(--ivory-2); color: var(--ink); padding: clamp(90px, 12vw, 170px) var(--gutter); }
.ways .eyebrow { color: var(--gold-deep); }
.ways__head { max-width: 1320px; margin: 0 auto clamp(48px, 7vw, 90px); }
.ways__head .section-title { margin-top: 18px; max-width: 760px; }
.ways__list { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1320px; margin: 0 auto; }
.ways__list li { padding: 34px clamp(20px, 3vw, 48px) 8px; border-left: 1px solid var(--line-light); }
.ways__list li:first-child { padding-left: 0; border-left: 0; }
.ways__list h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; margin-bottom: 12px; }
.ways__list p { color: var(--muted-dark); }

/* Partners */
.partners { padding: clamp(90px, 12vw, 170px) var(--gutter); }
.partners__inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(40px, 7vw, 110px);
	align-items: end;
	max-width: 1320px;
	margin: 0 auto;
}
.partners .section-title { margin-top: 18px; }
.partners__list li { padding: 26px 0; border-top: 1px solid var(--line-dark); }
.partners__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.partners__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.15; }
.partners__role { margin-top: 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* Contact */
.contact { background: radial-gradient(70% 80% at 12% 100%, #2a1f11 0%, var(--ink) 70%); padding: clamp(100px, 13vw, 190px) var(--gutter); }
.contact__inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(40px, 7vw, 110px);
	align-items: end;
	max-width: 1320px;
	margin: 0 auto;
}
.contact .section-title { margin: 18px 0 20px; }
.contact__text { color: var(--sand); max-width: 480px; }
.contact__list > div { padding: 24px 0; border-top: 1px solid var(--line-dark); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line-dark); }
.contact__list dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact__list dd { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }

/* Footer */
.foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
	padding: 30px var(--gutter);
	border-top: 1px solid var(--line-dark);
	font-size: 13px;
	color: var(--sand);
}

.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* Inner page heading and questions */
.intro { padding: 170px var(--gutter) clamp(50px, 7vw, 90px); background: radial-gradient(80% 120% at 80% 0%, #2a1f11 0%, var(--ink) 70%); }
.intro__inner, .band__inner { max-width: 1120px; margin: 0 auto; }
.intro h1 { margin: 16px 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: 1.02; }
.intro p:last-child { max-width: 640px; color: var(--sand); }
.band { padding: clamp(60px, 9vw, 110px) var(--gutter); }
.band--light { background: var(--ivory); color: var(--ink); }
.band h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 24px; }
.band--light .prose { color: var(--muted-dark); }
.prose > * { max-width: 720px; }
.band + .partners .partners__inner { max-width: 1120px; }
.prose h2 { margin-top: 44px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose a { color: var(--gold-deep); }
.brand-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.brand-list li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.brand-list h3 { font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1.15; margin: 8px 0 10px; }
.brand-list p { color: var(--sand); }
.brand-list .eyebrow { color: var(--gold); }
.brand-list .line-link { margin-top: 16px; }
.faq .eyebrow { margin-bottom: 14px; }
.faq__more { margin-top: 32px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary { padding: 20px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.faq p { padding-bottom: 22px; color: var(--muted-dark); max-width: 720px; }
.contact-page { max-width: 760px; }

/* Plain pages */
main.page { max-width: 780px; margin: 0 auto; padding: 170px var(--gutter) 110px; }
.page__body { margin-top: 32px; color: var(--sand); }
.page__body h2, .page__body h3 { font-family: var(--serif); font-weight: 400; color: var(--ivory); margin: 32px 0 10px; }
.page__body p { margin-bottom: 16px; }

/* Reveal: only hides anything once JavaScript has confirmed it will run. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.name__grid, .venture, .venture:nth-of-type(even), .contact__inner, .partners__inner { grid-template-columns: 1fr; }
	.venture:nth-of-type(even) .venture__media { order: 0; }
	.ways__list, .brand-list, .who__grid, .company__grid, .fields__list, .promise__list { grid-template-columns: 1fr; }
	.steps__list { grid-template-columns: 1fr 1fr; }
	.company:nth-of-type(odd) .company__media { order: 0; }
	.does__list, .stats__list { grid-template-columns: 1fr 1fr; }
	.ways__list li, .ways__list li:first-child { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-light); }
	.top__tel { display: none; }
}

@media (max-width: 560px) {
	.top { gap: 16px; padding-top: 18px; padding-bottom: 18px; }
	.brand__word { font-size: 16px; letter-spacing: 0.22em; }
	.brand__mark { width: 22px; height: 22px; }
	.top__nav { gap: 16px; }
	.top__nav a { font-size: 10.5px; letter-spacing: 0.1em; }
	.does__list { grid-template-columns: 1fr; }
	.hero { align-items: flex-start; padding-top: 104px; }
	.hero__bg { object-position: 78% 100%; }
	.steps__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
