/* ==========================================================================
   Econs Consultant — main stylesheet
   1. Fonts        6. Hero + opening      11. Presence & partner
   2. Tokens       7. Journey & thread    12. Contact & form
   3. Base         8. The question        13. Footer, action bar, pages
   4. Components   9. How it works        14. Trading FAQ assistant
   5. Header       10. Service chapters
   ========================================================================== */

/* 1. Fonts — self-hosted variable fonts (SIL OFL), Latin subset.
   Fallback faces are metric-adjusted to reduce layout shift on swap. */
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader Fallback";
	src: local("Georgia"), local("Times New Roman");
	size-adjust: 93%;
	ascent-override: 79%;
	descent-override: 28.5%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Schibsted Fallback";
	src: local("Arial"), local("Helvetica");
	size-adjust: 103%;
	ascent-override: 94.8%;
	descent-override: 25%;
	line-gap-override: 0%;
}

/* 2. Tokens */
:root {
	/* Brand palette */
	--ink: #08213d;          /* deep navy: dark sections, body text on white */
	--ink-2: #0d2b4c;        /* raised navy surfaces */
	--ink-3: #16406b;        /* hover on navy */
	--ink-deep: #061a31;     /* footer */
	--emerald: #2fd49a;      /* accent on navy (8.5:1) */
	--emerald-hi: #63e4b6;   /* accent hover */
	--emerald-deep: #047a57; /* accent on white (5.35:1) */
	--paper: #ffffff;
	--fog: #eef3f7;
	--rule: #d5dfe8;
	--muted: #4b5e74;        /* secondary text on white (6.7:1) */
	--on-ink: #f2f6fa;
	--on-ink-muted: #a7b8cb; /* secondary text on navy (8:1) */
	--steel: #7d96b1;        /* secondary data marks on navy */
	--line-on-ink: rgba(167, 184, 203, 0.18);

	/* Type */
	--serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
	--sans: "Schibsted Grotesk", "Schibsted Fallback", Arial, Helvetica, sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
	--step-3: clamp(1.8rem, 1.35rem + 1.7vw, 2.6rem);
	--step-4: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
	--step-5: clamp(2.7rem, 1.4rem + 5vw, 5.75rem);

	/* Layout */
	--wrap: 1320px;
	--gutter: clamp(20px, 4.2vw, 56px);
	--header-h: 76px;
	--section-y: clamp(5rem, 3rem + 7vw, 9.5rem);
	--radius: 10px;
	--radius-lg: 20px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--focus: var(--emerald-deep);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.6;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, figure, dl { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.on-ink, .hero, .site-header, .approach__visual, .contact, .site-footer, .mobile-menu { --focus: var(--emerald); }

.screen-reader-text {
	position: absolute !important;
	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;
	z-index: 100;
	top: 12px; left: 12px;
	padding: 0.75rem 1rem;
	background: var(--emerald);
	color: var(--ink);
	font-weight: 600;
	border-radius: var(--radius);
	transform: translateY(-160%);
	transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.site-main:focus { outline: none; }
.section { padding-block: var(--section-y); }

.section-title {
	font-family: var(--serif);
	font-size: var(--step-4);
	font-weight: 380;
	font-variation-settings: "opsz" 72;
	line-height: 1.06;
	letter-spacing: -0.02em;
}
.section-lede {
	margin-top: 1.25rem;
	max-width: 46ch;
	color: var(--muted);
	font-size: var(--step-1);
	line-height: 1.5;
}

/* 4. Components */
.btn {
	--btn-h: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: var(--btn-h);
	padding: 0 1.35em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn--small { --btn-h: 42px; padding: 0 1.05em; font-size: 0.9375rem; }
.btn--large { --btn-h: 58px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--accent { background: var(--emerald); color: var(--ink); }
.btn--accent:hover { background: var(--emerald-hi); box-shadow: 0 10px 30px -12px rgba(47, 212, 154, 0.7); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost { border-color: var(--line-on-ink); color: var(--on-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--on-ink-muted); }

.link-quiet {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 48px;
	color: var(--on-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(242, 246, 250, 0.35);
	transition: text-decoration-color 0.2s ease;
}
.link-quiet .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease-out); }
.link-quiet:hover { text-decoration-color: currentColor; }
.link-quiet:hover .icon { transform: translateY(3px); }
.link-quiet--light { color: var(--ink); text-decoration-color: var(--rule); }

/* 5. Header & menus */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	color: var(--on-ink);
	transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.has-solid-header .site-header,
.site-header.is-menu-open {
	background: rgba(8, 33, 61, 0.97);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom-color: var(--line-on-ink);
}
.site-header.is-menu-open {
	background: var(--ink);
	/* backdrop-filter would make the header the containing block of the fixed menu panel */
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: var(--header-h);
}
.site-header__brand { margin-right: auto; }

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55em;
	text-decoration: none;
	color: var(--on-ink);
	line-height: 1;
}
.brand .wm__w { font-size: 1.375rem; }
.brand__suffix {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--on-ink-muted);
	letter-spacing: 0.01em;
}

/* The ECONS word: live letters plus the chart-drawn N (inc/helpers.php). */
.wm__w {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	font-kerning: none; /* the N is not a glyph, so keep spacing uniform */
}
.wm__l { display: inline-block; }
.wm__n {
	display: inline-block;
	width: 0.7832em;  /* N advance: 1604 / 2048 */
	height: 0.7031em; /* cap height: 1440 / 2048 */
	margin-right: 0.02em;
	vertical-align: baseline;
	overflow: hidden; /* the viewport trims the miter corners to the cap box */
}
.wm__n-path {
	fill: none;
	stroke: var(--emerald);
	stroke-width: 344;
	stroke-linejoin: miter;
	stroke-miterlimit: 10;
	stroke-linecap: butt;
}
/* The journey ends on the footer N (motion.js): it returns 10% larger and brighter. */
.site-footer .wm__n { transform-origin: 50% 100%; }
.site-footer .wm__n-path { transition: stroke 0.6s ease; }
.site-footer .wm__n.is-arrived { transform: scale(1.1); }
.site-footer .wm__n.is-arrived .wm__n-path { stroke: var(--emerald-hi); }
.custom-logo { max-height: 44px; width: auto; }

.nav .nav__list,
.nav .menu {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.85rem;
	color: var(--on-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	opacity: 0.86;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }

.menu-toggle {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: -10px;
	border: 0;
	background: transparent;
	color: var(--on-ink);
	cursor: pointer;
	border-radius: 8px;
}
.menu-toggle .icon { grid-area: 1 / 1; width: 26px; height: 26px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	overflow-y: auto;
	background: var(--ink);
	color: var(--on-ink);
	padding-block: 2rem 3rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .nav__list,
.mobile-menu .menu { list-style: none; margin: 0 0 2rem; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-on-ink); }
.mobile-menu li a {
	display: block;
	padding: 1rem 0;
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 380;
	letter-spacing: -0.015em;
	text-decoration: none;
}
.mobile-menu__promise { margin-top: 2.5rem; color: var(--on-ink-muted); font-family: var(--serif); font-size: 1.25rem; }

@media (max-width: 959px) {
	.nav { display: none; }
	.menu-toggle { display: grid; }
	.site-header__inner { gap: 0.75rem; }
}
@media (max-width: 419px) {
	.site-header__cta span { display: none; }
	.site-header__cta { padding: 0 0.8em; }
}
@media (min-width: 960px) {
	.mobile-menu { display: none !important; }
}

/* 6. Hero — Scene A of the market line */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	max-height: 1100px;
	background:
		radial-gradient(80% 70% at 82% 8%, rgba(22, 64, 107, 0.7), transparent 62%),
		radial-gradient(60% 50% at 10% 100%, rgba(47, 212, 154, 0.06), transparent 70%),
		var(--ink);
	color: var(--on-ink);
}
.hero__depth,
.hero__chart {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	will-change: transform;
}
/* During the dive the chart is scaled up to ~100x. A will-change layer keeps
   the raster scale it had when it was (re)shown, so coming back up into the
   dive locked it at that size and stalled every frame. Let it paint normally. */
.hero.is-diving .hero__depth,
.hero.is-diving .hero__chart { will-change: auto; }
.hero__depth {
	z-index: -2;
	/* Keep the far layer quiet behind the copy, fuller around the headline. */
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.35) 68%, rgba(0, 0, 0, 0.55) 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.35) 68%, rgba(0, 0, 0, 0.55) 100%);
}
.hero__chart { z-index: -1; }
.hero__flash {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--paper);
	opacity: 0;
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 2.5rem));
	padding-bottom: clamp(4.5rem, 9vh, 6rem);
}

.hero__title {
	font-family: var(--serif);
	font-weight: 340;
	font-variation-settings: "opsz" 72;
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--on-ink);
}
.hero__word { position: relative; display: inline-block; }
.hero__word-mask {
	display: inline-block;
	overflow: hidden;
	padding: 0.08em 0.04em 0.12em;
	margin: -0.08em -0.04em -0.12em;
	vertical-align: bottom;
}
.hero__word-inner { display: inline-block; }
.hero__base,
.contact__anchor {
	display: inline-block;
	width: 0;
	height: 0;
	vertical-align: baseline;
}

/* Desktop: the three words climb the line; live candles fill the space after them. */
@media (min-width: 1080px) {
	.hero__title {
		font-size: clamp(4.25rem, 6.5vw, 8.25rem);
		padding-top: 0.66em;
		white-space: nowrap;
	}
	.hero__word { margin-right: 0.16em; }
	.hero__word--2 { top: -0.33em; }
	.hero__word--3 { top: -0.66em; margin-right: 0; }
}

/* Below 1080px: stacked, each word stepping in a little further. */
@media (max-width: 1079px) {
	.hero { height: auto; min-height: 100svh; max-height: none; }
	.hero__title { font-size: clamp(3.4rem, 15vw, 8.5rem); line-height: 1.1; }
	.hero__word { display: block; }
	.hero__word--2 { margin-left: 0.32em; }
	.hero__word--3 { margin-left: 0.64em; }
}

.hero__foot {
	display: grid;
	gap: 1.75rem;
	margin-top: clamp(2.25rem, 6vh, 4rem);
}
.hero__lede {
	max-width: 42ch;
	color: var(--on-ink-muted);
	font-size: var(--step-1);
	line-height: 1.5;
}
.hero__lede strong { display: block; color: var(--on-ink); font-weight: 500; }
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.75rem;
}
.hero__caption {
	position: absolute;
	left: var(--gutter);
	bottom: 1.5rem;
	color: var(--on-ink-muted);
	font-size: 0.8125rem;
	opacity: 0.8;
}
@media (min-width: 900px) {
	.hero__foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; column-gap: 3rem; }
	.hero__actions { justify-content: flex-start; padding-bottom: 0.15em; }
}
@media (max-width: 599px) {
	.hero__actions .btn { width: 100%; }
	.hero__lede { font-size: 1.0625rem; }
}

/* Market-line pieces (drawn by charts.js). Dark surfaces by default. */
.ml-grid line { stroke: var(--line-on-ink); stroke-width: 1; }
.ml-tick { stroke: var(--on-ink-muted); stroke-width: 1; opacity: 0.45; }
.ml-level { stroke: rgba(47, 212, 154, 0.3); stroke-width: 1; stroke-dasharray: 2 6; }
.ml-area { fill: url(#mlArea); }
.ml-area--contact { fill: url(#mlAreaC); }
.ml-base { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.5; }
.ml-highlight { fill: none; stroke: var(--emerald); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ml-node__ring { fill: var(--ink); stroke: var(--steel); stroke-width: 2; transition: fill 0.3s ease, stroke 0.3s ease; }
.ml-node.is-lit .ml-node__ring { fill: var(--emerald); stroke: var(--emerald); }
.ml-dot__halo { fill: var(--emerald); opacity: 0.18; }
.ml-dot__core { fill: var(--emerald); stroke: var(--ink); stroke-width: 3; }
.ml-dot__pulse {
	fill: none;
	stroke: var(--emerald);
	stroke-width: 1.5;
	transform-box: fill-box;
	transform-origin: center;
	animation: ml-pulse 2.4s var(--ease-out) infinite;
}
@keyframes ml-pulse {
	0% { transform: scale(0.6); opacity: 0.7; }
	100% { transform: scale(2.2); opacity: 0; }
}

.cdl { transform-box: fill-box; transform-origin: center; transition: opacity 0.3s ease, transform 0.35s var(--ease-out); }
.cdl.is-hidden { opacity: 0; transform: scaleY(0.2); }
.cdl__wick { stroke-width: 1.25; }
.cdl.is-up .cdl__body { fill: var(--emerald); }
.cdl.is-up .cdl__wick { stroke: var(--emerald); }
.cdl.is-down .cdl__body { fill: var(--steel); }
.cdl.is-down .cdl__wick { stroke: var(--steel); }
.cdl.is-now .cdl__body { fill: var(--paper); }
.cdl.is-now .cdl__wick { stroke: var(--paper); }
.cdl.is-now .cdl__body { transition: y 0.6s var(--ease-out), height 0.6s var(--ease-out); }

/* Far layer: big, faint, out of focus by contrast alone (no filters). */
.depth .cdl { opacity: 0.13; }
.depth .cdl.is-down .cdl__body { fill: var(--paper); }
.depth .cdl.is-down .cdl__wick { stroke: var(--paper); }
.depth .cdl__wick { stroke-width: 2; }

/* Light surfaces (intro). */
.ml-candles--light .cdl.is-up .cdl__body { fill: var(--emerald-deep); }
.ml-candles--light .cdl.is-up .cdl__wick { stroke: var(--emerald-deep); }
.ml-candles--light .cdl.is-down .cdl__body { fill: var(--ink); }
.ml-candles--light .cdl.is-down .cdl__wick { stroke: var(--ink); }
.ml-base--light { stroke: var(--ink); opacity: 0.18; }
.ml-dot--light .ml-dot__halo,
.ml-dot--light .ml-dot__core { fill: var(--emerald-deep); }
.ml-dot--light .ml-dot__core { stroke: var(--paper); }
.ml-dot--light .ml-dot__pulse { stroke: var(--emerald-deep); }
.ml-dot--final .ml-dot__pulse { animation-duration: 2s; }

/* Hidden only while the opening is pending; a timeout in <head> removes the classes. */
.intro-pending .hero__word-inner { transform: translateY(145%); }
.intro-pending [data-hero-fade] { opacity: 0; }
.intro-pending:not(.splash-on) .hero__chart,
.intro-pending .hero__depth { opacity: 0; }

/* Opening (splash): the line draws the N of ECONS, the word docks into the header. */
.hero__splash {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-bottom: 8vh;
	color: var(--on-ink);
	pointer-events: none;
}
.splash-on .hero__splash { display: flex; }
.splash__lockup { display: flex; flex-direction: column; align-items: flex-end; }
.splash__word { font-size: min(19vw, 12.5rem); line-height: 1; }
.splash__word .wm__w { will-change: transform; }
.splash__sub {
	/* Right-aligned under N and S: the lead-in line runs beneath E C O. */
	margin-top: 0.5em;
	margin-right: 0.04em;
	font-size: clamp(1.05rem, 2.4vw, 1.9rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--on-ink-muted);
}
.splash-on .hero__splash .wm__l,
.splash-on .hero__splash .wm__n-path,
.splash-on .splash__sub { opacity: 0; }
.splash-on .hero__chart > :not(.ml-grid):not(.ml-tick):not(.ml-splash):not(.ml-dot) { opacity: 0; }
.splash-on .site-header__brand,
.splash-on .nav,
.splash-on .site-header__cta,
.splash-on .menu-toggle { visibility: hidden; }
.ml-splash-a { fill: none; stroke: var(--emerald); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ml-splash-b { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.5; }

/* 7. The journey — everything after the hero shares one thread (thread.js) */
.journey { position: relative; }
.hero.is-dive-mode { z-index: 1; }
.journey.is-under-hero { z-index: 0; }
/* The statement appears when the dive resolves: start it lower so it can be read before it reaches the header. */
.journey.is-under-hero > .section:first-of-type { padding-top: calc(var(--header-h) + clamp(2rem, 34vh, 20rem)); }
.journey > .section { position: relative; }
.journey .section > * { position: relative; z-index: 2; }
.thread {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
/* Composition boxes are drawn by thread.js; without it they collapse. */
.thread-box { position: relative; margin: 0; min-height: 0; }
.js .thread-box { min-height: var(--box-h, 320px); }
.thread-box__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	font-size: 0.8125rem;
	color: var(--muted);
}
.no-js .thread-box__caption { position: static; }
.on-dark .thread-box__caption,
.chapter--signals .thread-box__caption { color: var(--on-ink-muted); }

/* Reveals happen when the thread's point reaches them (html.thread-on). */
.thread-on [data-reveal] { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.thread-on [data-reveal]:not(.is-reached) { opacity: 0.3; transform: translateY(14px); }

/* Thread strokes */
.th-base { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.th-hl { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.th-light .th-base { stroke: var(--rule); opacity: 0.7; }
.th-light .th-hl { stroke: var(--emerald-deep); }
.th-dark .th-base { stroke: rgba(167, 184, 203, 0.26); }
.th-dark .th-hl { stroke: var(--emerald); }
.th-dot .ml-dot__core { fill: var(--emerald-deep); stroke: var(--paper); }
.th-dot .ml-dot__halo { fill: var(--emerald-deep); }
.th-dot .ml-dot__pulse { stroke: var(--emerald-deep); }
.th-dot.is-dark .ml-dot__core { fill: var(--emerald); stroke: var(--ink); }
.th-dot.is-dark .ml-dot__halo,
.th-dot.is-dark .ml-dot__pulse { fill: var(--emerald); stroke: var(--emerald); }
.th-dot.is-dark .ml-dot__pulse { fill: none; }
.th-dot.is-hidden { opacity: 0; }
.th-dot { transition: opacity 0.25s ease; }
.th-dot.is-away { opacity: 0; }

/* Composition pieces */
.th-label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.th-label--muted { fill: var(--muted); font-weight: 500; }
.th-dark-g .th-label { fill: var(--on-ink); }
.th-dark-g .th-label--muted { fill: var(--on-ink-muted); }
.th-guide { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 6; }
.th-dark-g .th-guide { stroke: rgba(167, 184, 203, 0.3); }
.th-pop { transform-box: fill-box; transform-origin: center; transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out); }
.th-pop:not(.is-on) { opacity: 0; transform: scale(0.4); }
.th-fade { transition: opacity 0.5s ease; }
.th-fade:not(.is-on) { opacity: 0; }
.th-step-tread { stroke: var(--rule); stroke-width: 1; }
.th-marker { stroke-width: 2.5; }
.th-marker--entry { fill: var(--emerald); stroke: var(--ink); }
.th-marker--exit { fill: var(--paper); stroke: var(--ink); }
.th-level { stroke: #d9b45a; stroke-width: 1.5; stroke-dasharray: 6 6; }
.th-tick { fill: var(--steel); }
.th-tick.is-on { fill: var(--emerald-deep); }
.th-pulse { fill: none; stroke: var(--emerald-deep); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.th-pulse.is-on { animation: th-pulse 1.6s var(--ease-out) 1; }
@keyframes th-pulse { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.th-alert { fill: var(--emerald-deep); }
.th-node { fill: var(--paper); stroke: var(--rule); stroke-width: 2; transition: fill 0.35s ease, stroke 0.35s ease; }
.th-node.is-on { fill: var(--emerald-deep); stroke: var(--emerald-deep); }
.th-node--dark { fill: var(--ink); stroke: var(--steel); }
.th-node--dark.is-on { fill: var(--emerald); stroke: var(--emerald); }
.th-arrive { fill: none; stroke: var(--emerald); stroke-width: 1.5; }

/* 8. The question */
.question__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.question__statement {
	max-width: 21ch;
	font-family: var(--serif);
	font-size: var(--step-4);
	font-weight: 380;
	font-variation-settings: "opsz" 60;
	line-height: 1.1;
	letter-spacing: -0.02em;
	align-self: center;
}
.question__chart { --box-h: clamp(240px, 62vw, 320px); }
.paths { max-width: 40rem; }
.paths__title {
	font-family: var(--serif);
	font-size: var(--step-3);
	font-weight: 400;
	font-variation-settings: "opsz" 48;
	letter-spacing: -0.015em;
	line-height: 1.1;
}
.paths__list { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.paths__item { border-bottom: 1px solid var(--rule); }
.paths__item a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding: 1.1rem 0;
	text-decoration: none;
}
.paths__q { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.paths__to { display: inline-flex; align-items: center; gap: 0.35em; color: var(--emerald-deep); font-weight: 500; font-size: 0.9375rem; }
.paths__to .icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out); }
.paths__item a:hover .paths__q { text-decoration: underline; text-underline-offset: 0.2em; }
.paths__item a:hover .paths__to .icon { transform: translateY(3px); }
.paths__end {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.2em 0.45em;
	background: var(--emerald);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--step-2);
	font-weight: 450;
	letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
	.question__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: clamp(3rem, 7vw, 6rem); }
	.question__statement { grid-column: 1 / span 6; grid-row: 1; }
	.question__chart { grid-column: 7 / -1; grid-row: 1; --box-h: clamp(360px, 34vw, 480px); }
	.paths { grid-column: 2 / span 7; }
}

/* 9. How it works (navy) */
.approach { background: var(--ink); color: var(--on-ink); --focus: var(--emerald); }
.approach .section-lede { color: var(--on-ink-muted); }
.approach__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.approach__body { display: grid; gap: 2rem; }
.approach__figure,
.step__figure {
	background: var(--ink-2);
	border: 1px solid var(--line-on-ink);
	border-radius: var(--radius-lg);
	color: var(--on-ink);
	overflow: hidden;
}
.approach__figure { padding: clamp(1rem, 2vw, 1.75rem); }
.approach__caption,
.step__label { padding: 0.25rem 0.25rem 0; color: var(--on-ink-muted); font-size: 0.8125rem; }
.ap-chart { width: 100%; height: auto; overflow: visible; }
.step { position: relative; padding-block: 2rem; border-top: 1px solid var(--line-on-ink); }
.step__index {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--serif);
	font-size: 1.125rem;
	font-variant-numeric: lining-nums;
	color: var(--emerald);
}
.step__phase {
	padding: 0.15rem 0.55rem;
	border: 1px solid var(--line-on-ink);
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--on-ink-muted);
}
.step__title {
	margin-top: 0.5rem;
	font-family: var(--serif);
	font-size: var(--step-3);
	font-weight: 400;
	font-variation-settings: "opsz" 60;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.step__text { margin-top: 0.9rem; max-width: 42ch; color: var(--on-ink-muted); font-size: 1.0625rem; }
.step__figure { margin-top: 1.5rem; padding: 0.9rem 0.9rem 0.75rem; }

/* 10. Chapters (services) */
.chapter__intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.chapter__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.chapter__name {
	font-family: var(--serif);
	font-size: var(--step-3);
	font-weight: 400;
	font-variation-settings: "opsz" 60;
	letter-spacing: -0.02em;
	line-height: 1.08;
}
.chapter__name--lg { font-size: var(--step-4); font-weight: 380; }
.chapter__summary { margin-top: 1rem; max-width: 48ch; font-size: 1.125rem; line-height: 1.6; }
.chapter__note {
	margin-top: 1rem;
	padding-left: 0.85rem;
	border-left: 2px solid var(--line-on-ink);
	font-size: 0.875rem;
	color: var(--on-ink-muted);
	max-width: 48ch;
}
.chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.75rem; }
.svc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0 1.15em;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.svc-btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.svc-btn--light { border: 1px solid var(--ink); color: var(--ink); }
.svc-btn--light:hover { background: var(--ink); color: var(--paper); }
.svc-btn--dark { background: var(--emerald); color: var(--ink); border: 1px solid var(--emerald); }
.svc-btn--dark:hover { background: var(--emerald-hi); }
.svc-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 48px;
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-underline-offset: 0.2em;
}
.svc-more .icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out); }
.svc-more:hover .icon { transform: translate(2px, -2px); }
@media (max-width: 599px) {
	.svc-btn { width: 100%; justify-content: center; }
}

.chapter--consulting { background: var(--fog); }
.consult-grid { display: grid; gap: 3rem; }
.consult { max-width: 34rem; }
.consult__glyph { margin-bottom: 1.25rem; }
.glyph { width: 56px; height: 56px; overflow: visible; }
.glyph__base { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.glyph__draw { fill: none; stroke: var(--emerald-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.glyph__dot { fill: var(--emerald-deep); }
.thread-on .consult:not(.is-reached) .glyph__draw { stroke-dashoffset: 1; }
.thread-on .consult.is-reached .glyph__draw { transition: stroke-dashoffset 1s var(--ease-out) 0.2s; }
@media (min-width: 1024px) {
	.consult-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(4rem, 9vw, 8rem); }
	.consult:nth-child(2) { justify-self: end; }
}

.chapter--courses { background: var(--paper); }
.chapter--courses .chapter__box { --box-h: clamp(260px, 62vw, 340px); }
.chapter--signals { background: var(--ink); color: var(--on-ink); --focus: var(--emerald); }
.chapter--signals .chapter__summary { color: var(--on-ink); }
.chapter--signals .chapter__box { --box-h: clamp(280px, 70vw, 360px); }
.signal-keys { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--on-ink-muted); }
.signal-keys li { display: inline-flex; align-items: center; gap: 0.5rem; }
.signal-keys__mark { width: 12px; height: 12px; border-radius: 50%; }
.signal-keys__mark--entry { background: var(--emerald); }
.signal-keys__mark--exit { background: var(--paper); }
.signal-keys__mark--level { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed #d9b45a; }
.chapter--community { background: var(--fog); }
.chapter--community .chapter__box { --box-h: clamp(180px, 40vw, 240px); }
.live-keys { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.live-keys__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.live-keys__mark { display: inline-block; width: 10px; height: 10px; }
.live-keys__mark--cal { background: var(--steel); border-radius: 2px; }
.live-keys__mark--alert { border: 2px solid var(--emerald-deep); border-radius: 50%; }
.live-keys__note { margin-left: auto; }
@media (min-width: 1024px) {
	.chapter__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
	.chapter__grid > .chapter__text { grid-column: 1 / span 5; }
	.chapter__grid > .chapter__box { grid-column: 7 / -1; }
	.chapter__grid--flip > .chapter__box { grid-column: 1 / span 6; grid-row: 1; }
	.chapter__grid--flip > .chapter__text { grid-column: 8 / -1; grid-row: 1; }
	.chapter__grid--stack > .chapter__text { grid-column: 1 / span 7; }
	.chapter__grid--stack > .chapter__box { grid-column: 1 / -1; }
	.chapter--courses .chapter__box { --box-h: 380px; }
	.chapter--signals .chapter__box { --box-h: 420px; }
}

/* 11. Presence and partner */
.presence { background: var(--paper); }
.presence__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.presence__head .section-title { max-width: 20ch; }
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; list-style: none; margin-bottom: clamp(3rem, 6vw, 5rem); }
.branch { position: relative; display: grid; gap: 0.35rem; padding-top: 2.75rem; }
.branch__node { position: absolute; top: 0.5rem; left: 0; width: 22px; height: 22px; }
.branch__name { font-family: var(--serif); font-size: var(--step-2); font-weight: 420; letter-spacing: -0.01em; }
.branch__ccy {
	justify-self: start;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #f5ecd3;
	color: #6b5310;
	font-size: 0.75rem;
	font-weight: 700;
}
.presence__grid { display: grid; gap: 2rem; }
.partner {
	position: relative;
	max-width: 40rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	background: var(--paper);
}
.partner__title { font-family: var(--serif); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.partner__name { margin-top: 1rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.partner__text { margin-top: 0.75rem; color: var(--muted); max-width: 52ch; }
.partner__terms { display: grid; gap: 0; margin: 1.5rem 0; }
.partner__terms div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.partner__terms dt { font-weight: 600; font-size: 0.9375rem; }
.partner__terms dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.partner .btn .icon { width: 1em; height: 1em; }
.partner__risk { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); }
.credentials { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--fog); align-self: start; }
.credentials__title { font-weight: 600; }
.credentials__list { margin-top: 0.75rem; display: grid; gap: 0.4rem; color: var(--muted); }
@media (min-width: 1024px) {
	.presence__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
	.partner { grid-column: 4 / span 7; }
	.credentials { grid-column: 11 / -1; }
}

/* Approach chart pieces */
.ap-grid line { stroke: var(--line-on-ink); stroke-width: 1; }
.ap-axis { stroke: rgba(167, 184, 203, 0.4); stroke-width: 1; }
.ap-fit { fill: none; stroke: var(--on-ink); stroke-width: 2; stroke-linecap: round; }
.ap-cone { fill: var(--steel); opacity: 0.14; }
.ap-scen { fill: none; stroke: var(--steel); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.ap-chosen { stroke-width: 3; }
.ap-check { fill: var(--ink); stroke: var(--steel); stroke-width: 2.5; transition: fill 0.3s ease, stroke 0.3s ease; }
.ap-check.is-lit { stroke: var(--emerald); fill: var(--emerald); }
.ap-chart--mini .ml-dot__pulse { display: none; }
.ap-label { fill: var(--on-ink-muted); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.ap-label--accent { fill: var(--emerald); }
.ap-now { stroke: var(--on-ink-muted); stroke-width: 1; stroke-dasharray: 2 5; }

/* Static states (no-JS, reduced motion, mobile figures) */
.ap-chart [data-phase] { transition: opacity 0.4s ease; }
.ap-chart[data-state="1"] [data-phase="2"],
.ap-chart[data-state="1"] [data-phase="3"],
.ap-chart[data-state="2"] [data-phase="3"] { opacity: 0; }
.ap-chart[data-state="2"] .ap-candles,
.ap-chart[data-state="3"] .ap-candles { opacity: 0.5; }
.ap-chart[data-state="3"] .ap-future { opacity: 0.3; }
.ap-chart[data-state="1"] .ap-label[data-phase="1"],
.ap-chart[data-state="2"] .ap-label[data-phase="2"],
.ap-chart[data-state="3"] .ap-label[data-phase="3"] { opacity: 1; }
.ap-chart .ap-label { opacity: 0; }
.ap-chart[data-state="scrub"] [data-phase] { transition: none; }
.ap-chart--mini .ap-label { display: none; }

/* Mobile/tablet: every step carries its own chart; the big one is hidden.
   The thread passes through each chart card (thread.js), so the cards sit
   below the thread and the step text above it. The card edge opens where
   the line enters (left, at --entry-y) and leaves (centre of the bottom). */
@media (max-width: 1023px) {
	.approach__visual { display: none; }
	.journey .approach__body { z-index: auto; }
	.step > * { position: relative; z-index: 2; }
	.step > .step__figure { z-index: 0; }
	.step__figure.is-threaded {
		--gap: 7px;
		--edge: 2px;
		-webkit-mask:
			linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), #000 0) left bottom / 100% var(--edge) no-repeat,
			linear-gradient(#000 calc(var(--entry-y, -99px) - var(--gap)), transparent 0 calc(var(--entry-y, -99px) + var(--gap)), #000 0) left top / var(--edge) 100% no-repeat,
			linear-gradient(#000 0 0) right top / calc(100% - var(--edge)) calc(100% - var(--edge)) no-repeat;
		mask:
			linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), #000 0) left bottom / 100% var(--edge) no-repeat,
			linear-gradient(#000 calc(var(--entry-y, -99px) - var(--gap)), transparent 0 calc(var(--entry-y, -99px) + var(--gap)), #000 0) left top / var(--edge) 100% no-repeat,
			linear-gradient(#000 0 0) right top / calc(100% - var(--edge)) calc(100% - var(--edge)) no-repeat;
	}
}

/* Desktop: sticky chart beside steps that each take most of a screen. */
@media (min-width: 1024px) {
	.approach__body {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 2rem;
		align-items: start;
	}
	.approach__visual {
		grid-column: 1 / span 7;
		position: sticky;
		top: calc(var(--header-h) + max(1.5rem, (100vh - var(--header-h) - 560px) / 2));
	}
	.steps { grid-column: 8 / -1; }
	.step {
		min-height: 72vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		border-top: 0;
		padding-block: 3rem;
	}
	.step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 4rem; }
	.step:last-child { min-height: 60vh; }
	.step__figure { display: none; }
	.step { border-top: 0; padding-left: 2.5rem; }
	.is-enhanced .step { transition: opacity 0.45s ease; }
	.is-enhanced .step:not(.is-active) { opacity: 0.38; }
}

/* 12. Contact & form */
.contact {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(70% 80% at 0% 100%, rgba(47, 212, 154, 0.12), transparent 60%),
		var(--ink);
	color: var(--on-ink);
}
.contact__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.partner-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line-on-ink);
	border-radius: var(--radius-lg);
}
.partner-cta__title { font-size: 1.25rem; font-weight: 700; }
.partner-cta__text { margin-top: 0.25rem; color: var(--on-ink-muted); }
.site-footer__about { margin-top: 0.75rem; max-width: 34ch; color: var(--on-ink-muted); font-size: 0.9375rem; }
.contact__title {
	font-family: var(--serif);
	font-size: var(--step-5);
	font-weight: 340;
	font-variation-settings: "opsz" 72;
	letter-spacing: -0.03em;
	line-height: 1.02;
	max-width: 11ch;
}
.contact__lede { margin-top: 1.5rem; max-width: 40ch; color: var(--on-ink-muted); font-size: var(--step-1); line-height: 1.5; }
.contact__channels { margin-top: 2.5rem; display: grid; gap: 1.25rem; justify-items: start; }
.contact__links { display: grid; gap: 0.25rem; }
.contact__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	min-height: 44px;
	color: var(--on-ink);
	text-decoration: underline;
	text-decoration-color: rgba(242, 246, 250, 0.3);
}
.contact__links a:hover { text-decoration-color: currentColor; }
.contact__links .icon { width: 1.2em; height: 1.2em; color: var(--emerald); }

@media (max-width: 599px) {
	.contact__channels .btn { width: 100%; }
	.contact__channels { justify-items: stretch; }
}
@media (min-width: 1024px) {
	.contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
	.contact__pitch { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 3rem); }
	.contact__form-wrap { grid-column: 8 / -1; }
}

.form {
	--focus: var(--emerald-deep);
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--radius-lg);
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.form__title { font-family: var(--serif); font-size: var(--step-2); font-weight: 420; letter-spacing: -0.01em; }
.form__status:empty { display: none; }
.form__status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form__status--success { background: #e3f6ee; color: #035c42; }
.form__status--error { background: #fdecec; color: #8a1c1c; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) {
	.form__row--split { grid-template-columns: 1fr 1fr; }
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 0.4rem; }
.field__label { font-size: 0.9375rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__input {
	width: 100%;
	min-height: 50px;
	padding: 0.7rem 0.9rem;
	border: 1px solid #b9c7d5;
	border-radius: 8px;
	background: var(--paper);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input:hover { border-color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--emerald-deep); box-shadow: 0 0 0 3px rgba(4, 122, 87, 0.22); }
.field__input[aria-invalid="true"] { border-color: #b42318; }
.field__textarea { resize: vertical; min-height: 140px; }
.field__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 18px;
	padding-right: 2.5rem;
}
.field__error { color: #b42318; font-size: 0.875rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.field--check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--emerald-deep); }
.field--check a { color: var(--ink); }
.field--check .field__error { grid-column: 1 / -1; }

/* 13. Footer, action bar, interior pages */
.site-footer {
	background: var(--ink-deep);
	color: var(--on-ink);
	padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__promise { margin-top: 0.85rem; color: var(--on-ink-muted); font-family: var(--serif); font-size: 1.25rem; }
.site-footer__heading { font-size: 0.9375rem; font-weight: 600; color: var(--on-ink-muted); margin-bottom: 0.75rem; }
.site-footer__list,
.site-footer .nav__list,
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer__col a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	text-decoration: none;
	color: var(--on-ink);
	opacity: 0.88;
}
.site-footer__col a:hover { opacity: 1; text-decoration: underline; }
.site-footer__legal {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-on-ink);
	display: grid;
	gap: 1rem;
	color: var(--on-ink-muted);
	font-size: 0.875rem;
}
.site-footer__risk { max-width: 90ch; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__meta a { color: var(--on-ink-muted); }
@media (min-width: 800px) {
	.site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.action-bar { display: none; }
@media (max-width: 959px) {
	.action-bar {
		position: fixed;
		z-index: 40;
		left: 0; right: 0; bottom: 0;
		display: flex;
		gap: 0.5rem;
		padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
		background: rgba(8, 33, 61, 0.94);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		border-top: 1px solid var(--line-on-ink);
		--focus: var(--emerald);
		transform: translateY(110%);
		transition: transform 0.4s var(--ease-out);
	}
	.action-bar.is-visible { transform: none; }
	.action-bar .btn { flex: 1 1 0; padding: 0 0.75em; }
	.action-bar__main { flex-grow: 1.4 !important; }
	.has-hero .site-footer { padding-bottom: calc(2rem + 76px + env(safe-area-inset-bottom)); }
}

.page-shell { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: var(--section-y); }
.page-header { margin-bottom: 2.5rem; }
.page-title {
	font-family: var(--serif);
	font-size: var(--step-4);
	font-weight: 380;
	font-variation-settings: "opsz" 72;
	letter-spacing: -0.02em;
	line-height: 1.08;
}
.page-meta { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.post-list { display: grid; gap: 2.5rem; }
.post-card { padding-top: 2rem; border-top: 1px solid var(--rule); }
.post-card__title { font-family: var(--serif); font-size: var(--step-2); font-weight: 420; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }

.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 420; letter-spacing: -0.01em; line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose a { color: var(--emerald-deep); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--emerald-deep); font-family: var(--serif); font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose img { border-radius: var(--radius); }
.alignwide { max-width: min(1100px, 100vw - var(--gutter) * 2); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--muted); }
.nav-links { display: flex; gap: 1rem; margin-top: 3rem; }

/* Reduced motion: keep every state change, drop the travel. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
	.intro-pending .hero__word-inner { transform: none; }
	.ml-dot__pulse { display: none; }
}

/* Forced colours: let system colours through for marks and controls. */
@media (forced-colors: active) {
	.btn, .svc-btn, .field__input, .assistant__chip { border: 1px solid CanvasText; }
	.th-hl { stroke: Highlight; }
	.ml-highlight, .ap-chosen { stroke: Highlight; }
}

/* 14. Trading FAQ assistant (assets/js/assistant.js) — preset answers only */
.assistant {
	position: fixed;
	z-index: 45;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column-reverse; /* launcher stays put; the panel opens above it */
	align-items: flex-end;
	gap: 0.75rem;
	--focus: var(--emerald);
}
.assistant[hidden] { display: none; }
.assistant__launcher {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0 1.1rem 0 0.95rem;
	border: 1px solid var(--line-on-ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--on-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 34px -14px rgba(6, 26, 49, 0.6);
	transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.assistant__launcher .icon { width: 22px; height: 22px; color: var(--emerald); }
.assistant__launcher:hover { background: var(--ink-3); }
.assistant.is-open .assistant__launcher { background: var(--ink-3); }

.assistant__panel {
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	max-height: min(600px, calc(100svh - 120px));
	border-radius: var(--radius-lg);
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 30px 70px -24px rgba(6, 26, 49, 0.55), 0 0 0 1px rgba(8, 33, 61, 0.08);
	overflow: hidden;
	--focus: var(--emerald-deep);
}
.assistant__panel[hidden] { display: none; }
.assistant__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1rem 0.85rem 1.15rem;
	background: var(--ink);
	color: var(--on-ink);
}
.assistant__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 420; letter-spacing: -0.01em; }
.assistant__desc { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: var(--on-ink-muted); }
.assistant__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -0.25rem -0.35rem 0 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--on-ink);
	cursor: pointer;
	--focus: var(--emerald);
}
.assistant__close:hover { background: rgba(255, 255, 255, 0.08); }
.assistant__close .icon { width: 20px; height: 20px; }

.assistant__log {
	flex: 1 1 auto;
	min-height: 120px;
	overflow-y: auto;
	padding: 1rem 1.15rem 0.5rem;
	display: grid;
	align-content: start;
	gap: 0.75rem;
	overscroll-behavior: contain;
}
.assistant__msg p { font-size: 0.9375rem; line-height: 1.55; }
.assistant__msg--bot p { padding: 0.75rem 0.9rem; border-radius: 4px 14px 14px 14px; background: var(--fog); }
.assistant__msg--you { justify-self: end; max-width: 85%; }
.assistant__msg--you p { padding: 0.6rem 0.9rem; border-radius: 14px 4px 14px 14px; background: var(--ink); color: var(--on-ink); }
.assistant__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.5rem; padding-left: 0.2rem; font-size: 0.875rem; font-weight: 600; }
.assistant__links a { color: var(--emerald-deep); text-underline-offset: 0.2em; }

.assistant__suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem 1.15rem 0.75rem; }
.assistant__chip {
	min-height: 36px;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.assistant__chip:hover { border-color: var(--emerald-deep); background: #f2faf6; }

.assistant__form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem 0.25rem; border-top: 1px solid var(--rule); }
.assistant__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0.5rem 0.8rem;
	border: 1px solid #b9c7d5;
	border-radius: 8px;
	font-size: 1rem; /* 16px avoids iOS zoom on focus */
}
.assistant__input:focus { outline: none; border-color: var(--emerald-deep); box-shadow: 0 0 0 3px rgba(4, 122, 87, 0.22); }
.assistant__send {
	min-height: 44px;
	padding: 0 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	cursor: pointer;
}
.assistant__send:hover { background: var(--ink-3); }
.assistant__privacy { padding: 0.35rem 1rem 0.85rem; font-size: 0.75rem; color: var(--muted); }

@media (max-width: 959px) {
	/* Sit above the homepage action bar; on phones the panel is a bottom sheet. */
	.has-hero .assistant { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.assistant__launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.assistant__launcher { width: 52px; height: 52px; padding: 0; justify-content: center; }
}
@media (max-width: 599px) {
	.assistant { left: 12px; right: 12px; }
	.assistant__panel { width: 100%; max-height: calc(100svh - 230px); }
}
.splash-on .assistant { visibility: hidden; }
