/* ============================================================
   ADE Solutions - Master Stylesheet
   Design system: editorial warm-minimalism
   Replaces style_large.css, style_768.css, style_600.css, style_300.css
   ============================================================ */

:root {
	/* Surfaces */
	--bg:           #f7f3ea;
	--bg-elev:      #ffffff;
	--bg-warm:      #efe8d6;
	--bg-deep:      #1f4742;

	/* Ink */
	--ink:          #1b1f1d;
	--ink-soft:     #3a3f3c;
	--ink-muted:    #6e716c;
	--ink-faint:    #a5a69f;

	/* Lines */
	--line:         #dcd3bf;
	--line-soft:    #e8e1cf;

	/* Brand (from KeyLogo.svg) */
	--sage:         #57A195;
	--sage-deep:    #2d5d55;
	--navy:         #45758F;
	--navy-deep:    #1f4742;
	--sky:          #7BB6CA;
	--orange:       #D8782A;
	--orange-deep:  #b85f1b;
	--orange-soft:  #f5e4d2;

	/* Type */
	--serif:        'Fraunces', 'Iowan Old Style', 'Constantia', Georgia, serif;
	--sans:         'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Shadows */
	--shadow-sm:    0 1px 2px rgba(27,31,29,0.04);
	--shadow-md:    0 12px 32px -16px rgba(27,31,29,0.18);
	--shadow-lg:    0 24px 60px -24px rgba(27,31,29,0.22);

	/* Shape */
	--radius:       3px;
	--radius-lg:    6px;

	/* Motion */
	--ease:         cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============ Typography ============ */
.eyebrow {
	display: inline-block;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.eyebrow-mark::before {
	content: "";
	display: inline-block;
	width: 28px; height: 1px;
	background: var(--orange);
	vertical-align: middle;
	margin-right: 12px;
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 400;
}
h1 {
	font-size: clamp(44px, 6.8vw, 88px);
	line-height: 1.0;
	letter-spacing: -0.025em;
	font-variation-settings: "opsz" 96, "SOFT" 20;
}
h2 {
	font-size: clamp(28px, 3.8vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 72;
}
h3 {
	font-size: 22px;
	line-height: 1.25;
	font-variation-settings: "opsz" 36;
}
h4 {
	font-size: 16px;
	line-height: 1.35;
	font-variation-settings: "opsz" 24;
}
.italic {
	font-style: italic;
	font-variation-settings: "opsz" 144, "SOFT" 100;
	color: var(--navy);
}
.ital-sage   { font-style: italic; color: var(--sage-deep); }
.ital-orange { font-style: italic; color: var(--orange); }

p { color: var(--ink-soft); }
p + p { margin-top: 18px; }

ul, ol {
	color: var(--ink-soft);
	padding-left: 0;
	list-style: none;
}

a {
	color: var(--sage-deep);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
a:hover { color: var(--orange); }

/* In-prose links get an underline */
main p a, main li a {
	border-bottom: 1px solid var(--line);
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
main p a:hover, main li a:hover {
	border-bottom-color: var(--orange);
}

/* ============ Layout ============ */
.wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
	position: relative;
	z-index: 2;
}
.wrap-narrow {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 40px;
	position: relative;
	z-index: 2;
}

/* ============ Header ============ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 243, 234, 0.85);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
	border-bottom-color: var(--line);
	background: rgba(247, 243, 234, 0.95);
}
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
}
.brand-logo {
	width: 40px; height: 40px;
	flex-shrink: 0;
}
.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.brand-mark {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 36;
	color: var(--ink);
}
.brand-sub {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-muted);
	font-weight: 500;
	margin-top: 4px;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
}
.nav-links a {
	color: var(--ink-soft);
	font-size: 14.5px;
	font-weight: 400;
	position: relative;
	padding: 6px 0;
}
.nav-links a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
	font-size: 14px;
	font-weight: 500;
	color: var(--bg-elev) !important;
	background: var(--ink);
	padding: 10px 20px;
	border-radius: var(--radius);
	transition: background 0.25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--sage-deep); color: var(--bg-elev) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
	display: block; width: 24px; height: 1.5px;
	background: var(--ink); margin: 5px 0;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
	position: fixed;
	inset: 0 0 0 auto;
	width: 85%;
	max-width: 360px;
	background: var(--bg-elev);
	border-left: 1px solid var(--line);
	transform: translateX(100%);
	transition: transform 0.4s var(--ease);
	z-index: 60;
	padding: 80px 32px 32px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
	font-family: var(--serif);
	font-size: 22px;
	color: var(--ink);
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-backdrop {
	position: fixed; inset: 0;
	background: rgba(27, 31, 29, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s var(--ease);
	z-index: 55;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============ Buttons ============ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--sans);
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.3s var(--ease);
	text-decoration: none;
	line-height: 1;
}
.btn-primary  { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
	background: var(--sage-deep);
	color: var(--bg);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover {
	background: var(--orange-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover {
	border-color: var(--ink);
	color: var(--ink);
	background: var(--bg-elev);
}
.btn-ghost-dark {
	background: transparent;
	color: var(--bg-warm);
	border-color: rgba(247,243,234,0.3);
}
.btn-ghost-dark:hover {
	border-color: var(--bg-warm);
	color: var(--bg-warm);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Small pill buttons */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
	transition: all 0.3s var(--ease);
	cursor: pointer;
	text-decoration: none;
}
.pill:hover {
	border-color: var(--ink);
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}
.pill-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.pill-dot.sage   { background: var(--sage); }
.pill-dot.navy   { background: var(--navy); }
.pill-dot.sky    { background: var(--sky); }
.pill-dot.orange { background: var(--orange); }

/* ============ Hero ============ */
.hero {
	padding: 80px 0 120px;
	position: relative;
	overflow: hidden;
}
.hero-atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
}
.blob-sage   { background: var(--sage);   opacity: 0.28; }
.blob-sky    { background: var(--sky);    opacity: 0.35; }
.blob-orange { background: var(--orange); opacity: 0.16; }

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
	z-index: 2;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}
.hero-eyebrow::before {
	content: "";
	display: block;
	width: 32px; height: 1px;
	background: var(--orange);
}
.hero-sub {
	font-size: 19px;
	line-height: 1.55;
	color: var(--ink-soft);
	max-width: 540px;
	margin-top: 32px;
}
.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

/* Brand-mark visual (the three rings) */
.ring-visual {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-width: 520px;
	margin-left: auto;
}
.ring-visual svg { width: 100%; height: 100%; overflow: visible; }
.ring-visual-label {
	position: absolute;
	font-family: var(--serif);
	font-style: italic;
	font-size: 13px;
	color: var(--ink-muted);
	font-variation-settings: "opsz" 20;
}
.ring-visual-label::before {
	content: "";
	position: absolute;
	width: 32px; height: 1px;
	background: var(--ink-muted);
	top: 50%;
}
.label-tr { top: 8%; right: -8%; padding-left: 44px; }
.label-tr::before { left: 0; }
.label-bl { bottom: 12%; left: -4%; padding-right: 44px; text-align: right; }
.label-bl::before { right: 0; }

/* Hero animation */
.ring {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: drawRing 1.6s var(--ease) forwards;
}
.ring-1 { animation-delay: 0.3s; }
.ring-2 { animation-delay: 0.6s; }
.ring-3 { animation-delay: 0.9s; }
.ring-4 { animation-delay: 0.8s; }
.ring-5 { animation-delay: 1.0s; }
.ring-6 { animation-delay: 1.2s; }
.ring-dot {
	opacity: 0;
	animation: popIn 0.5s var(--ease) forwards;
}
.ring-dot-1 { animation-delay: 1.4s; }
.ring-dot-2 { animation-delay: 1.6s; }
.ring-dot-3 { animation-delay: 1.8s; }
.ring-dot-4 { animation-delay: 2.0s; }

.fade-up {
	opacity: 0;
	animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-up-1 { animation-delay: 0.10s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.40s; }
.fade-up-4 { animation-delay: 0.55s; }
.fade-up-5 { animation-delay: 0.70s; }

/* ============ Page header (non-landing pages) ============ */
.page-header {
	padding: 90px 0 70px;
	position: relative;
	overflow: hidden;
}
.page-header-inner {
	position: relative;
	z-index: 2;
	max-width: 820px;
}
.page-header h1 {
	font-size: clamp(40px, 5.5vw, 72px);
	margin-top: 18px;
}
.page-header-lead {
	font-size: 20px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin-top: 28px;
	max-width: 640px;
}

/* ============ Meta/stat strip ============ */
.meta-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding: 32px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 2;
}
.meta-item {
	padding: 0 28px;
	border-right: 1px solid var(--line-soft);
}
.meta-item:last-child { border-right: none; }
.meta-item:first-child { padding-left: 0; }
.meta-num {
	font-family: var(--serif);
	font-size: 38px;
	font-weight: 400;
	color: var(--ink);
	font-variation-settings: "opsz" 72;
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 10px;
}
.meta-num sup {
	font-size: 15px;
	color: var(--orange);
	font-style: italic;
	font-weight: 400;
	vertical-align: super;
}
.meta-label {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

/* ============ Section head ============ */
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	padding-bottom: 44px;
	margin-bottom: 56px;
	border-bottom: 1px solid var(--line);
	gap: 40px;
}
.section-head-text { max-width: 700px; }
.section-head h2 { margin-top: 16px; }
.section-head-meta {
	font-size: 13px;
	color: var(--ink-muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ============ Pillar grid ============ */
.pillar-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.pillar {
	padding: 44px 36px 40px;
	background: var(--bg);
	transition: background 0.4s var(--ease);
	position: relative;
	display: flex;
	flex-direction: column;
}
.pillar:hover { background: var(--bg-elev); }
.pillar-icon {
	width: 64px; height: 64px;
	margin-bottom: 28px;
	position: relative;
}
.pillar-icon svg { width: 100%; height: 100%; overflow: visible; }
.pillar-num {
	position: absolute;
	top: 44px; right: 36px;
	font-family: var(--serif);
	font-size: 44px;
	font-weight: 300;
	color: var(--line);
	line-height: 1;
	font-variation-settings: "opsz" 72;
}
.pillar h3 {
	margin-bottom: 16px;
	letter-spacing: -0.01em;
	padding-right: 40px;
}
.pillar-desc {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin-bottom: 28px;
	flex-grow: 1;
}
.pillar-links {
	list-style: none;
	border-top: 1px solid var(--line-soft);
	padding-top: 20px;
	margin-top: auto;
}
.pillar-links li { padding: 5px 0; }
.pillar-links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	color: var(--ink-soft);
	border-bottom: none;
}
.pillar-links a::before {
	content: "→";
	font-family: var(--serif);
	color: var(--ink-muted);
	transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.pillar-links a:hover { color: var(--ink); }
.pillar-links a:hover::before { transform: translateX(4px); color: var(--orange); }

/* ============ Feature band (dark) ============ */
.feature-band {
	background: var(--sage-deep);
	color: var(--bg-warm);
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}
.feature-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 30%, rgba(216, 120, 42, 0.25) 0%, transparent 55%),
		radial-gradient(circle at 10% 90%, rgba(123, 182, 202, 0.18) 0%, transparent 55%);
	pointer-events: none;
}
.feature-band-deco {
	position: absolute;
	top: 0; right: -100px;
	width: 500px; height: 100%;
	opacity: 0.08;
	pointer-events: none;
	display: flex;
	align-items: center;
}
.feature-band-deco svg { width: 100%; height: 80%; }
.feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	position: relative;
	z-index: 2;
}
.feature-band h2 { color: var(--bg-warm); }
.feature-band h2 .italic { color: var(--orange); }
.feature-band p {
	color: rgba(247, 243, 234, 0.78);
	font-size: 17px;
	margin-top: 24px;
	max-width: 480px;
}
.feature-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: rgba(247, 243, 234, 0.18);
	border: 1px solid rgba(247, 243, 234, 0.18);
}
.feature-stat {
	padding: 32px 28px;
	background: var(--sage-deep);
}
.feature-stat-num {
	font-family: var(--serif);
	font-size: 52px;
	line-height: 1;
	color: var(--bg-warm);
	font-variation-settings: "opsz" 72;
	font-weight: 400;
	margin-bottom: 12px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.feature-stat-num .unit {
	font-size: 18px;
	color: var(--orange);
	font-style: italic;
}
.feature-stat-label {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(247, 243, 234, 0.7);
}

/* ============ Instrument list page ============ */
.cat-section {
	padding: 60px 0;
	border-bottom: 1px solid var(--line);
}
.cat-section:first-child { padding-top: 20px; }
.cat-section:last-child { border-bottom: none; }
.cat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 36px;
	gap: 40px;
}
.cat-head h2 {
	font-size: clamp(24px, 3vw, 36px);
}
.cat-head .cat-count {
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.ins-card {
	padding: 28px 28px 32px;
	background: var(--bg);
	transition: background 0.3s var(--ease);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	text-decoration: none;
	color: inherit;
	border-bottom: none;
}
.ins-card:hover { background: var(--bg-elev); }
.ins-card-tag {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--orange);
	font-weight: 500;
}
.ins-card-name {
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
	font-variation-settings: "opsz" 36;
	margin: 2px 0 6px;
}
.ins-card-desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-muted);
}
.ins-card-price {
	font-family: var(--serif);
	font-size: 15px;
	color: var(--ink-soft);
	font-style: italic;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed var(--line-soft);
}

/* ============ Instrument detail page (audit.html template) ============ */
.ins-detail {
	padding: 80px 0 60px;
	position: relative;
	overflow: hidden;
}
.ins-detail-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 80px;
	position: relative;
	z-index: 2;
}
.ins-detail-content h1 {
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.03;
	margin-top: 16px;
	letter-spacing: -0.02em;
}
.ins-detail-lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin-top: 28px;
	max-width: 580px;
}
.ins-detail-body {
	margin-top: 32px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-soft);
	max-width: 580px;
}
.ins-detail-body p + p { margin-top: 16px; }
.ins-detail-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.ins-aside {
	position: sticky;
	top: 100px;
	align-self: start;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 36px;
	box-shadow: var(--shadow-md);
}
.ins-aside-label {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-muted);
	font-weight: 500;
}
.ins-aside-price {
	font-family: var(--serif);
	font-size: 52px;
	line-height: 1;
	color: var(--ink);
	font-variation-settings: "opsz" 60;
	margin-top: 10px;
}
.ins-aside-price .unit {
	font-size: 16px;
	color: var(--orange);
	font-style: italic;
	vertical-align: super;
}
.ins-aside hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 24px 0;
}
.ins-aside dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}
.ins-aside dt {
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.ins-aside dd {
	font-family: var(--serif);
	font-size: 17px;
	color: var(--ink);
	font-variation-settings: "opsz" 24;
	margin-top: 4px;
}

/* Related items footer on instrument pages */
.ins-related {
	padding: 100px 0;
	border-top: 1px solid var(--line);
}
.ins-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 2px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 36px;
}

/* ============ Footer ============ */
.site-footer {
	background: var(--ink);
	color: var(--bg-warm);
	padding: 80px 0 30px;
	position: relative;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2.2fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(247,243,234,0.12);
}
.footer-brand-line {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}
.footer-brand-line .brand-mark { color: var(--bg-warm); font-size: 26px; }
.footer-brand p {
	font-size: 14px;
	color: rgba(247,243,234,0.6);
	margin-top: 18px;
	max-width: 340px;
	line-height: 1.6;
}
.footer-col h4 {
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(247,243,234,0.5);
	font-weight: 500;
	margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
	font-size: 14.5px;
	color: rgba(247,243,234,0.8);
	border-bottom: none;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 30px;
	font-size: 13px;
	color: rgba(247,243,234,0.5);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
	width: 34px; height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(247,243,234,0.2);
	border-radius: 50%;
	color: rgba(247,243,234,0.7);
	transition: all 0.3s var(--ease);
	border-bottom: 1px solid rgba(247,243,234,0.2);
}
.footer-social a:hover {
	border-color: var(--orange);
	color: var(--orange);
}
.footer-social svg { width: 14px; height: 14px; }

/* ============ Forms (inherited style for dynamically-built tellMeMore) ============ */
#main input[type="text"],
#main input[type="email"],
#main input[type="tel"],
#main select,
#main textarea {
	display: block;
	width: 100%;
	padding: 14px 18px;
	margin-top: 14px;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
#main input:focus, #main select:focus, #main textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(45, 93, 85, 0.1);
}
#main select {
	color: var(--ink-muted);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' stroke='%231b1f1d' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 42px;
	cursor: pointer;
}

#contactForm {
	font-family: var(--serif);
	font-size: 18px;
	font-style: italic;
	color: var(--ink-muted);
	font-variation-settings: "opsz" 24;
	padding-bottom: 8px;
}
#submit {
	display: inline-block;
	margin-top: 24px;
	padding: 15px 30px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	color: var(--bg);
	background: var(--ink);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.3s var(--ease);
}
#submit:hover {
	background: var(--sage-deep);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* ============ Content list rows (quizzes, podcasts) ============ */
.row-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.row-item {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 28px;
	align-items: center;
	padding: 28px 32px;
	background: var(--bg);
	transition: background 0.3s var(--ease);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	border-bottom: none;
}
.row-item:hover { background: var(--bg-elev); }
.row-item-num {
	font-family: var(--serif);
	font-size: 30px;
	color: var(--line);
	line-height: 1;
	font-variation-settings: "opsz" 48;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
}
.row-item-body h3 {
	font-size: 22px;
	margin-bottom: 6px;
	line-height: 1.2;
}
.row-item-body p {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-muted);
	margin: 0;
}
.row-item-action {
	font-family: var(--serif);
	font-size: 24px;
	color: var(--ink-muted);
	transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.row-item:hover .row-item-action { color: var(--orange); transform: translateX(6px); }

/* ============ Visual thumb cards (infographics, help) ============ */
.thumb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 28px;
}
.thumb-card {
	text-decoration: none;
	color: inherit;
	display: block;
	border-bottom: none;
	cursor: pointer;
}
.thumb-card-image {
	aspect-ratio: 4/5;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.3s var(--ease);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.thumb-card:hover .thumb-card-image {
	border-color: var(--ink);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.thumb-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.thumb-card-caption {
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.35;
	color: var(--ink);
	font-variation-settings: "opsz" 24;
	padding: 0 4px;
}
.thumb-card-meta {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
	margin-bottom: 6px;
	padding: 0 4px;
}

/* ============ Auth box (client login) ============ */
.auth-shell {
	min-height: calc(100vh - 73px);
	padding: 80px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	position: relative;
}
.auth-shell .hero-atmosphere { position: absolute; inset: 0; z-index: 0; }
.auth-card {
	position: relative;
	z-index: 2;
	max-width: 440px;
	width: 100%;
	padding: 48px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.auth-card-head {
	text-align: center;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--line-soft);
	margin-bottom: 36px;
}
.auth-card-head h2 {
	font-size: 28px;
	line-height: 1.1;
	margin-top: 18px;
}
.auth-card-head .eyebrow { justify-content: center; }
.auth-field { margin-bottom: 18px; }
.auth-field label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
	font-weight: 500;
	margin-bottom: 8px;
}
.auth-field input {
	display: block;
	width: 100%;
	padding: 14px 18px;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-field input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(45,93,85,0.1);
}
.auth-actions {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.auth-actions .btn { justify-content: center; }
.auth-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	color: var(--ink-muted);
}
.auth-footer a {
	color: var(--ink-soft);
	border-bottom: 1px solid var(--line);
}

/* ============ Blog article ============ */
.article {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 0;
}
.article-meta {
	display: flex;
	gap: 18px;
	align-items: center;
	margin-bottom: 28px;
	font-size: 13px;
	color: var(--ink-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.article-meta .dot {
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--ink-faint);
	display: inline-block;
}
.article h1 {
	font-size: clamp(36px, 5vw, 54px);
	line-height: 1.05;
}
.article-lead {
	font-size: 21px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin-top: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}
.article-body {
	font-size: 18px;
	line-height: 1.75;
	color: var(--ink-soft);
	margin-top: 48px;
}
.article-body h2 {
	margin-top: 56px;
	margin-bottom: 24px;
	font-size: 32px;
}
.article-body h3 {
	margin-top: 40px;
	margin-bottom: 16px;
	font-size: 23px;
}
.article-body p + p { margin-top: 24px; }
.article-body ul, .article-body ol {
	margin-top: 20px;
	margin-left: 24px;
	list-style: initial;
}
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--orange); }

/* ============ Audio player (podcasts) ============ */
.pod-card {
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 28px 32px;
	transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
	position: relative;
}
.pod-card + .pod-card { margin-top: 16px; }
.pod-card.is-playing {
	border-color: var(--sage);
	box-shadow: 0 0 0 1px var(--sage), var(--shadow-md);
}
.pod-head {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 20px;
	align-items: center;
}
.pod-play {
	width: 56px; height: 56px;
	background: var(--ink);
	color: var(--bg);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.25s var(--ease);
	flex-shrink: 0;
	padding: 0;
}
.pod-play:hover {
	background: var(--sage-deep);
	transform: scale(1.04);
	box-shadow: var(--shadow-md);
}
.pod-card.is-playing .pod-play {
	background: var(--orange);
}
.pod-card.is-playing .pod-play:hover {
	background: var(--orange-deep);
}
.pod-play svg { width: 18px; height: 18px; }
.pod-play .icon-play  { display: block; margin-left: 2px; }
.pod-play .icon-pause { display: none; }
.pod-card.is-playing .pod-play .icon-play  { display: none; }
.pod-card.is-playing .pod-play .icon-pause { display: block; }

.pod-title {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.25;
	color: var(--ink);
	font-variation-settings: "opsz" 28;
	margin: 0 0 4px;
}
.pod-meta {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 12px;
	color: var(--ink-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	flex-wrap: wrap;
}
.pod-meta .dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: var(--ink-faint);
	display: inline-block;
}
.pod-duration {
	font-family: var(--serif);
	font-style: italic;
	font-size: 15px;
	color: var(--ink-muted);
	font-variation-settings: "opsz" 20;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pod-summary {
	margin-top: 18px;
	padding-left: 84px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-soft);
}

.pod-player {
	padding-left: 84px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: center;
	max-height: 0;
	margin-top: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.35s var(--ease), margin-top 0.35s var(--ease), opacity 0.25s var(--ease);
}
.pod-card.is-activated .pod-player {
	max-height: 120px;
	margin-top: 16px;
	opacity: 1;
}

.pod-scrub-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.pod-scrub {
	position: relative;
	height: 28px;
	display: flex;
	align-items: center;
	cursor: pointer;
	flex: 1;
	min-width: 0;
	touch-action: none;
}
.pod-scrub-track {
	position: relative;
	width: 100%;
	height: 4px;
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
}
.pod-scrub-buffer {
	position: absolute;
	inset: 0;
	width: 0;
	background: var(--line-soft);
	transition: width 0.2s linear;
}
.pod-scrub-fill {
	position: absolute;
	inset: 0;
	width: 0;
	background: linear-gradient(90deg, var(--sage-deep) 0%, var(--sage) 60%, var(--orange) 100%);
	border-radius: 2px;
}
.pod-scrub-handle {
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px; height: 14px;
	background: var(--bg-elev);
	border: 2px solid var(--orange);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: var(--shadow-sm);
	opacity: 0;
	transition: opacity 0.2s var(--ease), transform 0.1s var(--ease);
	pointer-events: none;
}
.pod-scrub:hover .pod-scrub-handle,
.pod-scrub:focus .pod-scrub-handle,
.pod-card.is-playing .pod-scrub-handle { opacity: 1; }
.pod-scrub:active .pod-scrub-handle { transform: translate(-50%, -50%) scale(1.2); }

.pod-time {
	display: flex;
	gap: 6px;
	align-items: baseline;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	white-space: nowrap;
	letter-spacing: 0.02em;
}
.pod-time .elapsed { color: var(--ink); }
.pod-time .sep { opacity: 0.4; }

.pod-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pod-ctrl {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	color: var(--ink-muted);
	border: 1px solid transparent;
	border-radius: 100px;
	cursor: pointer;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	transition: all 0.2s var(--ease);
	text-decoration: none;
	white-space: nowrap;
}
.pod-ctrl:hover {
	background: var(--bg);
	color: var(--ink);
	border-color: var(--line);
}
.pod-ctrl svg { width: 14px; height: 14px; flex-shrink: 0; }

.pod-vol {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
}
.pod-vol-slider {
	width: 64px;
	height: 3px;
	background: var(--line);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}
.pod-vol-fill {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 80%;
	background: var(--ink);
	border-radius: 2px;
}

@media (max-width: 720px) {
	.pod-card { padding: 22px 20px; }
	.pod-head { grid-template-columns: 48px 1fr; gap: 14px; }
	.pod-duration {
		grid-column: 2;
		font-size: 13px;
		margin-top: 4px;
	}
	.pod-play { width: 48px; height: 48px; }
	.pod-title { font-size: 17px; }
	.pod-summary, .pod-player { padding-left: 0; }
	.pod-player { grid-template-columns: 1fr; gap: 12px; }
	.pod-card.is-activated .pod-player { max-height: 200px; }
	.pod-controls { flex-wrap: wrap; }
	.pod-vol { display: none; }
}

/* ============ Motion ============ */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes drawRing {
	from { stroke-dashoffset: 1000; }
	to   { stroke-dashoffset: 0; }
}
@keyframes popIn {
	from { opacity: 0; transform: scale(0); }
	to   { opacity: 1; transform: scale(1); }
}
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
	.wrap, .wrap-narrow { padding: 0 28px; }
	.nav-links { display: none; }
	.hamburger { display: block; }

	.hero { padding: 50px 0 80px; }
	.hero-grid { grid-template-columns: 1fr; gap: 50px; }
	.ring-visual { max-width: 380px; margin: 0 auto; }
	.ring-visual-label { display: none; }

	.meta-strip { grid-template-columns: 1fr 1fr; gap: 0; }
	.meta-item { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
	.meta-item:nth-child(2) { border-right: none; }
	.meta-item:nth-child(3), .meta-item:nth-child(4) { border-bottom: none; }

	.section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
	.pillar-grid { grid-template-columns: 1fr; }

	.feature-grid { grid-template-columns: 1fr; gap: 48px; }
	.feature-band { padding: 70px 0; }
	.feature-band-deco { display: none; }

	.ins-detail-grid { grid-template-columns: 1fr; gap: 40px; }
	.ins-aside { position: static; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; gap: 18px; text-align: center; }
}

@media (max-width: 520px) {
	.wrap, .wrap-narrow { padding: 0 20px; }
	h1 { font-size: 44px; }
	.hero-sub { font-size: 17px; }
	.meta-strip { grid-template-columns: 1fr; }
	.meta-item { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
	.meta-item:last-child { border-bottom: none; }
	.feature-stats { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.pillar { padding: 36px 24px 36px; }
	.pillar-num { font-size: 40px; top: 36px; right: 24px; }
	.ins-aside dl { grid-template-columns: 1fr; }
	.ins-aside { padding: 28px; }
	.ins-detail { padding: 50px 0 40px; }
}
