/* ==========================================================================
   Vibria RC – hovedstylesheet
   Farver: natblå, børstet stål, elektrisk blå og glødende rav (fra logoet).
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--bg: #05070d;
	--bg-2: #0a0f19;
	--bg-3: #111827;
	--line: rgba(150, 180, 220, .14);
	--line-strong: rgba(150, 190, 240, .28);
	--text: #e7ecf3;
	--text-2: #b4bfce;
	--muted: #7f8ba0;
	--steel: #c9d1dc;
	--ice: #3ba9ff;
	--ice-2: #7cc8ff;
	--ice-glow: rgba(59, 169, 255, .45);
	--ember: #ff7a1f;
	--ember-2: #ffb15c;
	--ember-glow: rgba(255, 122, 31, .4);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Inter Display", "Inter", system-ui, sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--container: 1240px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ice-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; color: #fff; }
p { margin: 0 0 1.1em; }
::selection { background: var(--ice); color: #00101f; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ice); color: #00101f; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

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

/* ---------- Typografi-hjælpere ---------- */
.metal {
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .01em;
	background: linear-gradient(180deg, #ffffff 0%, #e9eef4 30%, #9aa5b4 52%, #eef2f6 64%, #b3bcc8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
	color: var(--ice-2); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--ice)); box-shadow: 0 0 10px var(--ice-glow); }

/* ---------- Knapper ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .9em 1.5em; border-radius: 999px;
	font-weight: 600; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase;
	border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary {
	color: #fff;
	background: linear-gradient(135deg, #1677e8 0%, #2fa4ff 100%);
	box-shadow: 0 0 0 1px rgba(124, 200, 255, .35) inset, 0 8px 28px -6px var(--ice-glow);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(170, 220, 255, .6) inset, 0 12px 36px -6px rgba(59, 169, 255, .7); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(10, 15, 25, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; border-color: var(--ice); box-shadow: 0 0 24px -6px var(--ice-glow); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h);
	transition: background .3s, border-color .3s, backdrop-filter .3s;
	border-bottom: 1px solid transparent;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled, body:not(.has-hero) .site-header.is-scrolled {
	background: rgba(5, 7, 13, .82);
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-right: auto; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(59, 169, 255, .35)); transition: transform .4s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; color: #fff; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav .menu a {
	display: block; padding: 10px 14px; color: var(--text-2);
	font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; position: relative;
}
.site-nav .menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ice); box-shadow: 0 0 10px var(--ice); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: #fff; }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: #fff; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; position: relative; z-index: 2; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); border: 1px solid var(--line); transition: all .25s; }
.social a:hover { color: #fff; border-color: var(--ice); box-shadow: 0 0 18px -4px var(--ice-glow); }
.social svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 40px;
		background: radial-gradient(ellipse at 50% 30%, rgba(22, 60, 110, .55), transparent 60%), rgba(4, 6, 11, .97);
		backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
		opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: center; gap: 4px; }
	.site-nav .menu a { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: .08em; color: #fff; }
	.site-nav .menu a::after { bottom: 2px; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero__bg {
	position: absolute; inset: -4% 0 0 0; z-index: -3; overflow: hidden; background: var(--bg);
	transform: translate3d(0, var(--parallax, 0), 0);
	animation: hero-in 2.2s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Scener med langsom Ken Burns-bevægelse og krydstoning */
.hero__scene {
	position: absolute; inset: 0;
	background: var(--scene) center 40% / cover no-repeat;
	opacity: 0; transition: opacity 2.4s ease;
	will-change: transform, opacity;
}
.hero__scene.is-active { opacity: 1; }
.hero__scene--0 { animation: kb-a 26s ease-in-out infinite alternate; }
.hero__scene--1 { animation: kb-b 26s ease-in-out infinite alternate; }
@keyframes kb-a { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
@keyframes kb-b { from { transform: scale(1.16) translate3d(1.5%, -1%, 0); } to { transform: scale(1.05) translate3d(-1%, 1%, 0); } }

/* Drivende tåge */
.hero__fog { position: absolute; left: -50%; width: 200%; pointer-events: none; mix-blend-mode: screen; opacity: .5; z-index: 2; }
.hero__fog--a { bottom: 4%; height: 38%; background: radial-gradient(ellipse 18% 45% at 20% 60%, rgba(150, 180, 220, .22), transparent 70%), radial-gradient(ellipse 22% 40% at 55% 55%, rgba(140, 170, 210, .18), transparent 70%), radial-gradient(ellipse 16% 35% at 85% 65%, rgba(160, 190, 230, .2), transparent 70%); animation: fog 70s linear infinite; filter: blur(8px); }
.hero__fog--b { bottom: 18%; height: 30%; opacity: .35; background: radial-gradient(ellipse 20% 40% at 35% 50%, rgba(170, 195, 230, .2), transparent 70%), radial-gradient(ellipse 15% 35% at 75% 45%, rgba(150, 180, 220, .18), transparent 70%); animation: fog 110s linear infinite reverse; filter: blur(14px); }
@keyframes fog { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(25%, 0, 0); } }

/* Lyn-glimt (styres af JS) */
.hero__flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 70% 20%, rgba(200, 225, 255, .55), rgba(120, 170, 255, .15) 45%, transparent 75%); }
.hero__flash.is-on { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 6% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: .7; } 45% { opacity: .15; } 100% { opacity: 0; } }
.hero.has-video .hero__flash, .hero.has-video .hero__fog { display: none; }

/* FPV-HUD */
.hud { position: absolute; inset: calc(var(--header-h) + 18px) var(--gutter) 26px; z-index: 0; pointer-events: none; font: 600 .74rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .12em; color: rgba(200, 230, 255, .78); text-shadow: 0 0 6px rgba(59, 169, 255, .8), 0 1px 2px #000; animation: rise 1.4s 1s var(--ease) both; }
.hud__corner { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(124, 200, 255, .55); filter: drop-shadow(0 0 4px rgba(59, 169, 255, .7)); }
.hud__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud__tl, .hud__tr, .hud__bl, .hud__br { position: absolute; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hud__tl { top: 10px; left: 38px; }
.hud__tr { top: 10px; right: 38px; }
.hud__bl { bottom: 10px; left: 38px; }
.hud__br { bottom: 10px; right: 38px; }
.hud__rec { display: inline-flex; align-items: center; gap: 6px; color: #ff5a5a; text-shadow: 0 0 8px rgba(255, 80, 80, .8); }
.hud__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4040; box-shadow: 0 0 8px #ff4040; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hud__bar { display: inline-block; width: 34px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; padding: 1px; position: relative; }
.hud__bar::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; }
.hud__bar i { display: block; height: 100%; width: 100%; background: currentColor; transition: width 1s; }
.hud__mode { padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; }
.hud__horizon { position: absolute; left: 50%; top: 24%; width: 200px; margin-left: -100px; height: 0; }
.hud__cross { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border: 1.5px solid rgba(200, 230, 255, .6); border-radius: 50%; }
.hud__line { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: linear-gradient(90deg, rgba(200, 230, 255, .7) 0 30%, transparent 30% 70%, rgba(200, 230, 255, .7) 70%); transform: rotate(var(--roll, 0deg)) translateY(var(--pitch, 0px)); transition: transform 1.2s ease-in-out; opacity: .6; }
@media (max-width: 860px) {
	.hud { inset: calc(var(--header-h) + 8px) 12px 16px; font-size: .66rem; }
	.hud__horizon, .hud__bl, .hud__br, .hud__corner--bl, .hud__corner--br { display: none; }
}
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero__shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 7, 13, .65) 0%, rgba(5, 7, 13, 0) 18%),
		radial-gradient(ellipse 62% 66% at 78% 72%, rgba(5, 7, 13, .86), rgba(5, 7, 13, .5) 55%, transparent 78%),
		linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, .55) 22%, rgba(5, 7, 13, 0) 50%);
}
.hero__content {
	position: relative; z-index: 1;
	width: 100%; max-width: var(--container); margin-inline: auto;
	padding: calc(var(--header-h) + 40px) var(--gutter) clamp(90px, 13vh, 150px);
	display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 3vw, 40px);
}
.hero__emblem {
	width: clamp(150px, 17vw, 250px); height: auto; flex: none;
	filter: drop-shadow(0 0 30px rgba(59, 169, 255, .35)) drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
	animation: emblem-in 1.4s .3s var(--ease) both, float 7s 1.7s ease-in-out infinite;
}
@keyframes emblem-in { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__text { max-width: 560px; animation: rise 1.2s .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__title { font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .9; margin: 0 0 .25em; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #d0d8e3; max-width: 46ch; margin-bottom: 1.8em; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(201, 209, 220, .45); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ice); box-shadow: 0 0 8px var(--ice); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
	.hero { align-items: flex-end; }
	.hero__scene { background-position: 30% center; }
	.hero__content { flex-direction: column; align-items: flex-start; text-align: left; padding-bottom: 96px; gap: 10px; }
	.hero__emblem { width: 120px; }
	.hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, .82) 38%, rgba(5, 7, 13, .1) 70%), linear-gradient(180deg, rgba(5, 7, 13, .6), transparent 22%); }
	.hero__scroll { display: none; }
}

/* ---------- Sektioner ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); margin: 0; }
.section__more { text-align: center; margin: 48px 0 0; }
.section--videos { background: radial-gradient(ellipse 60% 50% at 15% 0%, rgba(30, 90, 170, .16), transparent 70%); }
.section--gallery { background: linear-gradient(180deg, transparent, rgba(12, 18, 30, .6) 30%, rgba(12, 18, 30, .6) 70%, transparent); }
.section--about { background: radial-gradient(ellipse 55% 45% at 85% 20%, rgba(255, 122, 31, .09), transparent 70%); }

.admin-hint { margin: 28px 0 0; padding: 14px 18px; border: 1px dashed var(--ice); border-radius: var(--radius-sm); color: var(--ice-2); font-size: .9rem; background: rgba(59, 169, 255, .06); }

/* Filter-chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: all .2s; }
.chip:hover { color: #fff; border-color: var(--ice); }
.chip.is-active { color: #00101f; background: var(--ice); border-color: var(--ice); box-shadow: 0 0 20px -4px var(--ice-glow); }

/* ---------- Kort ---------- */
.grid--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.card {
	position: relative; display: flex; flex-direction: column;
	background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(59, 169, 255, .5); box-shadow: 0 24px 50px -24px rgba(59, 169, 255, .55), 0 0 0 1px rgba(59, 169, 255, .15); }
.card.is-hidden { display: none; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: saturate(1.05) brightness(.9); }
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1.15) brightness(1); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 7, 13, .65), transparent 55%); pointer-events: none; }
.card__play {
	position: absolute; left: 50%; top: 50%; z-index: 1; width: 68px; height: 68px; margin: -34px 0 0 -34px;
	display: grid; place-items: center; border-radius: 50%; color: #fff;
	background: rgba(10, 30, 60, .55); border: 2px solid rgba(124, 200, 255, .85);
	box-shadow: 0 0 30px rgba(59, 169, 255, .55), inset 0 0 20px rgba(59, 169, 255, .35);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	transition: transform .3s var(--ease), background .3s;
}
.card__play svg { width: 28px; height: 28px; margin-left: 4px; }
.card__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(124, 200, 255, .5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.card:hover .card__play { transform: scale(1.1); background: var(--ice); }
.card__body { padding: 18px 20px 22px; }
.card__meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.tag { color: var(--ember-2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.card__title { font-size: 1.22rem; margin: 0; letter-spacing: .005em; }
.card__title a { color: #fff; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* hele kortet klikbart */
.card__media { z-index: 2; }

/* ---------- Galleri (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: 1px solid var(--line); background: #000; }
.masonry__item img { width: 100%; transition: transform .7s var(--ease), filter .4s; filter: brightness(.88); }
.masonry__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(124, 200, 255, 0); transition: box-shadow .3s; }
.masonry__item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.masonry__item:hover::after { box-shadow: inset 0 0 0 2px rgba(124, 200, 255, .7), inset 0 0 40px rgba(59, 169, 255, .25); }

/* ---------- Om ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__art { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 177, 92, .25); box-shadow: 0 30px 80px -30px var(--ember-glow); }
.about__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% center; }
.about__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(5, 7, 13, .45)); }

.about__text .section__title { margin-bottom: .45em; }
.hero .eyebrow { text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.about__text p { color: var(--text-2); font-size: 1.06rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); margin-top: clamp(56px, 8vw, 100px); }
.pillar { text-align: center; padding: 34px 26px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 24, 39, .7), rgba(10, 15, 25, .4)); transition: border-color .3s, transform .35s var(--ease); }
.pillar:hover { border-color: rgba(59, 169, 255, .45); transform: translateY(-4px); }
.pillar img { width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(124, 200, 255, .5), 0 0 34px rgba(59, 169, 255, .4); }
.pillar h3 { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.pillar p { color: var(--text-2); margin: 0; font-size: .96rem; }
@media (max-width: 900px) {
	.about { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: 1fr; }
	.pillar { display: grid; grid-template-columns: 84px 1fr; gap: 6px 18px; text-align: left; align-items: center; padding: 20px; }
	.pillar img { width: 84px; height: 84px; margin: 0; grid-row: span 2; }
	.pillar h3 { margin: 0; align-self: end; }
	.pillar p { align-self: start; }
}

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cta-img) center / cover no-repeat; transform: scale(1.05); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 7, 13, .45), rgba(5, 7, 13, .88) 75%), linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(2.4rem, 7vw, 5.2rem); margin: 0 0 .5em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 80px 0 40px; background: #03050a; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__glow { position: absolute; left: 50%; top: -1px; width: min(700px, 80vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--ice), transparent); box-shadow: 0 0 30px 4px var(--ice-glow); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.site-footer__brand img { width: 140px; margin: 0 auto 14px; filter: drop-shadow(0 0 24px rgba(59, 169, 255, .3)); }
.site-footer__brand .eyebrow { margin: 0; }
.site-footer__brand .eyebrow::before { display: none; }
.site-footer__nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.site-footer__nav a { color: var(--text-2); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.site-footer__copy { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Under-sider ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
	min-height: 44vh; display: flex; align-items: flex-end;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; filter: saturate(1.1); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, .72) 45%, rgba(5, 7, 13, .5) 100%); }
.page-hero--post { min-height: 62vh; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 4.6rem); margin: 0; overflow-wrap: anywhere; }
.page-hero__desc { color: var(--text-2); margin-top: 16px; max-width: 60ch; }

.entry__content { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 40px; }
.entry__footer { padding-bottom: 80px; }

/* Indholdstypografi */
.prose { font-size: 1.08rem; line-height: 1.78; color: #d3dae4; }
.prose > * { margin-top: 0; margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 1.8em; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(124, 200, 255, .45); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote, .prose .wp-block-quote { margin-inline: 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--ice); color: #fff; font-size: 1.2rem; }
.prose img, .prose video, .prose iframe { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { color: var(--muted); font-size: .86rem; text-align: center; margin-top: .6em; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 3em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--ice); }
.prose code { background: var(--bg-3); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose .wp-block-embed, .prose .wp-block-video { margin-bottom: 2em; }
.prose .wp-block-embed__wrapper, .prose .wp-block-video video { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(59, 169, 255, .5), 0 0 0 1px var(--line); }
.prose .wp-block-video video { width: 100%; display: block; background: #000; }
.prose .wp-block-gallery { gap: 12px; }
.prose .wp-block-gallery img { border-radius: var(--radius-sm); }
.prose .alignwide { width: min(var(--container) - 2 * var(--gutter), 100vw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
.prose .alignfull img, .prose .alignfull video { border-radius: 0; }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose .wp-block-button__link { border-radius: 999px; background: linear-gradient(135deg, #1677e8, #2fa4ff); color: #fff; text-decoration: none; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tags a { padding: .4em 1em; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8rem; color: var(--text-2); }
.tags a:hover { border-color: var(--ice); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav__link { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: #fff; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.post-nav__link span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ice-2); margin-bottom: 4px; }
.post-nav__link:hover { border-color: var(--ice); box-shadow: 0 0 24px -8px var(--ice-glow); color: #fff; }
.post-nav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: 1; } }

/* Sideskift */
.pagination { margin-top: 56px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.page-numbers svg { width: 18px; height: 18px; }
.page-numbers.current, a.page-numbers:hover { border-color: var(--ice); color: #fff; box-shadow: 0 0 20px -6px var(--ice-glow); }
.page-numbers.dots { border: 0; }

/* Formularer */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea {
	width: 100%; padding: 12px 14px; color: var(--text); font: inherit;
	background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(59, 169, 255, .2); }
.search-form { display: flex; gap: 8px; max-width: 460px; margin-inline: auto; }
.search-form label { flex: 1; }
.search-submit, .comment-form input[type="submit"] { padding: 12px 20px; border-radius: 999px; border: 0; color: #fff; background: linear-gradient(135deg, #1677e8, #2fa4ff); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.empty { text-align: center; padding: 40px 0; color: var(--text-2); }

/* Kommentarer */
.comments { margin-top: 56px; }
.comments__title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; font-weight: 900; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.comment-meta a { color: var(--muted); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .85rem; color: var(--text-2); margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* 404 */
.notfound { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; text-align: center; padding: var(--header-h) 0 40px; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; }
.notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 7, 13, .55), rgba(5, 7, 13, .92) 70%); }
.notfound .eyebrow { justify-content: center; }
.notfound__code { font-size: clamp(6rem, 22vw, 14rem); line-height: .9; margin: 0 0 .1em; }
.notfound p { color: var(--text-2); font-size: 1.1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
	background: rgba(2, 4, 8, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	animation: fade .25s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__stage { width: min(92vw, 1400px); display: grid; place-items: center; }
.lightbox__stage img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); animation: zoom .3s var(--ease) both; }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }
.lightbox__frame { width: min(92vw, 84vh * 16 / 9, 1400px); aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 90px -20px rgba(59, 169, 255, .45); }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10, 15, 25, .7); color: #fff; transition: all .2s; z-index: 2; }
.lightbox__btn:hover { border-color: var(--ice); box-shadow: 0 0 20px -4px var(--ice-glow); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; color: var(--text-2); font-size: .9rem; letter-spacing: .06em; padding: 0 80px; }
@media (max-width: 700px) {
	.lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; }
	.lightbox__caption { bottom: 70px; padding: 0 16px; }
}

/* ---------- Scroll-animationer (kun når JS kører) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hero__sparks { display: none; }
}

/* Editor-farver */
.has-night-color { color: #05070d; } .has-night-background-color { background-color: #05070d; }
.has-steel-color { color: var(--steel); } .has-steel-background-color { background-color: var(--steel); }
.has-ice-color { color: var(--ice); } .has-ice-background-color { background-color: var(--ice); }
.has-ember-color { color: var(--ember); } .has-ember-background-color { background-color: var(--ember); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

/* Mobilmenu: header må ikke danne containing block for den faste overlay */
.nav-open .site-header, .nav-open .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }

/* ---------- Video-previews på kort ---------- */
.card__media img { will-change: transform; }
.card:hover .card__media img, .card.is-previewing .card__media img { animation: card-kb 9s ease-out forwards; filter: saturate(1.2) brightness(1); }
@keyframes card-kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }
.card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; z-index: 0; background: transparent; }
.card__preview--frame { width: 140%; height: 140%; left: -20%; top: -20%; } /* skjul YouTube-kanter */
.card__preview.is-ready { opacity: 1; }
.card__hud { position: absolute; inset: 10px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
.card__hud i { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(124, 200, 255, .8); filter: drop-shadow(0 0 3px var(--ice)); }
.card__hud i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.card__hud i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.card__hud i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.card__hud i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.card__hud b { position: absolute; top: 2px; left: 22px; font: 700 .62rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; color: #fff; text-shadow: 0 0 6px var(--ice), 0 1px 2px #000; display: flex; align-items: center; gap: 6px; }
.card__hud b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 6px #ff4a4a; animation: blink 1.2s steps(2, start) infinite; }
.card__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(124, 200, 255, .16) 70%, rgba(170, 220, 255, .5) 98%, transparent); }
.card:hover .card__hud, .card.is-previewing .card__hud { opacity: 1; }
.card:hover .card__scan, .card.is-previewing .card__scan { opacity: 1; animation: scan 2.6s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(440%); } }
.card.has-preview-ready .card__scan { animation: none; opacity: 0; }
.card.has-preview-ready .card__play { opacity: .3; transform: scale(.8); }
.card.has-preview-ready:hover .card__play { opacity: 1; transform: scale(1); }
.card__play { transition: transform .3s var(--ease), background .3s, opacity .4s; }
@media (prefers-reduced-motion: reduce) { .card__preview { display: none; } }

/* ---------- Hangaren: samlekort ---------- */
.section--hangar { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30, 90, 170, .14), transparent 70%); }
.crafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 3vw, 34px); }
.chips--hangar { margin-bottom: 32px; }
.craft {
	--accent: #c9d1dc; --accent-2: #6f7b8c; --glow: rgba(201, 209, 220, .25);
	--rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
	position: relative; display: block; color: var(--text); border-radius: 18px; padding: 2px;
	background: linear-gradient(150deg, var(--accent), var(--accent-2) 35%, #111827 55%, var(--accent-2) 80%, var(--accent));
	box-shadow: 0 20px 50px -24px var(--glow), 0 0 0 1px rgba(0, 0, 0, .6);
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .5s var(--ease), box-shadow .3s;
	transform-style: preserve-3d;
	max-width: 340px; width: 100%; justify-self: center;
}
.js .craft.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .3s; }
.craft.is-tilting { transition: transform .08s linear, box-shadow .3s; }
.craft:hover { color: var(--text); box-shadow: 0 30px 70px -24px var(--glow), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 40px -10px var(--glow); }
.craft--rare { --accent: #7cc8ff; --accent-2: #1d6fd1; --glow: rgba(59, 169, 255, .55); }
.craft--epic { --accent: #ffb15c; --accent-2: #d2530a; --glow: rgba(255, 122, 31, .5); }
.craft--legendary { --accent: #ffe08a; --accent-2: #c58b1b; --glow: rgba(255, 210, 110, .55); }
.craft--locked { --accent: #3a4456; --accent-2: #1a2130; --glow: rgba(59, 169, 255, .12); }
.craft__inner { position: relative; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, #142036, #0a0f19 60%); padding: 14px; height: 100%; display: flex; flex-direction: column; }
.craft__top { display: flex; align-items: center; gap: 10px; font: 700 .7rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.craft__num { color: var(--accent); }
.craft__rarity { color: var(--text-2); }
.craft__icon { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.craft__icon svg { width: 18px; height: 18px; }
.craft__art { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%), #05070d; border: 1px solid rgba(255, 255, 255, .06); }
.craft__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.craft__art--emblem img { object-fit: contain; padding: 10px; filter: drop-shadow(0 0 18px var(--glow)); }
.craft:hover .craft__art img { transform: scale(1.06); }
.craft--locked .craft__art img { filter: grayscale(1) brightness(.25) blur(1.5px); }
.craft__lock { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(201, 209, 220, .8); }
.craft__lock svg { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(59, 169, 255, .6)); animation: float 4s ease-in-out infinite; }
.craft__info { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.craft__name { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 2px; }
.craft__tagline { color: var(--muted); font-size: .86rem; margin: 0 0 14px; }
.craft__stats { margin: auto 0 0; display: grid; gap: 8px; }
.craft__stats div { display: grid; grid-template-columns: 82px 1fr 18px; align-items: center; gap: 10px; }
.craft__stats dt { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.craft__stats dd { margin: 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); position: relative; display: contents; }
.craft__stats dd span { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.craft__stats dd span::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 10%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px var(--glow); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.craft.is-visible dd span::after, .no-js .craft dd span::after, .craft-hero .craft dd span::after { transform: scaleX(1); }
.craft__stats dd b { font: 700 .74rem/1 ui-monospace, Menlo, Consolas, monospace; color: #fff; text-align: right; }
.craft--locked .craft__stats dd span::after { width: 100%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 6px, transparent 6px 10px); box-shadow: none; }
.craft__holo { position: absolute; inset: 2px; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: color-dodge;
	background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 40%); }
.craft--rare .craft__holo, .craft--epic .craft__holo { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 40%), linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 70%); background-size: 100% 100%, 250% 250%; background-position: 0 0, var(--mx) var(--my); }
.craft--legendary .craft__holo { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .4), transparent 40%), linear-gradient(115deg, #ff6b6b33, #ffd93d33, #6bff9533, #4dabff33, #c06bff33, #ff6b6b33); background-size: 100% 100%, 300% 300%; background-position: 0 0, var(--mx) var(--my); }
.craft:hover .craft__holo { opacity: 1; }
.craft--legendary .craft__inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 230, 160, .12) 50%, transparent 60%); background-size: 250% 100%; animation: shine 4.5s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* Enkelt maskine */
.page-hero--craft { min-height: auto; padding-bottom: clamp(48px, 6vw, 80px); }
.craft-hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.craft-hero__card .craft { max-width: 340px; }
.craft-hero__text .eyebrow a { color: inherit; }
.specs { margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.specs dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
@media (max-width: 760px) { .craft-hero { grid-template-columns: 1fr; } .craft-hero__card { max-width: 300px; margin: 0 auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .craft { transform: none !important; } }
.js .craft.reveal.is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.craft.is-hidden { display: none; }
@media (max-width: 640px) {
	#hangar .crafts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 18px; scrollbar-width: none; }
	#hangar .crafts::-webkit-scrollbar { display: none; }
	#hangar .craft { scroll-snap-align: center; }
	.crafts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
}

/* Hero med video: videoen tones ind over plakaten, når den spiller */
.hero.has-video .hero__scene { animation: none; transform: scale(1.02); }
.hero.has-video .hero__shade::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26%; background: linear-gradient(180deg, rgba(5, 7, 13, .55), transparent); }
