/* ============================================================
   yre2026 design system - light corporate.
   White bg · near-black ink (#101418) · deep-blue accent (#1D4ED8).
   Separation via soft surfaces, shadow, and spacing - borders stay rare
   and hairline-subtle when used.
   ============================================================ */

:root {
	--bg: #ffffff;
	--bg-soft: #f5f7fa;
	--surface: #ffffff;
	--ink: #101418;
	--ink-soft: #47505c;
	--ink-faint: #6b7280;
	--accent: #1d4ed8;
	--accent-deep: #1e40af;
	--accent-soft: #e8edfb;
	--accent-2: #22d3ee;       /* cyan - secondary accent */
	--accent-2-deep: #0891b2;
	--accent-2-soft: #ecfafd;  /* band tint */
	--grad-brand: linear-gradient(100deg, var(--accent) 0%, var(--accent-2-deep) 70%, var(--accent-2) 115%);
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--shadow-card: 0 1px 2px rgba(16, 20, 24, 0.05), 0 8px 24px rgba(16, 20, 24, 0.06);
	--shadow-card-hover: 0 2px 4px rgba(16, 20, 24, 0.06), 0 16px 40px rgba(16, 20, 24, 0.10);
	--font-display: "Sora", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--font-ui: "Manrope", "Sora", system-ui, sans-serif;
	--container: 1120px;
	--radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	/* The old .section-alt wash, promoted to the whole site (2026-07-26).
	   Fixed attachment keeps the wash pinned to the viewport so it reads the
	   same on short and long pages. */
	background:
		radial-gradient(900px 440px at 12% 18%, rgba(29, 78, 216, 0.11), transparent 70%),
		radial-gradient(900px 440px at 88% 82%, rgba(34, 211, 238, 0.15), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #edf3fa 35%, #edf3fa 65%, #ffffff 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.72em 1.5em;
	border-radius: 999px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
	background: linear-gradient(120deg, var(--accent) 0%, #2563eb 60%, var(--accent-2-deep) 130%);
	color: #fff;
	box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn-ghost {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.btn-ghost:hover { background: #dce5f9; color: var(--accent-deep); }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(16, 20, 24, 0.07), 0 8px 24px rgba(16, 20, 24, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 42px; width: auto; }
.brand-mark { flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-360 {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 1.16rem;
	margin-left: 1px;
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; list-style: none; gap: 26px; }
.nav-list a {
	font-family: var(--font-ui);
	font-size: 0.97rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	color: var(--ink-soft);
}
.nav-list a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
/* Photo hero (v10C) retired 2026-07-26 for the one-pager gradient hero -
   see the "One-pager" section at the end of this file. hero-bg.jpg kept in
   assets for possible reuse on inner pages. */
.grad {
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.eyebrow {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}
.hero-sub { max-width: 540px; font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-title { margin-bottom: 40px; }

/* "Wire" motif: a thin line ending in a terminal node under section titles. */
.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 14px;
	border-radius: 2px;
	background: radial-gradient(circle 4.5px at calc(100% - 4.5px) 50%, var(--accent-2-deep) 4.4px, transparent 5px),
		linear-gradient(90deg, var(--accent), var(--accent-2-deep)) left center / calc(100% - 12px) 3px no-repeat;
}

/* ---------- Soft full-width gradient washes ---------- */
/* The wash now lives on body (site-wide, fixed). .section-alt kept as a
   no-op so templates don't need touching. */
.section-alt { background: none; }

/* ---------- Cards ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}
.card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card-date { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 8px; }

/* ---------- Principles ---------- */
.principle-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
}
.principle h3 { color: var(--accent-deep); margin-bottom: 8px; }
.principle p { color: var(--ink-soft); }

/* ---------- Billing strip ---------- */
.billing-strip { background: var(--ink); color: #e7ebf0; padding: 40px 0; }
.billing-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.billing-strip code {
	background: rgba(255, 255, 255, 0.12);
	padding: 0.15em 0.5em;
	border-radius: 6px;
	font-size: 0.95em;
}
.billing-strip .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.billing-strip .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 56px; background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.lede { max-width: 640px; font-size: 1.15rem; color: var(--ink-soft); margin-top: 20px; }

/* ---------- Offer list (What we do) ---------- */
.offer-list { display: grid; gap: 22px; max-width: 820px; }
.offer {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 34px 36px;
	box-shadow: var(--shadow-card);
}
.offer h2 { font-size: 1.35rem; margin-bottom: 10px; }
.offer p { color: var(--ink-soft); }
.offer em { font-style: normal; font-weight: 600; color: var(--accent-deep); }

/* ---------- Facts (About) ---------- */
.fact-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 22px;
}
.fact {
	background: var(--bg-soft);
	border-radius: var(--radius);
	padding: 26px 28px;
}
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; }
.fact span { color: var(--ink-faint); font-size: 0.9rem; }
.fact-note { margin-top: 24px; color: var(--ink-soft); font-size: 0.95rem; max-width: 640px; }

/* ---------- Prose ordered lists ---------- */
.prose ol { margin-bottom: 1.2em; padding-left: 1.3em; color: var(--ink-soft); }
.prose ol li { margin-bottom: 0.6em; }
.prose ul { padding-left: 1.3em; }
.prose code {
	background: var(--accent-soft);
	color: var(--accent-deep);
	padding: 0.1em 0.45em;
	border-radius: 6px;
	font-size: 0.92em;
}
.prose em { color: var(--ink-faint); }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin: 1.6em 0 0.6em; }
.prose strong { color: var(--ink); }

/* Contact form (CF7) */
.prose .wpcf7 { margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--bg-soft);
	border: 0;
	border-radius: 10px;
	padding: 0.85em 1em;
	margin-bottom: 14px;
	outline: none;
	transition: box-shadow 0.15s ease;
}
.wpcf7 select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35); }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] {
	font-family: var(--font-ui);
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: 999px;
	padding: 0.75em 1.8em;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-deep); }

/* ---------- Footer (gradient CTA - one-pager concept) ---------- */
.site-footer { background: linear-gradient(-140deg, var(--accent) 12%, #22D3EE 82%); color: #fff; margin-top: 0; }
.footer-cta {
	display: grid;
	grid-template-columns: 1.2fr 1px 1fr;
	gap: 56px;
	align-items: center;
	padding: 110px 24px 90px;
}
.footer-cta h2 {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.22;
	color: #fff;
}
.footer-divider { width: 1px; height: 100%; min-height: 220px; background: rgba(255, 255, 255, 0.55); }
.footer-label {
	font-family: var(--font-ui);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 22px;
}
.footer-label:first-child { margin-top: 0; }
.footer-value { display: inline-block; font-size: 1.28rem; color: #fff; margin-top: 2px; }
.footer-value:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	padding-top: 26px;
	padding-bottom: 34px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.88);
}
.footer-note code { font-family: var(--font-mono); background: rgba(255, 255, 255, 0.16); padding: 2px 6px; border-radius: 4px; color: #fff; }
.footer-note { display: flex; align-items: center; gap: 8px; }
.stripe-mark { height: 22px; width: auto; display: inline-block; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.88); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; font-family: var(--font-display); }
.pagination .nav-links { display: flex; gap: 10px; }

/* ---------- Reveal animations ----------
   Directional variants + per-element data-delay (set as transition-delay by
   yre.js) - AOS-style staggering without the dependency. */
html.js body:not(.qa) .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js body:not(.qa) .reveal-l { transform: translateX(30px); }
html.js body:not(.qa) .reveal-r { transform: translateX(-30px); }
html.js body:not(.qa) .reveal-d { transform: translateY(-22px); }
html.js body:not(.qa) .reveal.in { opacity: 1; transform: none; }
html.js body:not(.qa) .wire-v { transform: scaleY(0); transform-origin: top; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.3, 1); }
html.js body:not(.qa) .wire-v.in { transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
		flex-direction: column;
		gap: 6px;
		background: none;
		border: 0;
		padding: 10px;
		cursor: pointer;
	}
	.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
	.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

	.site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		background: #fff;
		padding: 20px 24px 28px;
		box-shadow: 0 24px 40px rgba(16, 20, 24, 0.12);
		transform: translateY(-130%);
		transition: transform 0.25s ease;
	}
	.site-nav.open { transform: none; }
	.nav-list { flex-direction: column; gap: 4px; width: 100%; }
	.nav-list a { display: block; padding: 10px 0; font-size: 1.05rem; color: var(--ink); }
	.nav-cta { margin-top: 10px; }

	.form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==================== One-pager (2026-07-26) ====================
   Layout/motion concept modeled on dasmailarchiv.de, rebuilt with the YRE
   brand: blue→cyan gradient hero/footer, wire-and-node arc, line draws. */

/* Smooth scrolling is applied per-click in yre.js (CSS scroll-behavior would
   also animate on-load anchor jumps, which fights the reveal animations).
   overflow-anchor off: scroll anchoring cancels smooth scrolls when reveal
   transforms fire mid-pass. */
html { overflow-anchor: none; }
section[id], footer[id] { scroll-margin-top: 0; }

/* Full-viewport sections (owner request): every main section fills the
   screen with centered content; breaker + footer stay compact bands. */
#what-we-do, #how-we-work, #about, #news {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* In a column flex parent, the container's auto margins would shrink it to
   fit-content - force full width so grids keep their tracks. */
#what-we-do > .container, #how-we-work > .container, #about > .container, #news > .container { width: 100%; }

/* Transparent header over the gradient hero (front page, unscrolled only) */
.home .site-header:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.home .site-header:not(.scrolled) .nav-list a { color: rgba(255, 255, 255, 0.9); }
.home .site-header:not(.scrolled) .nav-list a:hover { color: #fff; }
.home .site-header:not(.scrolled) .nav-cta { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); color: #fff; }
.home .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* Gradient hero */
.hero-x {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 140px 0 170px;
	background: linear-gradient(-140deg, var(--accent) 12%, #0EA5D8 55%, #22D3EE 88%);
	color: #fff;
}
.hero-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-x-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	width: 100%;
}
.hero-x-eyebrow {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 22px;
}
.hero-x-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.4rem, 4.6vw, 3.7rem);
	line-height: 1.06;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: #fff;
}
.hero-x-sub { max-width: 480px; font-size: 1.14rem; line-height: 1.7; color: rgba(255, 255, 255, 0.92); margin: 26px 0 38px; }
.hero-x-art { justify-self: center; width: min(380px, 34vw); }
.hero-x-art svg { width: 100%; height: auto; display: block; }

/* Underline CTA links */
.link-underline {
	display: inline-block;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	padding-bottom: 6px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.85);
}
.link-underline:hover { color: #fff; border-bottom-color: #fff; }
.link-underline-ink { color: var(--accent); border-bottom-color: rgba(29, 78, 216, 0.45); }
.link-underline-ink:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* Trust bar overlapping the hero bottom */
.trustbar { position: relative; z-index: 5; margin-top: -80px; }
.trustbar-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(16, 20, 24, 0.14);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 30px 34px;
}
.trust-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.94rem;
	color: var(--ink);
}
.trust-icon { width: 32px; height: 32px; flex: none; color: var(--accent); }
.trust-item code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }

/* Centered section intros */
.section-intro { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-intro p { color: var(--ink-soft); }
.section-title-c { text-align: center; }
.section-title-c::after { margin-left: auto !important; margin-right: auto !important; }
.about-facts {
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ink-faint) !important;
	margin: 20px 0 28px;
}

/* Card line-art icons */
.card-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 14px; }

/* Vertical wire that draws itself down (the "wire" running through the page) */
.wire-v { position: relative; width: 2px; height: 120px; margin: -6px auto 56px; background: linear-gradient(180deg, var(--accent), #22D3EE); }
.wire-v::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22D3EE;
	transform: translateX(-50%);
}

/* Breaker CTA row */
.breaker { border-top: 1px solid #e7ecf3; border-bottom: 1px solid #e7ecf3; padding: 56px 0; }
.breaker-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.breaker-inner h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); max-width: 660px; }
.breaker-inner code { font-family: var(--font-mono); color: var(--accent-deep); }
.breaker-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* News cards straddling into the gradient footer */
.straddle { position: relative; z-index: 4; margin-bottom: -110px; }
.straddle .card { box-shadow: 0 18px 44px rgba(16, 20, 24, 0.12); }
/* Extra footer clearance only when news cards actually straddle into it */
body:has(.straddle) .footer-cta { padding-top: 230px; }

@media (max-width: 860px) {
	.hero-x { min-height: 0; padding: 130px 0 140px; }
	.hero-x-grid { grid-template-columns: 1fr; gap: 44px; }
	.hero-x-art { width: 220px; }
	.trustbar { margin-top: -64px; }
	.trustbar-card { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
	.trust-item { justify-content: flex-start; font-size: 0.88rem; }
	.breaker-inner { flex-direction: column; align-items: flex-start; }
	.footer-cta { grid-template-columns: 1fr; gap: 34px; padding: 80px 24px 60px; }
	.footer-divider { width: 64px; height: 2px; min-height: 0; }
	.straddle { margin-bottom: -80px; }
	body:has(.straddle) .footer-cta { padding-top: 150px; }
}
