/* Foyen och AI – sidspecifika stilar. Bygger på foyen.css (Roobert, Season Serif, Foyens palett). */

.ai-page {
	--ai-green: #173F35;
	--ai-green-deep: #10302a;
	--ai-cream: #F9F5EF;
	--ai-ink: #141414;
	--ai-mint: #C3D9D7;
	--ai-teal: #83AFB4;
	--ai-brown: #926444;
	--ai-line: rgba(20, 20, 20, .14);
	--ai-ease: cubic-bezier(.22, .61, .36, 1);
}

.ai-page :focus-visible {
	outline: 2px solid var(--ai-teal);
	outline-offset: 3px;
}

.ai-eyebrow {
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
	color: var(--heading-color-alt, var(--ai-brown));
}

/* ---------- Hero ---------- */

.ai-hero {
	--bg-color: rgba(16, 48, 42, .82);
	min-height: 100svh;
	display: grid;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
}
.ai-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	filter: grayscale(.35);
}
.ai-hero__field {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}
.ai-hero > div {
	position: relative;
	z-index: 1;
	width: min(90vw, 72.5rem);
	margin: 0 auto;
	padding: 4rem 0 6rem;
}
.ai-hero h1 {
	max-width: 15ch;
	font-size: clamp(2.5rem, 5.4vw, 4.75rem);
	line-height: 1.05;
	margin: 0 0 1.5rem;
}
.ai-hero .ai-eyebrow { color: var(--ai-mint); }
.ai-hero__lead {
	max-width: 34rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	opacity: .88;
	margin: 0 0 2.25rem;
}
.ai-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	width: 1px;
	height: 3.5rem;
	background: rgba(255, 255, 255, .25);
	z-index: 1;
	overflow: hidden;
}
.ai-hero__scroll span {
	position: absolute;
	inset: 0;
	background: #fff;
	animation: ai-scrollcue 2.4s var(--ai-ease) infinite;
}
@keyframes ai-scrollcue {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}

.ai-rise {
	opacity: 0;
	transform: translateY(1.25rem);
	animation: ai-rise 1s var(--ai-ease) forwards;
}
.ai-rise:nth-child(2) { animation-delay: .12s; }
.ai-rise:nth-child(3) { animation-delay: .28s; }
.ai-rise:nth-child(4) { animation-delay: .42s; }
@keyframes ai-rise { to { opacity: 1; transform: none; } }

/* ---------- Scroll-reveal ---------- */

.js .ai-page [data-reveal] {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity .9s var(--ai-ease), transform .9s var(--ai-ease);
}
.js .ai-page [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Grund / pelare ---------- */

.ai-foundation {
	margin-block: clamp(5rem, 10vw, 9rem);
}
.ai-foundation__intro {
	max-width: 46rem;
	margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ai-foundation__intro h2 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	margin: 0;
}
.ai-pillars {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.ai-pillar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 3rem;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	border-top: 1px solid var(--ai-line);
	align-items: center;
}
.ai-pillar:last-child { border-bottom: 1px solid var(--ai-line); }
.ai-pillar__index {
	font-family: var(--font-family-heading-alt);
	font-style: italic;
	font-size: clamp(3rem, 6vw, 5.5rem);
	line-height: 1;
	color: var(--ai-brown);
}
.ai-pillar__body h3 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin: 0 0 1rem;
	font-weight: 400;
}
.ai-pillar__body p {
	max-width: 32rem;
	margin: 0;
	font-size: 1.0625rem;
}
.ai-pillar__visual {
	margin: 0;
	max-width: 28rem;
	width: 100%;
}
@media (min-width: 64em) {
	.ai-pillar {
		grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr);
	}
	.ai-pillar__index { align-self: start; }
	.ai-pillar__visual { justify-self: end; }
}

/* Tidslinje */
.ai-timeline svg { width: 100%; height: auto; overflow: visible; }
.ai-timeline__track { stroke: var(--ai-line); stroke-width: 2; }
.ai-timeline__progress {
	stroke: var(--ai-green);
	stroke-width: 2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.8s var(--ai-ease) .3s;
}
.is-visible .ai-timeline__progress { stroke-dashoffset: 0; }
.ai-timeline__ticks line { stroke: var(--ai-line); stroke-width: 2; }
.ai-timeline__dot { fill: var(--ai-green); }
.ai-timeline__dot--now { fill: var(--ai-cream); stroke: var(--ai-green); stroke-width: 2; }
.ai-timeline__pulse {
	fill: none;
	stroke: var(--ai-green);
	stroke-width: 1.5;
	transform-origin: 390px 120px;
	animation: ai-pulse 2.6s var(--ai-ease) infinite;
}
@keyframes ai-pulse {
	from { transform: scale(1); opacity: .8; }
	to { transform: scale(3.2); opacity: 0; }
}
.ai-timeline__year {
	font-family: var(--font-family-heading-alt);
	font-style: italic;
	font-size: 44px;
	fill: var(--ai-ink);
}
.ai-timeline__label { font-size: 14px; fill: #555; letter-spacing: .02em; }
.ai-timeline__label--end { text-anchor: middle; }

/* Produktionskedja */
.ai-chain figcaption {
	margin-top: .75rem;
	font-size: .8125rem;
	opacity: .65;
}
.ai-chain__frame {
	position: relative;
	border: 1px solid var(--ai-green);
	border-radius: 1rem;
	padding: 2.5rem 1.5rem 1.5rem;
}
.ai-chain__caption,
.ai-graph__tag {
	position: absolute;
	top: -.7rem;
	left: 1.25rem;
	background: var(--body-bg, var(--ai-cream));
	padding: 0 .5rem;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ai-green);
}
.ai-chain ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .5rem;
	position: relative;
}
.ai-chain ol::before {
	content: "";
	position: absolute;
	left: .4rem;
	top: .6rem;
	bottom: .6rem;
	width: 1px;
	background: var(--ai-mint);
}
.ai-chain li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1rem;
	padding: .35rem 0;
}
.ai-chain li i {
	position: relative;
	flex: none;
	width: .8125rem;
	height: .8125rem;
	border-radius: 50%;
	border: 1px solid var(--ai-green);
	background: var(--ai-cream);
	transition: background .4s var(--ai-ease);
}
.is-visible .ai-chain li i { animation: ai-chainstep 5s var(--ai-ease) infinite; }
.ai-chain li:nth-child(2) i { animation-delay: .6s; }
.ai-chain li:nth-child(3) i { animation-delay: 1.2s; }
.ai-chain li:nth-child(4) i { animation-delay: 1.8s; }
.ai-chain li:nth-child(5) i { animation-delay: 2.4s; }
@keyframes ai-chainstep {
	0%, 8% { background: var(--ai-cream); }
	14%, 60% { background: var(--ai-green); }
	75%, 100% { background: var(--ai-cream); }
}

/* Serverpark */
.ai-rack svg { width: 100%; height: auto; }
.ai-rack__boundary { fill: rgba(195, 217, 215, .28); stroke: var(--ai-green); stroke-width: 1.5; }
.ai-rack__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ai-green); }
.ai-rack__units rect { fill: var(--ai-green); }
.ai-rack__units line { stroke: rgba(195, 217, 215, .45); stroke-width: 2; stroke-linecap: round; }
.ai-rack__units circle { fill: var(--ai-mint); animation: ai-blink 2.2s steps(2, jump-none) infinite; }
.ai-rack__units circle:nth-of-type(2) { animation-delay: .5s; }
.ai-rack__units circle:nth-of-type(3) { animation-delay: 1.1s; }
.ai-rack__units circle:nth-of-type(4) { animation-delay: 1.6s; }
@keyframes ai-blink { 50% { fill: #fff; } }
.ai-rack__link { stroke: #999; stroke-width: 1.5; stroke-dasharray: 4 6; }
.ai-rack__cut line { stroke: var(--ai-brown); stroke-width: 2.5; stroke-linecap: round; }
.ai-rack__ext { fill: none; stroke: #999; stroke-width: 1.5; stroke-dasharray: 3 4; }
.ai-rack__ext-label { font-size: 12px; fill: #777; text-anchor: middle; }

/* Rättsdata och know-how */
.ai-sources svg { width: 100%; height: auto; }
.ai-sources figcaption {
	margin-top: .75rem;
	font-size: .8125rem;
	opacity: .65;
}
.ai-sources__boundary { fill: rgba(195, 217, 215, .2); stroke: var(--ai-green); stroke-width: 1.5; }
.ai-sources__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ai-green); }
.ai-sources__box rect { fill: var(--ai-cream); stroke: var(--ai-ink); stroke-width: 1; }
.ai-sources text { text-anchor: middle; font-size: 13px; fill: var(--ai-ink); }
.ai-sources .ai-sources__tag { text-anchor: start; fill: var(--ai-green); font-size: 12px; }
.ai-sources .ai-sources__sub { font-size: 11px; fill: var(--ai-brown); font-style: italic; }
.ai-sources__path { fill: none; stroke: var(--ai-green); stroke-width: 1.2; }
.ai-sources__core circle { fill: var(--ai-green); }
.ai-sources__core text { fill: #fff; font-size: 15px; }
.ai-sources__core .ai-sources__sub { fill: var(--ai-mint); }
.ai-sources__dot { fill: var(--ai-brown); }
.ai-sources__dot--b { fill: var(--ai-teal); }
@media (prefers-reduced-motion: reduce) {
	.ai-sources__dot { display: none; }
}

/* ---------- Övergång ---------- */

.ai-statement {
	background: var(--ai-green);
	color: #fff;
	padding: clamp(5rem, 11vw, 10rem) 0;
}
.ai-statement .ai-eyebrow { color: var(--ai-mint); }
.ai-statement h2 {
	font-size: clamp(2rem, 4.2vw, 3.75rem);
	line-height: 1.12;
	max-width: 24ch;
	margin: 0 0 clamp(3rem, 6vw, 5rem);
	font-weight: 400;
}
.ai-palette {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid rgba(255, 255, 255, .22);
}
@media (min-width: 48em) {
	.ai-palette { grid-template-columns: repeat(2, 1fr); }
	.ai-palette li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .22); }
	.ai-palette li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); }
}
@media (min-width: 64em) {
	.ai-palette { grid-template-columns: repeat(4, 1fr); }
	.ai-palette li:nth-child(n+3) { border-top: 0; }
}
.ai-palette a {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.75rem 1.5rem 1.75rem 0;
	color: #fff;
	text-decoration: none;
	font-size: 1.125rem;
	transition: color .3s var(--ai-ease), padding .4s var(--ai-ease);
}
@media (min-width: 48em) {
	.ai-palette li:nth-child(even) a { padding-left: 1.5rem; }
}
@media (min-width: 64em) {
	.ai-palette li + li a { padding-left: 1.5rem; }
	.ai-palette li:nth-child(3) { border-left: 1px solid rgba(255, 255, 255, .22); }
}
.ai-palette b {
	font-family: var(--font-family-heading-alt);
	font-style: italic;
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--ai-teal);
}
.ai-palette a:hover { color: var(--ai-mint); }
.ai-palette a:hover b { color: var(--ai-mint); }

/* ---------- Erbjudanden ---------- */

.ai-offer {
	padding: clamp(5rem, 10vw, 9rem) 0;
}
.ai-offer--local {
	background: var(--ai-ink);
	color: #fff;
	--heading-color: #fff;
	--heading-color-alt: var(--ai-teal);
	--text-color: #fff;
}
.ai-offer .container { margin-block: 0; }
.ai-offer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem 5rem;
	align-items: center;
}
@media (min-width: 64em) {
	.ai-offer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.ai-offer__grid--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
	.ai-offer__grid--reverse .ai-offer__text { order: 2; }
}
.ai-offer__letter {
	font-family: var(--font-family-heading-alt);
	font-style: italic;
	font-size: 4rem;
	line-height: 1;
	margin: 0 0 1.5rem;
	color: var(--heading-color-alt, var(--ai-brown));
}
.ai-offer__text h2 {
	font-size: clamp(2rem, 3.4vw, 2.875rem);
	margin: 0 0 1.5rem;
	font-weight: 400;
}
.ai-offer__lead {
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
	line-height: 1.45;
}
.ai-offer__text p { max-width: 36rem; }
.ai-offer__visual { margin: 0; }
.ai-offer__visual figcaption {
	margin-top: 1rem;
	font-size: .8125rem;
	opacity: .65;
}

.ai-facts {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.ai-facts li {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.ai-facts strong { font-weight: 500; min-width: 12rem; }
.ai-facts span { opacity: .7; font-size: .9375rem; }

/* Lokal graf */
.ai-graph__frame {
	position: relative;
	aspect-ratio: 6 / 5;
	border: 1px solid rgba(131, 175, 180, .55);
	border-radius: 1.25rem;
	background:
		radial-gradient(ellipse at 50% 45%, rgba(23, 63, 53, .65), transparent 70%),
		#101010;
}
.ai-graph__frame .ai-graph__tag {
	background: var(--ai-ink);
	color: var(--ai-mint);
	z-index: 1;
}
.ai-graph__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}
.ai-graph__seal {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem .8rem;
	border-radius: 999px;
	border: 1px solid rgba(195, 217, 215, .35);
	font-size: .75rem;
	letter-spacing: .06em;
	color: var(--ai-mint);
	background: rgba(20, 20, 20, .7);
}
.ai-graph__seal::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--ai-teal);
	box-shadow: 0 0 0 3px rgba(131, 175, 180, .25);
}

/* Tvisteanalys: en ström av dokument utan slut */
.ai-offer--dispute { background: var(--ai-cream); }
.ai-volume__frame {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1.25rem;
	padding: 2.5rem 1.5rem 1.75rem;
	border: 1px solid var(--ai-green);
	border-radius: 1.25rem;
	background: rgba(195, 217, 215, .2);
}
.ai-volume__frame .ai-graph__tag { background: var(--ai-cream); }
.ai-volume__stream {
	height: 15rem;
	-webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
	mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='100'%3E%3Crect x='40' y='30' width='10' height='13' rx='1.5' fill='%23926444'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20'%3E%3Crect x='4' y='3' width='10' height='13' rx='1.5' fill='%23173F35' fill-opacity='.55'/%3E%3C/svg%3E");
	background-size: 90px 100px, 18px 20px;
	animation: ai-stream 6s linear infinite;
}
@keyframes ai-stream {
	from { background-position: 0 0, 0 0; }
	to { background-position: 0 100px, 0 100px; }
}
.ai-volume__arrow {
	width: 2.5rem;
	height: 1px;
	background: var(--ai-green);
	position: relative;
}
.ai-volume__arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: -4px;
	border-left: 8px solid var(--ai-green);
	border-top: 4.5px solid transparent;
	border-bottom: 4.5px solid transparent;
}
.ai-volume__result {
	background: var(--ai-green);
	color: #fff;
	border-radius: 1rem;
	padding: 1.25rem;
}
.ai-volume__result strong { display: block; font-weight: 400; font-size: 1.125rem; line-height: 1.3; }
.ai-volume__kicker {
	display: block;
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ai-mint);
	margin-bottom: .4rem;
}
@media (max-width: 40em) {
	.ai-volume__frame { grid-template-columns: 1fr; }
	.ai-volume__stream { height: 10rem; }
	.ai-volume__arrow { width: 1px; height: 2rem; justify-self: center; }
	.ai-volume__arrow::after { right: -4px; top: auto; bottom: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 8px solid var(--ai-green); border-bottom: 0; }
}

/* MCP */
.ai-notice {
	margin-top: 1.75rem;
	padding: 1rem 1.25rem;
	border-left: 2px solid var(--ai-brown);
	background: rgba(255, 255, 255, .55);
	font-size: .9375rem;
}
.ai-notice strong {
	display: block;
	font-weight: 500;
	font-size: .75rem;
	letter-spacing: .14em;
	color: var(--ai-brown);
	margin-bottom: .25rem;
}
.ai-offer--mcp { background: #E7EFEE; }
.ai-offer--mcp .ai-mcp__protocol { background: #E7EFEE; }
.ai-mcp__diagram {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(4rem, .8fr) minmax(0, 1.2fr);
	align-items: center;
}
.ai-mcp__node {
	border: 1px solid var(--ai-ink);
	border-radius: 1rem;
	padding: 1.25rem;
	background: #fff;
}
.ai-mcp__node strong { display: block; font-weight: 500; font-size: 1.125rem; }
.ai-mcp__where {
	display: block;
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ai-brown);
	margin-bottom: .4rem;
}
.ai-mcp__node--foyen { background: var(--ai-green); color: #fff; border-color: var(--ai-green); }
.ai-mcp__node--foyen .ai-mcp__where { color: var(--ai-mint); }
.ai-mcp__node ul {
	list-style: none;
	margin: .9rem 0 0;
	padding: 0;
	display: grid;
	gap: .4rem;
	font-size: .875rem;
}
.ai-mcp__node li {
	padding: .4rem .6rem;
	border: 1px solid rgba(195, 217, 215, .4);
	border-radius: .4rem;
}
.ai-mcp__wire {
	position: relative;
	height: 1px;
	background: var(--ai-ink);
	margin: 0 -1px;
}
.ai-mcp__protocol {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	border: 1px solid var(--ai-ink);
	border-radius: 999px;
	padding: .2rem .6rem;
	font-size: .75rem;
	letter-spacing: .1em;
	z-index: 1;
}
.ai-mcp__packet {
	position: absolute;
	top: -3px;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ai-brown);
	animation: ai-packet 2.8s var(--ai-ease) infinite;
}
.ai-mcp__packet--back {
	background: var(--ai-green);
	animation-name: ai-packet-back;
	animation-delay: 1.4s;
}
@keyframes ai-packet {
	0% { left: 0; opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes ai-packet-back {
	0% { left: calc(100% - 7px); opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { left: 0; opacity: 0; }
}

.ai-mcp__console {
	margin-top: 2rem;
	border-radius: .9rem;
	background: var(--ai-ink);
	color: #e8e8e8;
	overflow: hidden;
	font-size: .875rem;
}
.ai-mcp__console-bar {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .7rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ai-mcp__console-bar span {
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
}
.ai-mcp__console-bar em {
	margin-left: auto;
	font-style: normal;
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ai-teal);
}
.ai-mcp__log {
	list-style: none;
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
	display: grid;
	gap: .6rem;
	min-height: 10.5rem;
}
.ai-mcp__log li {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: .75rem;
	transition: opacity .5s var(--ai-ease), transform .5s var(--ai-ease);
}
.js .ai-mcp__log li[data-step] { opacity: 0; transform: translateX(-.5rem); }
.js .ai-mcp__log li[data-step].is-on { opacity: 1; transform: none; }
.ai-mcp__log b {
	font-weight: 500;
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ai-teal);
	padding-top: .1rem;
}
.ai-mcp__log li:last-child b { color: var(--ai-mint); }

@media (max-width: 40em) {
	.ai-mcp__diagram { grid-template-columns: 1fr; }
	.ai-mcp__wire { width: 1px; height: 4.5rem; margin: -1px auto; justify-self: center; }
	.ai-mcp__packet { left: -3px; animation-name: ai-packet-v; }
	.ai-mcp__packet--back { animation-name: ai-packet-v-back; }
	@keyframes ai-packet-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
	@keyframes ai-packet-v-back { 0% { top: calc(100% - 7px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
}

/* ---------- Advokaterna ---------- */

.ai-counsel {
	--bg-color: rgba(20, 20, 20, .62);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(6rem, 14vw, 12rem) 0;
}
.ai-counsel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.ai-counsel__inner { margin-block: 0; }
.ai-counsel h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.1;
	max-width: 22ch;
	margin: 0 0 1.5rem;
	font-weight: 400;
}
.ai-counsel p:not(.ai-offer__letter) { max-width: 34rem; font-size: 1.125rem; }
.ai-counsel .ai-offer__letter { color: var(--ai-mint); }

/* ---------- Kontakt ---------- */

.ai-cta {
	margin-block: clamp(5rem, 10vw, 8rem);
}
.ai-cta h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 auto 1rem; }
.ai-cta p { margin: 0 auto 2rem; max-width: 30rem; }
.ai-cta .buttons { justify-content: center; }

/* Aktuell menypunkt */
#site-header .menu-ai > a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: .35em;
	text-decoration-thickness: 1px;
}

/* ---------- Reducerad rörelse ---------- */

@media (prefers-reduced-motion: reduce) {
	.ai-page *,
	.ai-page *::before,
	.ai-page *::after {
		animation: none !important;
		transition: none !important;
	}
	.ai-rise,
	.js .ai-page [data-reveal],
	.js .ai-mcp__log li[data-step] { opacity: 1; transform: none; }
	.ai-timeline__progress { stroke-dashoffset: 0; }
	.ai-hero__scroll { display: none; }
}
