/* =============================================================
   Vargar — design tokens
   ============================================================= */
:root {
	--pine-950: #0e1b16;
	--pine-900: #142822;
	--pine-800: #1c342c;
	--snow-50:  #f7f5f0;
	--snow-100: #efece3;
	--ink-900:  #16211d;
	--slate-600:#4b5b57;
	--ice-400:  #7fa3ad;
	--ice-300:  #a9c6cd;
	--ember-500:#e2833f;
	--ember-400:#ec9a5c;
	--line-200: #e2ddd0;
	--line-800: #24352e;

	--font-display: "Avenir Next", "Century Gothic", "Segoe UI Semibold", "Segoe UI", Roboto, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

	--wrap: min(1180px, 100% - 3rem);
	--radius: 10px;
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
	margin: 0;
	background: var(--snow-50);
	color: var(--ink-900);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
	position: fixed; top: -3rem; left: 1rem; z-index: 200;
	background: var(--pine-950); color: var(--snow-50);
	padding: 0.6rem 1rem; border-radius: 0 0 6px 6px; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--ember-500); outline-offset: 2px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ember-500);
	margin: 0 0 0.9em;
}
.section__head--light .eyebrow,
.hero .eyebrow { color: var(--ember-400); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	background: var(--ember-500); color: var(--pine-950);
	font-weight: 600; text-decoration: none;
	padding: 0.85rem 1.5rem; border-radius: 999px;
	border: 1px solid var(--ember-500);
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--ember-400); border-color: var(--ember-400); transform: translateY(-1px); }
.btn--ghost {
	background: transparent; color: var(--snow-50); border-color: rgba(247,245,240,0.35);
}
.btn--ghost:hover { background: rgba(247,245,240,0.08); border-color: rgba(247,245,240,0.6); }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }

/* =============================================================
   Header
   ============================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(247,245,240,0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-200);
}
.site-header__inner {
	display: flex; align-items: center; gap: 2rem;
	padding: 1rem 0;
}
.brand {
	display: inline-flex; align-items: center; gap: 0.55rem;
	text-decoration: none; color: var(--ink-900);
	font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
	letter-spacing: 0.01em;
	margin-right: auto;
}
.brand__mark { width: 26px; height: 26px; fill: var(--pine-950); flex: none; }
.brand__dot { fill: var(--ember-500); }
.brand__logo-wrap {
	display: inline-flex; align-items: center;
	background: var(--snow-50); padding: 0.3rem 0.7rem; border-radius: 8px;
	box-shadow: 0 1px 2px rgba(14,27,22,0.08);
}
.brand__logo { height: 30px; width: auto; }
.brand__word { text-transform: uppercase; letter-spacing: 0.06em; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 2rem; }
.nav__list a { text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--ink-900); position: relative; }
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
	background: var(--ember-500); transition: right 0.2s ease;
}
.nav__list a:hover::after, .nav__list .current-menu-item a::after { right: 0; }

.site-header__cta { flex: none; }

.nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: none; border: 1px solid var(--line-200);
	border-radius: 8px; cursor: pointer; flex: none;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-900); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	display: none; flex-direction: column; gap: 1.1rem;
	padding: 1.25rem var(--wrap-pad, 1.5rem) 1.75rem;
	border-top: 1px solid var(--line-200);
	background: var(--snow-50);
}
.mobile-nav__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav__list a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mobile-nav .btn { align-self: flex-start; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 860px) {
	.nav, .site-header__cta { display: none; }
	.nav-toggle { display: flex; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero { background: var(--pine-950); color: var(--snow-50); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
	gap: 3rem; padding: 5rem 0 4rem;
}
.hero__title {
	font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
	color: var(--snow-50);
	max-width: 14ch;
}
.hero__lede { font-size: 1.13rem; color: var(--ice-300); max-width: 46ch; margin-bottom: 1.75em; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__graphic { display: flex; justify-content: center; }

.pack { width: min(420px, 100%); }
.pack__lines line { stroke: #35493f; stroke-width: 1.5; }
.pack__node circle { fill: var(--pine-900); stroke: var(--ice-400); stroke-width: 1.75; }
.pack__node--hub circle { fill: var(--ember-500); stroke: var(--ember-500); }
.pack__node text { fill: var(--ice-300); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

.pack__node { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.pack__lines line {
		stroke-dasharray: 220;
		stroke-dashoffset: 220;
		animation: pack-draw 0.5s ease forwards;
	}
	.pack__lines line:nth-child(2) { animation-delay: 0.05s; }
	.pack__lines line:nth-child(3) { animation-delay: 0.1s; }
	.pack__lines line:nth-child(4) { animation-delay: 0.15s; }
	.pack__node { opacity: 0; animation: pack-fade 0.35s ease forwards; }
	.pack__node:nth-child(2) { animation-delay: 0.08s; }
	.pack__node:nth-child(3) { animation-delay: 0.16s; }
	.pack__node:nth-child(4) { animation-delay: 0.24s; }
	.pack__node:nth-child(5) { animation-delay: 0.32s; }
	.pack__node--hub { animation-delay: 0s; }
	.pack__node--hub circle { animation: pack-pulse 3.2s ease-in-out 0.7s infinite; }
}
@keyframes pack-draw { to { stroke-dashoffset: 0; } }
@keyframes pack-fade { to { opacity: 1; } }
@keyframes pack-pulse {
	0%, 100% { r: 30; }
	50% { r: 32.5; }
}

.ticker {
	border-top: 1px solid var(--line-800);
	overflow: hidden; white-space: nowrap;
	padding: 0.9rem 0;
}
.ticker__track {
	display: inline-flex; gap: 0.6rem; align-items: center;
	font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
	color: var(--ice-300);
	animation: ticker-scroll 28s linear infinite;
}
.ticker__dot { color: var(--ember-500); margin-right: 0.4rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; padding-top: 3rem; text-align: left; }
	.hero__graphic { order: -1; margin-bottom: 1rem; }
	.pack { width: min(340px, 100%); }
}

/* =============================================================
   Sections
   ============================================================= */
.section { padding: 6rem 0; }
.section--alt { background: var(--snow-100); }
.section--dark { background: var(--pine-950); color: var(--snow-50); }
.section--dark h2, .section--dark h3 { color: var(--snow-50); }
.section--dark p { color: var(--ice-300); }

.section__head { max-width: 62ch; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
.section__intro { color: var(--slate-600); font-size: 1.05rem; }
.section__head--light .section__intro { color: var(--ice-300); }

@media (max-width: 640px) {
	.section { padding: 3.5rem 0; }
}

/* Services grid */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--services { grid-template-columns: 1fr; } }

.card {
	background: #fff;
	border: 1px solid var(--line-200);
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(14,27,22,0.35); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--slate-600); font-size: 0.96rem; }
.card__icon { width: 34px; height: 34px; stroke: var(--pine-950); fill: none; stroke-width: 1.6; margin-bottom: 1rem; }
.card__link { display: inline-block; margin-top: 0.4rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--pine-950); border-bottom: 1px solid var(--ember-500); padding-bottom: 2px; }

/* Pillars (why / process) */
.grid--pillars { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid--pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--ember-500); padding-top: 1.25rem; }
.pillar h3 { font-size: 1.1rem; color: var(--snow-50); }

/* CTA band */
.cta-band { background: var(--ember-500); color: var(--pine-950); padding: 4.5rem 0; }
.cta-band__inner { text-align: center; max-width: 46ch; margin-inline: auto; }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.cta-band .btn { background: var(--pine-950); border-color: var(--pine-950); color: var(--snow-50); margin-top: 1rem; }
.cta-band .btn:hover { background: var(--pine-900); border-color: var(--pine-900); }

/* =============================================================
   Page hero (interior pages)
   ============================================================= */
.page-hero { background: var(--pine-950); color: var(--snow-50); padding: 4.5rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); max-width: 20ch; }
.page-hero__lede { color: var(--ice-300); max-width: 56ch; font-size: 1.05rem; }
.page-hero--404 .hero__actions { margin: 1.5rem 0; }

/* Generic prose */
.prose-section { max-width: 72ch; }
.prose-section p { color: var(--ink-900); font-size: 1.05rem; }
.prose-section h2 { margin-top: 1.6em; }

/* Service detail rows */
.service-detail__inner { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 3rem; }
.service-detail__label h2 { font-size: 1.6rem; max-width: 16ch; }
.service-detail__body p { color: var(--slate-600); font-size: 1.02rem; max-width: 60ch; }
.check-list { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink-900); }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px;
	background: var(--ember-500); border-radius: 2px;
}
@media (max-width: 760px) {
	.service-detail__inner { grid-template-columns: 1fr; gap: 1rem; }
}

/* Posts grid */
.grid--posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--posts { grid-template-columns: 1fr; } }
.post-card h2 { font-size: 1.15rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--slate-600); font-size: 0.95rem; }
.post-card__thumb { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.pagination { margin-top: 3rem; }

/* Search */
.search-form { display: flex; gap: 0.6rem; margin-top: 1.5rem; max-width: 420px; }
.search-form input { flex: 1; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--line-200); font: inherit; }
.search-form button { padding: 0.7rem 1.3rem; border-radius: 999px; border: 1px solid var(--pine-950); background: var(--pine-950); color: var(--snow-50); cursor: pointer; }

/* =============================================================
   Contact
   ============================================================= */
.contact-section__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; }
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea {
	font: inherit; padding: 0.8rem 1rem; border: 1px solid var(--line-200); border-radius: 8px;
	background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--ember-500); }
.hp-field { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; border: none; cursor: pointer; }

.form-notice { padding: 0.9rem 1.1rem; border-radius: 8px; font-size: 0.95rem; }
.form-notice--success { background: #e7f3ec; color: #1e5f3f; }
.form-notice--error { background: #fbe9e4; color: #a3402a; }

.contact-section__aside { display: grid; gap: 1.25rem; align-content: start; }
.contact-card { border: 1px solid var(--line-200); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.contact-card a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }

@media (max-width: 820px) {
	.contact-section__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--pine-950); color: var(--ice-300); }
.site-footer__inner {
	display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 3rem;
	padding: 4.5rem 0 3rem;
	border-bottom: 1px solid var(--line-800);
}
.site-footer .brand { color: var(--snow-50); }
.site-footer .brand__mark { fill: var(--snow-50); }
.site-footer .brand__logo-wrap { box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.site-footer__tag { margin-top: 1rem; max-width: 40ch; font-size: 0.95rem; }
.site-footer__list { list-style: none; display: grid; gap: 0.7rem; }
.site-footer__list a { text-decoration: none; font-size: 0.95rem; }
.site-footer__list a:hover { color: var(--snow-50); }
.site-footer__contact { display: grid; gap: 0.6rem; align-content: start; font-size: 0.95rem; }
.site-footer__contact a { text-decoration: none; font-weight: 600; color: var(--snow-50); }
.site-footer__legal { padding: 1.5rem 0; font-size: 0.82rem; color: var(--slate-600); }

@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}
