/* ==========================================================================
   NilsenData — main stylesheet
   Red on graphite · breathing, live interface · Bootstrap 5.3.2 base
   ========================================================================== */

/* ---------- 0. Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff") format("woff"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root,
[data-bs-theme="dark"] {
	--nd-red: #ff2d3f;
	--nd-red-rgb: 255, 45, 63;
	--nd-red-deep: #b3121f;
	--nd-red-soft: rgba(var(--nd-red-rgb), .14);

	--nd-bg: #111215;
	--nd-bg-2: #16181c;
	--nd-surface: #1b1e23;
	--nd-surface-2: #23272e;
	--nd-steel: #2a2e35;
	--nd-line: rgba(255, 255, 255, .08);
	--nd-line-strong: rgba(255, 255, 255, .16);

	--nd-text: #eceef1;
	--nd-muted: #9aa1ab;
	--nd-faint: #6b727c;

	--nd-font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nd-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nd-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--nd-radius: 18px;
	--nd-radius-sm: 12px;
	--nd-ease: cubic-bezier(.2, .7, .1, 1);
	--nd-header-h: 76px;

	/* Bootstrap bridges */
	--bs-body-bg: var(--nd-bg);
	--bs-body-color: var(--nd-text);
	--bs-body-font-family: var(--nd-font-body);
	--bs-body-font-size: 1rem;
	--bs-body-line-height: 1.65;
	--bs-emphasis-color: #fff;
	--bs-secondary-color: var(--nd-muted);
	--bs-border-color: var(--nd-line);
	--bs-link-color: var(--nd-text);
	--bs-link-color-rgb: 236, 238, 241;
	--bs-link-hover-color: var(--nd-red);
	--bs-link-hover-color-rgb: var(--nd-red-rgb);
	--bs-primary: var(--nd-red);
	--bs-primary-rgb: var(--nd-red-rgb);
	--bs-tertiary-bg: var(--nd-surface);
	--bs-secondary-bg: var(--nd-surface-2);
	--bs-focus-ring-color: rgba(var(--nd-red-rgb), .35);
	--bs-border-radius: var(--nd-radius-sm);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nd-header-h) + 16px); overflow-x: hidden; overflow-x: clip; }

body {
	background: var(--nd-bg);
	color: var(--nd-text);
	font-family: var(--nd-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nd-font-display);
	color: #fff;
	letter-spacing: -.02em;
	font-weight: 600;
}

a { color: var(--nd-text); text-decoration: none; transition: color .25s var(--nd-ease); }
a:hover { color: var(--nd-red); }

::selection { background: var(--nd-red); color: #fff; }

:focus-visible { outline: 2px solid var(--nd-red); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.nd-red { color: var(--nd-red); }
.nd-muted { color: var(--nd-muted); }

.nd-skip {
	position: fixed; top: 12px; left: 12px; z-index: 2000;
	background: var(--nd-red); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}

.nd-main { position: relative; z-index: 1; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--nd-steel) var(--nd-bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nd-bg); }
::-webkit-scrollbar-thumb { background: var(--nd-steel); border-radius: 10px; border: 2px solid var(--nd-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--nd-red-deep); }

/* ---------- 3. Ambient layers (grain, cursor glow, progress) ---------- */
.nd-grain {
	position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nd-cursor-glow {
	position: fixed; z-index: 0; top: 0; left: 0; width: 520px; height: 520px;
	margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(var(--nd-red-rgb), .10) 0%, rgba(var(--nd-red-rgb), 0) 65%);
	transform: translate3d(-999px, -999px, 0);
	transition: opacity .4s;
	will-change: transform;
}

.nd-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1100; pointer-events: none; }
.nd-progress span {
	display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
	background: linear-gradient(90deg, var(--nd-red-deep), var(--nd-red));
	box-shadow: 0 0 12px rgba(var(--nd-red-rgb), .8);
}

/* Breathing light field */
.nd-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.nd-field span {
	position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
	background: radial-gradient(circle at 50% 50%, rgba(var(--nd-red-rgb), .9), rgba(var(--nd-red-rgb), 0) 70%);
	animation: nd-breathe 9s ease-in-out infinite, nd-drift 22s ease-in-out infinite alternate;
}
.nd-field span:nth-child(1) { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; top: -18%; right: -10%; }
.nd-field span:nth-child(2) {
	width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; bottom: -20%; left: -8%;
	background: radial-gradient(circle, rgba(179, 18, 31, .9), rgba(179, 18, 31, 0) 70%);
	animation-delay: -3s, -8s; animation-duration: 11s, 26s;
}
.nd-field span:nth-child(3) {
	width: 22vw; height: 22vw; max-width: 340px; max-height: 340px; top: 40%; left: 42%;
	background: radial-gradient(circle, rgba(160, 166, 176, .35), rgba(160, 166, 176, 0) 70%);
	animation-delay: -5s, -12s; animation-duration: 13s, 30s;
}
.nd-field--soft span { opacity: .28; }

@keyframes nd-breathe {
	0%, 100% { transform: scale(1); opacity: .42; }
	50% { transform: scale(1.14); opacity: .68; }
}
@keyframes nd-drift {
	0% { translate: 0 0; }
	50% { translate: 4vw 3vh; }
	100% { translate: -3vw -2vh; }
}

.nd-grid-lines {
	position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background-image:
		linear-gradient(var(--nd-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--nd-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
	animation: nd-grid 30s linear infinite;
}
@keyframes nd-grid { to { background-position: 64px 64px, 64px 64px; } }

.nd-pulse {
	position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--nd-red); flex: none;
}
.nd-pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
	animation: nd-ping 2.4s var(--nd-ease) infinite;
}
@keyframes nd-ping {
	0% { transform: scale(1); opacity: .7; }
	80%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- 4. Header ---------- */
.nd-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
	transition: background .4s var(--nd-ease), border-color .4s, transform .45s var(--nd-ease), backdrop-filter .4s;
	border-bottom: 1px solid transparent;
}
.admin-bar .nd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nd-header { top: 46px; } }

.nd-header .navbar { min-height: var(--nd-header-h); padding: .5rem 0; }
.nd-header.is-scrolled {
	background: rgba(17, 18, 21, .72);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	border-bottom-color: var(--nd-line);
}
.nd-header.is-hidden { transform: translateY(-100%); }

.nd-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; padding: 0; margin: 0; }
.nd-brand:hover { color: #fff; }
.nd-brand-mark {
	position: relative; width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 24px -6px rgba(var(--nd-red-rgb), .7);
	animation: nd-glow 5s ease-in-out infinite;
}
.nd-brand-mark .nd-logo { display: block; }
.nd-logo-n { stroke-dasharray: 120; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--nd-ease); }
.nd-brand:hover .nd-logo-n { animation: nd-logo-trace 1.2s var(--nd-ease); }
@keyframes nd-logo-trace { 0% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 0; } }
@keyframes nd-glow {
	0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 24px -6px rgba(var(--nd-red-rgb), .55); }
	50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 34px -4px rgba(var(--nd-red-rgb), .95); }
}
.nd-brand-text { font-family: var(--nd-font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; }
.nd-brand-text b { color: var(--nd-red); font-weight: 700; }
.custom-logo-link img { max-height: 44px; width: auto; }

.nd-nav .nav-link {
	position: relative; color: var(--nd-muted); font-weight: 500; font-size: .95rem;
	padding: .55rem .9rem !important; border-radius: 10px;
}
.nd-nav .nav-link:hover, .nd-nav .nav-link.active, .nd-nav .show > .nav-link { color: #fff; }
.nd-nav .nav-link::after { border: 0; }
.nd-nav .nav-link > span { position: relative; }
.nd-nav .nav-link > span::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
	background: var(--nd-red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--nd-ease);
}
.nd-nav .nav-link:hover > span::after, .nd-nav .nav-link.active > span::after { transform: scaleX(1); transform-origin: left; }
.nd-nav .dropdown-toggle > span { padding-right: 1rem; }
.nd-nav .dropdown-toggle > span::before {
	content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}

.nd-dropdown {
	--bs-dropdown-bg: rgba(27, 30, 35, .96);
	--bs-dropdown-border-color: var(--nd-line);
	--bs-dropdown-link-color: var(--nd-muted);
	--bs-dropdown-link-hover-color: #fff;
	--bs-dropdown-link-hover-bg: var(--nd-red-soft);
	--bs-dropdown-link-active-bg: var(--nd-red);
	padding: .5rem; border-radius: 14px; backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
	animation: nd-pop .25s var(--nd-ease);
}
.nd-dropdown .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .93rem; }
@keyframes nd-pop { from { opacity: 0; transform: translateY(6px); } }

.nd-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent;
	background: transparent; color: var(--nd-text); transition: all .25s var(--nd-ease);
}
.nd-icon-btn:hover { background: var(--nd-surface-2); border-color: var(--nd-line); color: var(--nd-red); }

.nd-cart-count {
	position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--nd-red); color: #fff; font-size: .68rem; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 2px var(--nd-bg);
}
.nd-cart-count.is-empty { display: none; }
.nd-cart-count.is-bump { animation: nd-bump .6s var(--nd-ease); }
@keyframes nd-bump { 30% { transform: scale(1.5); } }

.nd-burger { border: 0; width: 42px; height: 42px; padding: 0; position: relative; box-shadow: none !important; }
.nd-burger span {
	position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
	transition: transform .35s var(--nd-ease), top .35s var(--nd-ease);
}
.nd-burger span:first-child { top: 16px; }
.nd-burger span:last-child { top: 24px; right: 17px; }
.nd-burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nd-burger[aria-expanded="true"] span:last-child { top: 20px; right: 11px; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
	.nd-header .navbar-collapse {
		margin-top: .75rem; padding: .75rem; border-radius: 16px;
		background: rgba(27, 30, 35, .97); border: 1px solid var(--nd-line);
	}
	.nd-nav .nav-link { padding: .8rem 1rem !important; font-size: 1.05rem; }
	.nd-header:not(.is-scrolled) .navbar-collapse.show { box-shadow: 0 20px 50px -20px #000; }
}

/* ---------- 5. Typography helpers ---------- */
.nd-eyebrow {
	display: inline-flex; align-items: center; gap: .65rem;
	font-family: var(--nd-font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--nd-red); margin-bottom: 1rem;
}
.nd-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.nd-eyebrow.nd-live::before { display: none; }
.nd-eyebrow.nd-live {
	color: var(--nd-text); padding: .45rem .9rem .45rem .75rem; border-radius: 99px;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--nd-line); letter-spacing: .08em;
}
.nd-eyebrow.justify-content-center::before { display: none; }

.nd-h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; margin-bottom: 1.1rem; }
.nd-h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.nd-section-head { margin-bottom: 3rem; }

.nd-prose { color: var(--nd-muted); font-size: 1.08rem; }
.nd-prose p { margin-bottom: 1.15rem; }

.nd-arrow-link {
	display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: #fff; font-size: .95rem;
}
.nd-arrow-link .nd-icon { transition: transform .35s var(--nd-ease); color: var(--nd-red); }
.nd-arrow-link:hover .nd-icon { transform: translateX(5px); }

.nd-link-btn {
	background: none; border: 0; padding: 0; color: var(--nd-muted); font: inherit; cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--nd-line-strong);
}
.nd-link-btn:hover { color: var(--nd-red); }

/* ---------- 6. Buttons ---------- */
.nd-btn {
	--nd-btn-pad: .85rem 1.55rem;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	padding: var(--nd-btn-pad); border-radius: 12px; font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
	border: 1px solid transparent; overflow: hidden; isolation: isolate;
	transition: transform .35s var(--nd-ease), box-shadow .35s var(--nd-ease), background .3s, color .3s, border-color .3s;
}
.nd-btn-sm { --nd-btn-pad: .55rem 1.05rem; font-size: .88rem; border-radius: 10px; }
.nd-btn-lg { --nd-btn-pad: 1.1rem 2rem; font-size: 1.1rem; border-radius: 14px; }

.nd-btn-primary, .btn.nd-btn-primary {
	background: linear-gradient(135deg, var(--nd-red), var(--nd-red-deep));
	color: #fff; border-color: rgba(255, 255, 255, .08);
	box-shadow: 0 10px 30px -10px rgba(var(--nd-red-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .2);
	animation: nd-btn-breathe 4.5s ease-in-out infinite;
}
.nd-btn-primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .8s var(--nd-ease);
}
.nd-btn-primary:hover, .nd-btn-primary:focus-visible { color: #fff; box-shadow: 0 16px 40px -10px rgba(var(--nd-red-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.nd-btn-primary:hover::before { transform: translateX(120%); }
.nd-btn-primary .nd-icon { transition: transform .35s var(--nd-ease); }
.nd-btn-primary:hover .nd-icon-arrow { transform: translateX(4px); }

@keyframes nd-btn-breathe {
	0%, 100% { box-shadow: 0 10px 30px -10px rgba(var(--nd-red-rgb), .65), inset 0 1px 0 rgba(255, 255, 255, .2); }
	50% { box-shadow: 0 14px 44px -8px rgba(var(--nd-red-rgb), .95), inset 0 1px 0 rgba(255, 255, 255, .2); }
}

.nd-btn-ghost, .btn.nd-btn-ghost {
	background: rgba(255, 255, 255, .03); color: #fff; border-color: var(--nd-line-strong);
}
.nd-btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(var(--nd-red-rgb), .6); color: #fff; }

.nd-magnetic { will-change: transform; }

/* ---------- 7. Hero ---------- */
.nd-hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: calc(var(--nd-header-h) + 4rem) 0 6rem; overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 70% 0%, rgba(42, 46, 53, .9), transparent 70%),
		linear-gradient(180deg, var(--nd-bg-2), var(--nd-bg));
}
.nd-hero > .container { z-index: 2; }

.nd-hero-title {
	font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1; font-weight: 700; letter-spacing: -.045em;
	margin: .5rem 0 1.6rem;
}
.nd-rotator { display: block; color: var(--nd-red); position: relative; white-space: nowrap; }
.nd-rotator-word {
	background: linear-gradient(100deg, #fff 0%, var(--nd-red) 35%, var(--nd-red-deep) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	padding-right: .04em;
}
.nd-caret {
	display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -.06em;
	background: var(--nd-red); animation: nd-blink 1s steps(2, start) infinite;
}
@keyframes nd-blink { to { visibility: hidden; } }

.nd-hero-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--nd-muted); max-width: 36rem; }

/* Live console card */
.nd-console {
	position: relative; border-radius: 20px; overflow: hidden;
	background: linear-gradient(180deg, rgba(35, 39, 46, .85), rgba(22, 24, 28, .9));
	border: 1px solid var(--nd-line-strong);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 60px -20px rgba(var(--nd-red-rgb), .35);
	backdrop-filter: blur(10px);
	transform-style: preserve-3d;
	transition: transform .5s var(--nd-ease);
}
.nd-console::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
	background: conic-gradient(from var(--nd-angle, 0deg), transparent 0 70%, rgba(var(--nd-red-rgb), .9) 85%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: nd-orbit 6s linear infinite;
}
@property --nd-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes nd-orbit { to { --nd-angle: 360deg; } }

.nd-console-bar {
	display: flex; align-items: center; gap: 7px; padding: .85rem 1.1rem;
	border-bottom: 1px solid var(--nd-line); background: rgba(0, 0, 0, .2);
}
.nd-console-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--nd-steel); }
.nd-console-bar span:first-child { background: var(--nd-red); }
.nd-console-bar em { margin-left: auto; font-style: normal; font-family: var(--nd-font-mono); font-size: .74rem; color: var(--nd-faint); }
.nd-console-body { padding: 1.3rem 1.3rem 1.4rem; font-family: var(--nd-font-mono); font-size: .86rem; }
.nd-console-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: .55rem 0; border-bottom: 1px dashed var(--nd-line); color: var(--nd-muted);
}
.nd-console-row b { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.nd-ok { color: #fff; }
.nd-spark-wrap { margin: 1rem 0 .9rem; }
.nd-spark { display: block; width: 100%; height: 110px; }
.nd-spark-caption { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .74rem; color: var(--nd-faint); }
.nd-spark-caption b { color: #fff; font-weight: 500; }
.nd-console-code {
	display: block; color: var(--nd-muted); font-size: .82rem; line-height: 1.7;
	padding: .8rem 1rem; background: rgba(0, 0, 0, .25); border-radius: 10px; border: 1px solid var(--nd-line);
}
.nd-console-code .c-k { color: var(--nd-red); }
.nd-console-code .c-f { color: #fff; }
.nd-console-code .c-s { color: #c9ced6; }

.nd-scroll-cue {
	position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
	border: 1.5px solid var(--nd-line-strong); border-radius: 14px;
}
.nd-scroll-cue span {
	position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
	background: var(--nd-red); border-radius: 2px; animation: nd-scroll 2s var(--nd-ease) infinite;
}
@keyframes nd-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- 8. Marquee ---------- */
.nd-marquee {
	position: relative; z-index: 2; overflow: hidden; padding: 1.35rem 0;
	border-top: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line);
	background: var(--nd-bg-2);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.nd-marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: nd-marquee 40s linear infinite; }
.nd-marquee:hover .nd-marquee-track { animation-play-state: paused; }
.nd-marquee span { font-family: var(--nd-font-display); font-size: 1.35rem; font-weight: 500; color: var(--nd-faint); white-space: nowrap; transition: color .3s; }
.nd-marquee span:hover { color: #fff; }
.nd-marquee i { width: 7px; height: 7px; background: var(--nd-red); transform: rotate(45deg); flex: none; }
@keyframes nd-marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Sections & cards ---------- */
.nd-section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; z-index: 1; }
.nd-section-alt { background: linear-gradient(180deg, var(--nd-bg-2), var(--nd-bg)); border-top: 1px solid var(--nd-line); }

.nd-card {
	position: relative; border-radius: var(--nd-radius); padding: 2rem;
	background: linear-gradient(180deg, rgba(35, 39, 46, .55), rgba(27, 30, 35, .55));
	border: 1px solid var(--nd-line);
	transition: transform .5s var(--nd-ease), border-color .4s, box-shadow .5s var(--nd-ease);
}

/* Cursor spotlight */
.nd-spotlight { overflow: hidden; isolation: isolate; }
.nd-spotlight::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--nd-red-rgb), .13), transparent 45%);
}
.nd-spotlight::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--nd-red-rgb), .9), transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.nd-spotlight:hover::before, .nd-spotlight:hover::after { opacity: 1; }
.nd-spotlight:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

.nd-service { padding: 2.2rem; }
.nd-service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.4rem; }
.nd-service-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px;
	color: var(--nd-red); background: var(--nd-red-soft); border: 1px solid rgba(var(--nd-red-rgb), .25);
	transition: transform .5s var(--nd-ease), background .4s, color .4s;
}
.nd-service:hover .nd-service-icon { transform: rotate(-8deg) scale(1.06); background: var(--nd-red); color: #fff; }
.nd-service-num { font-family: var(--nd-font-mono); font-size: .8rem; color: var(--nd-faint); }
.nd-service h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.nd-service p { color: var(--nd-muted); margin: 0; }

/* Stats */
.nd-stats { position: relative; z-index: 1; padding: 3.5rem 0; border-top: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line); background: var(--nd-bg-2); }
.nd-stat { padding: .5rem 0 .5rem 1.4rem; border-left: 2px solid var(--nd-steel); transition: border-color .4s; }
.nd-stat:hover { border-left-color: var(--nd-red); }
.nd-stat-num { font-family: var(--nd-font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nd-stat-num em { font-style: normal; color: var(--nd-red); }
.nd-stat-label { color: var(--nd-muted); margin-top: .6rem; font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.nd-stat-num { display: inline-block; position: relative; }
.nd-live-tag {
	display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .55rem .15rem .45rem; border-radius: 99px;
	font-family: var(--nd-font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
	background: var(--nd-red-soft); border: 1px solid rgba(var(--nd-red-rgb), .3);
}
.nd-live-tag .nd-pulse { width: 6px; height: 6px; }

/* Value changed → flash + floating "+1" */
.nd-stat.is-flash { animation: nd-stat-flash 1.6s var(--nd-ease); }
.nd-stat.is-flash .nd-stat-num { animation: nd-num-flash 1.6s var(--nd-ease); }
.nd-console-row.is-flash b { animation: nd-num-flash 1.6s var(--nd-ease); }
@keyframes nd-stat-flash { 0% { border-left-color: var(--nd-red); background: linear-gradient(90deg, rgba(var(--nd-red-rgb), .18), transparent 70%); } 100% { background: transparent; } }
@keyframes nd-num-flash { 0%, 30% { color: var(--nd-red); text-shadow: 0 0 28px rgba(var(--nd-red-rgb), .9); } 100% { color: #fff; text-shadow: none; } }
.nd-plus {
	position: absolute; left: 100%; top: -.2em; margin-left: .35em; font-family: var(--nd-font-mono); font-size: .9rem; font-weight: 600;
	color: var(--nd-red); white-space: nowrap; pointer-events: none; animation: nd-plus 1.7s var(--nd-ease) forwards;
}
@keyframes nd-plus { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

/* New-order notice */
.nd-toast {
	position: fixed; right: 22px; bottom: 84px; z-index: 1065; display: flex; align-items: center; gap: .8rem;
	padding: .85rem 1.2rem .85rem .9rem; border-radius: 16px; color: #fff; font-weight: 600; font-size: .92rem;
	background: rgba(27, 30, 35, .96); border: 1px solid rgba(var(--nd-red-rgb), .45); backdrop-filter: blur(12px);
	box-shadow: 0 24px 60px -20px #000, 0 0 40px -18px rgba(var(--nd-red-rgb), .9);
	opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transition: opacity .4s var(--nd-ease), transform .4s var(--nd-ease);
}
.nd-toast.is-visible { opacity: 1; transform: none; }
.nd-toast-icon { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--nd-red-soft); }
@media (max-width: 575.98px) { .nd-toast { left: 12px; right: 12px; bottom: 76px; } }

/* About — portrait */
.nd-portrait { position: relative; margin: 0; max-width: 460px; margin-inline: auto; transition: transform .5s var(--nd-ease); }
.nd-portrait-frame {
	position: relative; z-index: 1; aspect-ratio: 4/5; overflow: hidden; border-radius: 24px;
	border: 1px solid var(--nd-line-strong); background: #1a1716;
	box-shadow: 0 40px 90px -35px rgba(0, 0, 0, .9), 0 0 70px -30px rgba(var(--nd-red-rgb), .55);
}
.nd-portrait-frame picture { display: contents; }
.nd-portrait-img {
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block;
	transform-origin: 50% 30%; animation: nd-portrait-breathe 12s ease-in-out infinite alternate;
	filter: contrast(1.04) saturate(1.05);
}
@keyframes nd-portrait-breathe { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1%); } }
.nd-portrait-shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(180deg, transparent 55%, rgba(12, 13, 15, .85) 100%),
		radial-gradient(circle at 80% 15%, rgba(var(--nd-red-rgb), .18), transparent 45%);
}
.nd-portrait-ring {
	position: absolute; inset: -14px; border-radius: 32px; border: 1px dashed rgba(var(--nd-red-rgb), .4); z-index: 0;
	animation: nd-breathe-ring 6s ease-in-out infinite;
}
@keyframes nd-breathe-ring { 50% { inset: -22px; border-color: rgba(var(--nd-red-rgb), .75); } }
.nd-portrait-badge {
	position: absolute; z-index: 3; left: 18px; bottom: 18px;
	display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem .55rem .8rem;
	border-radius: 99px; font-size: .85rem; font-weight: 600; color: #fff;
	background: rgba(17, 18, 21, .72); border: 1px solid var(--nd-line-strong); backdrop-filter: blur(10px);
}
.nd-portrait-chip {
	position: absolute; z-index: 3; right: -18px; top: 28px; padding: .85rem 1.1rem; border-radius: 16px; text-align: left;
	background: linear-gradient(135deg, var(--nd-red), var(--nd-red-deep)); color: #fff;
	box-shadow: 0 20px 40px -14px rgba(var(--nd-red-rgb), .85);
	animation: nd-float 6s ease-in-out infinite;
}
.nd-portrait-chip b { display: block; font-family: var(--nd-font-display); font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.nd-portrait-chip span { display: block; font-size: .78rem; opacity: .9; margin-top: .25rem; max-width: 7.5rem; line-height: 1.3; }
@keyframes nd-float { 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) { .nd-portrait-chip { right: 8px; } }

/* Hero avatar */
.nd-avatar { position: relative; display: inline-flex; flex: none; }
.nd-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--nd-red); }
.nd-avatar .nd-pulse { position: absolute; right: -2px; bottom: -1px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--nd-bg-2); }
.nd-eyebrow.nd-live { padding-left: .4rem; }

.nd-checks { margin: 1.8rem 0 0; display: grid; gap: .85rem; }
.nd-checks li { display: flex; gap: .8rem; align-items: center; color: #fff; font-weight: 500; }
.nd-checks .nd-icon { color: var(--nd-red); flex: none; padding: 3px; width: 26px; height: 26px; border-radius: 8px; background: var(--nd-red-soft); }

/* Post cards */
.nd-post-card { padding: 0; display: flex; flex-direction: column; }
.nd-post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--nd-radius) var(--nd-radius) 0 0; background: var(--nd-surface-2); }
.nd-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--nd-ease), filter .6s; filter: saturate(.85); }
.nd-post-card:hover .nd-post-thumb img { transform: scale(1.06); filter: saturate(1); }
.nd-post-thumb-ph {
	display: block; width: 100%; height: 100%; position: relative;
	background: radial-gradient(circle at 75% 30%, rgba(var(--nd-red-rgb), .35), transparent 50%), linear-gradient(135deg, var(--nd-surface-2), var(--nd-bg));
}
.nd-post-thumb-ph i {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--nd-line) 1px, transparent 1px), linear-gradient(90deg, var(--nd-line) 1px, transparent 1px);
	background-size: 28px 28px;
}
.nd-post-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.nd-post-title { font-size: 1.3rem; line-height: 1.3; margin: .7rem 0 .7rem; }
.nd-post-title a { color: #fff; }
.nd-post-title a:hover { color: var(--nd-red); }
.nd-post-excerpt { color: var(--nd-muted); font-size: .96rem; flex: 1; }

.nd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-family: var(--nd-font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nd-faint); }
.nd-meta a { color: var(--nd-red); }
.nd-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--nd-steel); }

/* Contact */
.nd-contact { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; border-top: 1px solid var(--nd-line); background: var(--nd-bg-2); }
.nd-contact-title { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 1.2rem; }
.nd-contact-text { color: var(--nd-muted); font-size: 1.15rem; max-width: 34rem; margin: 0 auto 2.4rem; }

/* ---------- 10. Inner page header ---------- */
.nd-page-header {
	position: relative; overflow: hidden;
	padding: calc(var(--nd-header-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--nd-line);
	background: linear-gradient(180deg, var(--nd-bg-2), var(--nd-bg));
}
.nd-page-title { font-size: clamp(2.3rem, 5.5vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.nd-page-sub { color: var(--nd-muted); font-size: 1.15rem; max-width: 42rem; margin-top: 1.1rem; }
.nd-page-sub:empty { display: none; }
.nd-single-header .nd-meta { margin-bottom: 1.2rem; }

.nd-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.nd-feature-img { margin: 0 0 3.5rem; border-radius: 22px; overflow: hidden; border: 1px solid var(--nd-line); }
.nd-feature-img img { width: 100%; display: block; }

/* ---------- 11. Entry content ---------- */
.entry-content { color: #cfd3d9; font-size: 1.08rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.4rem; }
.entry-content h2 { font-size: 1.9rem; margin-top: 3rem; }
.entry-content h3 { font-size: 1.45rem; margin-top: 2.4rem; }
.entry-content a:not(.btn):not(.wp-block-button__link) { color: #fff; text-decoration: underline; text-decoration-color: var(--nd-red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { color: var(--nd-red); }
.entry-content blockquote, .wp-block-quote {
	border-left: 3px solid var(--nd-red); padding: .4rem 0 .4rem 1.5rem; margin: 2.2rem 0;
	font-family: var(--nd-font-display); font-size: 1.4rem; color: #fff; line-height: 1.45;
}
.entry-content blockquote cite { display: block; font-size: .9rem; color: var(--nd-muted); margin-top: .7rem; font-style: normal; }
.entry-content code { background: var(--nd-surface-2); color: #fff; padding: .15em .45em; border-radius: 6px; font-size: .88em; font-family: var(--nd-font-mono); }
.entry-content pre { background: #0c0d0f; border: 1px solid var(--nd-line); border-radius: 14px; padding: 1.4rem; overflow: auto; font-size: .9rem; }
.entry-content pre code { background: none; padding: 0; }
.entry-content img, .entry-content figure img { border-radius: 14px; }
.entry-content figcaption, .wp-element-caption { color: var(--nd-faint); font-size: .88rem; text-align: center; margin-top: .6rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--nd-line); padding: .75rem .5rem; text-align: left; }
.entry-content hr { border: 0; height: 1px; background: var(--nd-line); margin: 3rem 0; opacity: 1; }
.entry-content ul li::marker { color: var(--nd-red); }
.wp-block-button__link { background: var(--nd-red); color: #fff; border-radius: 12px; padding: .8rem 1.4rem; font-weight: 600; }
.wp-block-button__link:hover { background: var(--nd-red-deep); color: #fff; }
.alignwide { margin-left: -6vw; margin-right: -6vw; max-width: calc(100% + 12vw); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 991.98px) { .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; } }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky .nd-post-card { border-color: rgba(var(--nd-red-rgb), .4); }
.bypostauthor > article { border-left: 2px solid var(--nd-red); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.gallery-caption { font-size: .85rem; }

.nd-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.nd-tags a { font-size: .82rem !important; padding: .35rem .8rem; border: 1px solid var(--nd-line-strong); border-radius: 99px; color: var(--nd-muted) !important; text-decoration: none !important; }
.nd-tags a:hover { border-color: var(--nd-red); color: #fff !important; }

.nd-post-nav { margin: 4rem 0 3rem; padding-top: 2rem; border-top: 1px solid var(--nd-line); }
.nd-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nd-post-nav .nav-next { text-align: right; }
.nd-post-nav a { display: block; padding: 1.2rem 1.4rem; border-radius: 14px; border: 1px solid var(--nd-line); transition: border-color .3s, background .3s; }
.nd-post-nav a:hover { border-color: rgba(var(--nd-red-rgb), .6); background: var(--nd-surface); }
.nd-post-nav small { display: block; font-family: var(--nd-font-mono); color: var(--nd-red); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: .3rem; }
.nd-post-nav span { color: #fff; font-family: var(--nd-font-display); font-weight: 500; }

/* ---------- 12. Forms ---------- */
.form-control, .form-select,
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	background-color: var(--nd-surface) !important; color: #fff !important;
	border: 1px solid var(--nd-line-strong); border-radius: 12px; padding: .8rem 1rem;
	transition: border-color .25s, box-shadow .25s;
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
	border-color: var(--nd-red) !important; box-shadow: 0 0 0 4px rgba(var(--nd-red-rgb), .15) !important; outline: 0;
}
.form-control::placeholder { color: var(--nd-faint); }
.form-check-input { background-color: var(--nd-surface-2); border-color: var(--nd-line-strong); }
.form-check-input:checked { background-color: var(--nd-red); border-color: var(--nd-red); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(var(--nd-red-rgb), .2); border-color: var(--nd-red); }
.form-switch .form-check-input { width: 2.8em; height: 1.5em; cursor: pointer; }
label { color: #d6dae0; font-weight: 500; margin-bottom: .35rem; }

.nd-search-form { position: relative; display: flex; gap: .6rem; align-items: center; }
.nd-search-form > .nd-icon { position: absolute; left: 1rem; color: var(--nd-faint); pointer-events: none; }
.nd-search-form input { padding-left: 2.9rem !important; flex: 1; }

.nd-search-modal .modal-content, .nd-cookie-modal .modal-content {
	background: rgba(27, 30, 35, .97); border: 1px solid var(--nd-line-strong); border-radius: 22px;
	box-shadow: 0 40px 100px -30px #000;
}
.nd-search-modal .modal-content { padding: 2.4rem; }
.nd-modal-close { position: absolute; top: 14px; right: 14px; }
.modal-backdrop.show { opacity: .75; backdrop-filter: blur(4px); }
.modal-backdrop { background: #07080a; }

/* Pagination */
.nd-pagination { margin-top: 3.5rem; }
.nd-pagination .pagination { gap: .4rem; }
.nd-pagination .page-link {
	min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px !important; background: var(--nd-surface); border: 1px solid var(--nd-line); color: var(--nd-muted);
}
.nd-pagination .page-link:hover { border-color: var(--nd-red); color: #fff; background: var(--nd-surface-2); }
.nd-pagination .active .page-link, .nd-pagination .page-link.current { background: var(--nd-red); border-color: var(--nd-red); color: #fff; }

/* Sidebar & widgets */
.nd-sticky { position: sticky; top: calc(var(--nd-header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.widget.nd-card { padding: 1.6rem; }
.widget-title { font-size: 1.05rem; margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: .45rem 0; border-bottom: 1px solid var(--nd-line); }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var(--nd-muted); }
.widget a:hover { color: var(--nd-red); }

/* Comments */
.nd-comments { margin-top: 3rem; }
.nd-comment-list ol { list-style: none; padding-left: 2rem; }
.nd-comment-list .comment-body { padding: 1.4rem; margin-bottom: 1rem; border: 1px solid var(--nd-line); border-radius: 14px; background: var(--nd-surface); }
.nd-comment-list .avatar { border-radius: 50%; margin-right: .8rem; }
.nd-comment-list .comment-meta { font-size: .85rem; color: var(--nd-faint); margin-bottom: .6rem; }
.nd-comment-list .comment-meta a { color: var(--nd-muted); }
.nd-comment-list .reply a { font-size: .85rem; color: var(--nd-red); }
.comment-form p { margin-bottom: 1rem; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; }

.nd-empty { padding: 3.5rem 2rem; }
.nd-empty p { color: var(--nd-muted); margin-bottom: 1.6rem; }

/* 404 */
.nd-404-code {
	font-family: var(--nd-font-display); font-weight: 700; font-size: clamp(7rem, 22vw, 15rem); line-height: .9; letter-spacing: -.07em;
	color: transparent; -webkit-text-stroke: 2px var(--nd-red);
	text-shadow: 0 0 80px rgba(var(--nd-red-rgb), .35);
	animation: nd-flicker 5s infinite;
}
@keyframes nd-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .4; } 95% { opacity: 1; } 96% { opacity: .6; } }

/* ---------- 13. Footer ---------- */
.nd-footer { position: relative; z-index: 1; padding: 5.5rem 0 0; background: #0c0d0f; overflow: hidden; }
.nd-footer-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--nd-red), transparent); opacity: .7; }
.nd-footer-lead { color: var(--nd-muted); max-width: 22rem; }
.nd-footer-title { font-family: var(--nd-font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--nd-faint); margin-bottom: 1.2rem; font-weight: 500; }
.nd-footer-links { margin: 0; padding: 0; list-style: none; }
.nd-footer-links li { margin-bottom: .7rem; }
.nd-footer-links a, .nd-footer-links span, .nd-footer .widget a { color: #c4c9d0; display: inline-flex; align-items: center; gap: .55rem; }
.nd-footer-links a:hover { color: var(--nd-red); }
.nd-footer-links .nd-icon { color: var(--nd-red); }
.nd-social { margin-top: 1.5rem; }
.nd-social a { display: inline-flex; padding: .45rem .9rem; border: 1px solid var(--nd-line-strong); border-radius: 99px; font-size: .85rem; color: var(--nd-muted); }
.nd-social a:hover { border-color: var(--nd-red); color: #fff; }
.nd-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: 4.5rem; padding: 1.6rem 0; border-top: 1px solid var(--nd-line);
	color: var(--nd-faint); font-size: .88rem;
}
.nd-footer-bottom a, .nd-footer-bottom .nd-link-btn { color: var(--nd-faint); font-size: .88rem; }
.nd-footer-bottom a:hover { color: var(--nd-red); }
.nd-footer-wordmark {
	font-family: var(--nd-font-display); font-weight: 700; letter-spacing: -.06em; line-height: .78;
	font-size: clamp(4rem, 17vw, 16rem); text-align: center; white-space: nowrap; user-select: none;
	color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
	background: linear-gradient(180deg, rgba(var(--nd-red-rgb), .22), transparent 75%);
	-webkit-background-clip: text; background-clip: text;
	margin-bottom: -.12em;
}

.nd-totop {
	position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 46px; height: 46px; border-radius: 14px;
	border: 1px solid var(--nd-line-strong); background: rgba(27, 30, 35, .85); color: #fff; backdrop-filter: blur(8px);
	display: inline-flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .4s var(--nd-ease);
}
.nd-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.nd-totop:hover { background: var(--nd-red); border-color: var(--nd-red); }

/* ---------- 14. Cookie banner ---------- */
.nd-cookie {
	position: fixed; left: 22px; bottom: 22px; z-index: 1060; max-width: 480px; width: calc(100% - 44px);
	display: flex; gap: 1rem; padding: 1.4rem 1.4rem 1.3rem;
	background: rgba(27, 30, 35, .96); border: 1px solid var(--nd-line-strong); border-radius: 20px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 50px -25px rgba(var(--nd-red-rgb), .6);
	backdrop-filter: blur(14px);
	opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s var(--nd-ease), transform .45s var(--nd-ease);
}
.nd-cookie.is-visible { opacity: 1; transform: none; }
.nd-cookie-icon {
	flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--nd-red); background: var(--nd-red-soft); animation: nd-wobble 6s ease-in-out infinite;
}
@keyframes nd-wobble { 0%, 85%, 100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-4deg); } }
.nd-cookie-title { font-size: 1.05rem; margin: .1rem 0 .4rem; }
.nd-cookie p { color: var(--nd-muted); font-size: .9rem; line-height: 1.55; margin-bottom: 1rem; }
.nd-cookie p a { color: #fff; text-decoration: underline; text-decoration-color: var(--nd-red); text-underline-offset: 3px; }
.nd-cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; }
.nd-cookie-actions .nd-link-btn { font-size: .88rem; }
@media (max-width: 575.98px) {
	.nd-cookie { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 1.2rem; }
	.nd-cookie-icon { display: none; }
}

.nd-cookie-modal .modal-header, .nd-cookie-modal .modal-footer { border-color: var(--nd-line); padding: 1.3rem 1.6rem; }
.nd-cookie-modal .modal-body { padding: .6rem 1.6rem; }
.nd-cookie-modal .modal-footer { gap: .5rem; }
.nd-cookie-cat { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--nd-line); }
.nd-cookie-cat:last-child { border-bottom: 0; }
.nd-cookie-cat h3 { font-size: 1rem; margin-bottom: .25rem; }
.nd-cookie-cat p { color: var(--nd-muted); font-size: .88rem; margin: 0; }
.nd-cookie-cat .form-check { padding-top: .2rem; }

/* ---------- 15. Offcanvas ---------- */
.nd-offcanvas {
	--bs-offcanvas-width: 420px;
	--bs-offcanvas-bg: rgba(22, 24, 28, .98);
	--bs-offcanvas-border-color: var(--nd-line-strong);
	backdrop-filter: blur(14px);
}
.nd-offcanvas .offcanvas-header { padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--nd-line); }
.nd-offcanvas .offcanvas-body { padding: 1.4rem 1.6rem; }

/* ---------- 16. Reveal on scroll ---------- */
.nd-js [data-reveal] {
	opacity: 0; transform: translateY(28px); filter: blur(6px);
	transition: opacity .9s var(--nd-ease), transform .9s var(--nd-ease), filter .9s var(--nd-ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.nd-js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- 17. Reduced motion / calm mode ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.nd-js [data-reveal] { opacity: 1; transform: none; filter: none; }
	.nd-cursor-glow { display: none; }
}
.nd-calm *, .nd-calm *::before, .nd-calm *::after { animation: none !important; }
.nd-calm .nd-cursor-glow { display: none; }
.nd-js .nd-calm [data-reveal] { opacity: 1; transform: none; filter: none; }

@media (hover: none) { .nd-cursor-glow { display: none; } }

/* ==========================================================================
   18. Forms (contact + newsletter)
   ========================================================================== */
.nd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nd-form .form-label { font-size: .9rem; font-weight: 500; color: #d6dae0; margin-bottom: .4rem; }
.nd-req { color: var(--nd-red); }
.nd-opt { color: var(--nd-faint); font-weight: 400; }
.nd-form textarea { resize: vertical; min-height: 130px; }
.nd-form .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a7adb7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; }
.nd-form .is-invalid { border-color: var(--nd-red) !important; box-shadow: 0 0 0 4px rgba(var(--nd-red-rgb), .12) !important; background-image: none !important; }
.nd-form .invalid-feedback { display: block; color: #ff7a85; font-size: .82rem; margin-top: .35rem; min-height: 0; }
.nd-form .invalid-feedback:empty { display: none; }
.nd-consent { padding-left: 2rem; }
.nd-consent .form-check-input { width: 1.2em; height: 1.2em; margin-left: -2rem; margin-top: .2em; cursor: pointer; }
.nd-consent .form-check-label { font-size: .88rem; color: var(--nd-muted); font-weight: 400; cursor: pointer; }
.nd-consent .form-check-label a { color: #fff; text-decoration: underline; text-decoration-color: var(--nd-red); text-underline-offset: 3px; }
.nd-form-note { color: var(--nd-faint); font-size: .85rem; }

.nd-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: nd-spin .7s linear infinite; }
@keyframes nd-spin { to { transform: rotate(360deg); } }
.nd-form.is-busy .nd-spinner { display: inline-block; }
.nd-form.is-busy [type="submit"] .nd-icon { display: none; }
.nd-form.is-busy [type="submit"] { opacity: .85; cursor: progress; }

.nd-form-status { font-size: .9rem; margin-top: .9rem; }
.nd-form-status:empty { display: none; }
.nd-form-status.is-error, .nd-form-alert.is-error { color: #ff8a93; }
.nd-form-status.is-ok, .nd-form-alert.is-ok { color: #fff; }
.nd-form-status.is-ok::before { content: "✓ "; color: var(--nd-red); font-weight: 700; }
.nd-form-alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; border: 1px solid var(--nd-line-strong); background: var(--nd-surface-2); }
.nd-form-alert.is-error { border-color: rgba(var(--nd-red-rgb), .5); }

.nd-contact-form.is-sent { display: none; }
.nd-form-success { text-align: center; padding: 2.5rem 1rem; outline: 0; animation: nd-pop .5s var(--nd-ease); }
.nd-form-success p { color: #fff; font-size: 1.1rem; max-width: 26rem; margin: 1.2rem auto 1.6rem; }
.nd-success-mark svg { width: 74px; height: 74px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nd-success-mark circle { stroke: var(--nd-red); stroke-dasharray: 160; stroke-dashoffset: 160; animation: nd-draw .8s var(--nd-ease) forwards; filter: drop-shadow(0 0 12px rgba(var(--nd-red-rgb), .7)); }
.nd-success-mark path { stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: nd-draw .5s .55s var(--nd-ease) forwards; }
@keyframes nd-draw { to { stroke-dashoffset: 0; } }

.nd-form-card { padding: clamp(1.5rem, 3vw, 2.4rem); background: linear-gradient(180deg, rgba(35, 39, 46, .8), rgba(27, 30, 35, .8)); backdrop-filter: blur(8px); }
.nd-form-card .nd-h3 { margin-bottom: 1.4rem; }

/* ==========================================================================
   19. Contact page & contact section
   ========================================================================== */
.nd-availability {
	display: inline-flex; align-items: center; gap: .7rem; margin: 1.6rem 0 0; padding: .4rem 1rem .4rem .4rem;
	border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nd-line); color: #fff; font-weight: 500; font-size: .92rem;
}
.nd-availability-sm { padding: .35rem .85rem; gap: .55rem; font-size: .85rem; margin: .4rem 0 1.4rem; }
.nd-avatar-lg img { width: 44px; height: 44px; }

.nd-contact-list { display: grid; gap: .8rem; margin: 0 0 1rem; }
.nd-contact-item {
	display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 16px;
	background: linear-gradient(180deg, rgba(35, 39, 46, .55), rgba(27, 30, 35, .55)); border: 1px solid var(--nd-line);
	color: #fff; transition: transform .4s var(--nd-ease), border-color .3s;
}
a.nd-contact-item:hover { color: #fff; border-color: rgba(var(--nd-red-rgb), .55); transform: translateY(-3px); }
.nd-contact-item > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nd-contact-item small { font-family: var(--nd-font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nd-faint); }
.nd-contact-item b { font-family: var(--nd-font-display); font-size: 1.12rem; font-weight: 600; overflow-wrap: anywhere; }
.nd-contact-item > .nd-icon-external { color: var(--nd-faint); transition: color .3s, transform .3s var(--nd-ease); }
a.nd-contact-item:hover > .nd-icon-external { color: var(--nd-red); transform: translate(2px, -2px); }
.nd-contact-ico {
	flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--nd-red); background: var(--nd-red-soft); border: 1px solid rgba(var(--nd-red-rgb), .22);
}
.nd-contact-list-compact { margin-top: 2rem; }
.nd-contact-list-compact .nd-contact-item { padding: .9rem 1rem; }

.nd-response-card { display: flex; gap: 1rem; padding: 1.3rem; margin-top: .2rem; }
.nd-response-card b { color: #fff; font-family: var(--nd-font-display); }
.nd-response-card p { margin: .3rem 0 0; color: var(--nd-muted); font-size: .92rem; }
.nd-social-wrap { margin-top: 1.6rem; }
.nd-social a { display: inline-flex; align-items: center; gap: .35rem; }

.nd-contact { text-align: left; }
.nd-contact-text { margin: 0; }
.nd-contact-header .nd-page-title { max-width: 16ch; }

/* ==========================================================================
   20. Header CTA, contact tab, quick contact
   ========================================================================== */
.nd-header-cta { animation: none; padding: .55rem 1.1rem; }

.nd-contact-tab {
	position: fixed; z-index: 1025; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
	display: inline-flex; align-items: center; gap: .55rem; padding: 1.1rem .7rem; border: 0; border-radius: 0 12px 12px 0;
	background: linear-gradient(180deg, var(--nd-red), var(--nd-red-deep)); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em;
	box-shadow: 0 10px 30px -8px rgba(var(--nd-red-rgb), .8); transition: padding .3s var(--nd-ease), box-shadow .3s;
	animation: nd-btn-breathe 4.5s ease-in-out infinite;
}
.nd-contact-tab .nd-icon { transform: rotate(90deg); }
.nd-contact-tab:hover { padding-right: 1rem; }
@media (max-width: 991.98px) {
	.nd-contact-tab {
		top: auto; bottom: 22px; right: auto; left: 16px; transform: none; writing-mode: horizontal-tb;
		padding: .75rem 1.1rem; border-radius: 14px;
	}
	.nd-contact-tab .nd-icon { transform: none; }
	.nd-contact-tab:hover { padding-right: 1.1rem; }
}
.nd-quick-actions { display: grid; gap: .7rem; }
.nd-quick-btn {
	display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: 14px; color: #fff;
	background: var(--nd-surface); border: 1px solid var(--nd-line);
}
.nd-quick-btn:hover { color: #fff; border-color: rgba(var(--nd-red-rgb), .6); }
.nd-quick-btn .nd-icon { color: var(--nd-red); flex: none; }
.nd-quick-btn span { display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; }
.nd-quick-btn small { color: var(--nd-faint); font-weight: 400; font-size: .75rem; }
.nd-quick-contact { --bs-offcanvas-width: 460px; }

/* ==========================================================================
   21. Footer (professional)
   ========================================================================== */
.nd-footer h2.nd-footer-title { font-size: .76rem; }
.nd-footer-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 4.5rem; border-radius: 22px; position: relative; overflow: hidden;
	background: radial-gradient(circle at 100% 0%, rgba(var(--nd-red-rgb), .35), transparent 50%), linear-gradient(135deg, var(--nd-surface-2), var(--nd-surface));
	border: 1px solid var(--nd-line-strong);
}
.nd-footer-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; margin: 0 0 .4rem; }
.nd-footer-cta p:not(.nd-eyebrow) { color: var(--nd-muted); margin: 0; }
.nd-footer-cta .nd-eyebrow { margin-bottom: .6rem; }
.nd-footer-main { padding-bottom: .5rem; }
.nd-footer-small { color: var(--nd-muted); font-size: .9rem; }
.nd-footer-contact li > a, .nd-footer-contact li > span { align-items: flex-start !important; }
.nd-footer-contact .nd-icon { margin-top: .25rem; flex: none; }
.nd-footer-widgets { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--nd-line); }

.nd-newsletter-row { display: flex; gap: .5rem; }
.nd-newsletter-row .form-control { flex: 1; min-width: 0; }
.nd-newsletter-row .btn { padding: .7rem 1rem; flex: none; animation: none; }
.nd-consent-sm { margin-top: .7rem; }
.nd-consent-sm .form-check-label { font-size: .82rem; }
.nd-newsletter .nd-form-status { font-size: .85rem; }

.nd-trust { display: flex; align-items: center; gap: .55rem; margin-top: 1.6rem; color: var(--nd-muted); font-size: .85rem; }
.nd-trust .nd-icon { color: var(--nd-red); }

.nd-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
@media (max-width: 575.98px) { .nd-footer-bottom { padding-bottom: 5rem; } }
@media (max-width: 767.98px) {
	.nd-footer-nav .nd-footer-links { columns: 2; column-gap: 1.5rem; }
	.nd-footer-nav .nd-footer-links li { break-inside: avoid; }
}
.nd-footer-contact span { overflow-wrap: anywhere; }
/* Keep wide Bootstrap gutters from pushing past the screen edge on phones. */
@media (max-width: 575.98px) {
	.container > .row.g-5, .container > .row.g-xl-5 { --bs-gutter-x: 1.5rem; }
}

/* ==========================================================================
   22. Portrait in the hero
   ========================================================================== */
.nd-portrait-hero { max-width: 440px; }
.nd-portrait-hero .nd-portrait-frame { box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 90px -30px rgba(var(--nd-red-rgb), .7); }
.nd-hero-live {
	position: absolute; z-index: 3; left: -26px; bottom: 84px;
	display: flex; align-items: center; gap: .75rem; padding: .75rem 1.1rem .75rem .8rem; border-radius: 16px;
	background: rgba(22, 24, 28, .82); border: 1px solid var(--nd-line-strong); backdrop-filter: blur(12px);
	box-shadow: 0 20px 44px -18px #000; animation: nd-float 7s ease-in-out infinite reverse;
}
.nd-hero-live > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.nd-hero-live small { font-family: var(--nd-font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nd-faint); }
.nd-hero-live b { font-family: var(--nd-font-display); font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.nd-hero-live-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--nd-red-soft); }
.nd-hero-live.is-flash b, .nd-hero-live .is-flash { color: var(--nd-red); }
@media (max-width: 991.98px) {
	.nd-hero { padding-top: calc(var(--nd-header-h) + 1.5rem); }
	.nd-portrait-hero { max-width: 340px; }
	.nd-portrait-hero .nd-portrait-frame { aspect-ratio: 1 / 1; }
	.nd-portrait-hero .nd-portrait-img { object-position: 50% 12%; }
	.nd-hero-live { left: -10px; bottom: 64px; padding: .6rem .9rem .6rem .65rem; }
	.nd-hero-live b { font-size: 1.3rem; }
	.nd-scroll-cue { display: none; }
}
@media (max-width: 575.98px) { .nd-portrait-hero { max-width: 300px; } .nd-portrait-hero .nd-portrait-chip { right: -6px; } }

/* ==========================================================================
   23. Language switch (NO / EN)
   ========================================================================== */
.nd-lang {
	position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 99px;
	background: rgba(255, 255, 255, .05); border: 1px solid var(--nd-line-strong);
	font-family: var(--nd-font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; isolation: isolate;
}
.nd-lang a {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 28px; border-radius: 99px; color: var(--nd-muted); transition: color .3s var(--nd-ease);
}
.nd-lang a:hover { color: #fff; }
.nd-lang a.is-active { color: #fff; }
.nd-lang-pill {
	position: absolute; z-index: 0; top: 3px; left: 3px; width: 38px; height: 28px; border-radius: 99px;
	background: linear-gradient(135deg, var(--nd-red), var(--nd-red-deep));
	box-shadow: 0 4px 14px -4px rgba(var(--nd-red-rgb), .8);
	transition: transform .45s var(--nd-ease);
}
.nd-lang.is-en .nd-lang-pill { transform: translateX(38px); }
.nd-lang.is-switching.is-en .nd-lang-pill { transform: translateX(0); }
.nd-lang.is-switching:not(.is-en) .nd-lang-pill { transform: translateX(38px); }

@media (max-width: 575.98px) {
	.nd-header .navbar > .container { gap: 0; }
	.nd-brand { gap: .5rem; }
	.nd-brand-mark, .nd-brand-mark .nd-logo { width: 32px; height: 32px; }
	.nd-brand-text { font-size: 1.12rem; }
	.nd-header-actions { gap: 0 !important; }
	.nd-header-actions .nd-icon-btn, .nd-burger { width: 36px; height: 38px; }
	.nd-burger span { left: 9px; right: 9px; }
	.nd-burger span:last-child { right: 14px; }
	.nd-lang { margin-right: .15rem !important; }
	.nd-lang a, .nd-lang-pill { width: 30px; height: 26px; }
	.nd-lang.is-en .nd-lang-pill, .nd-lang.is-switching:not(.is-en) .nd-lang-pill { transform: translateX(30px); }
	.nd-lang.is-switching.is-en .nd-lang-pill { transform: translateX(0); }
}
@media (max-width: 359.98px) { .nd-header .nd-brand-text { display: none; } }
@media (max-width: 575.98px) { .nd-hero-live { display: none; } }

/* ==========================================================================
   24. Referanser (projects)
   ========================================================================== */
.nd-projects-head { margin-bottom: 2rem; }
.nd-filter { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--nd-line); }
.nd-filter-btn {
	display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: 12px; border: 0;
	background: transparent; color: var(--nd-muted); font-weight: 600; font-size: .92rem; transition: all .3s var(--nd-ease);
}
.nd-filter-btn em { font-style: normal; font-family: var(--nd-font-mono); font-size: .72rem; padding: .1rem .45rem; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--nd-faint); }
.nd-filter-btn:hover { color: #fff; }
.nd-filter-btn.is-active { background: linear-gradient(135deg, var(--nd-red), var(--nd-red-deep)); color: #fff; box-shadow: 0 8px 22px -10px rgba(var(--nd-red-rgb), .9); }
.nd-filter-btn.is-active em { background: rgba(255, 255, 255, .2); color: #fff; }
.nd-project-col { transition: opacity .4s var(--nd-ease), transform .4s var(--nd-ease); }
.nd-project-col.is-hidden { display: none; }
.nd-projects-empty { color: var(--nd-muted); text-align: center; padding: 2rem 0; }

.nd-project { padding: 0; display: flex; flex-direction: column; height: 100%; }
.nd-project-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--nd-radius) var(--nd-radius) 0 0; background: var(--nd-surface-2); }
.nd-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--nd-ease), filter .6s; filter: saturate(.85); }
.nd-project:hover .nd-project-media img { transform: scale(1.06); filter: saturate(1); }
.nd-project-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 75% 25%, rgba(var(--nd-red-rgb), .4), transparent 55%), linear-gradient(135deg, var(--nd-surface-2), var(--nd-bg)); }
.nd-project-ph i { position: absolute; inset: 0; background-image: linear-gradient(var(--nd-line) 1px, transparent 1px), linear-gradient(90deg, var(--nd-line) 1px, transparent 1px); background-size: 28px 28px; }
.nd-project-ph b { position: relative; font-family: var(--nd-font-display); font-size: 4.5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
.is-upcoming .nd-project-media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 28px); }

.nd-status {
	position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: .45rem;
	padding: .35rem .75rem; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
	background: rgba(17, 18, 21, .78); border: 1px solid var(--nd-line-strong); color: #fff; backdrop-filter: blur(8px);
}
.nd-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nd-status-done i { background: #3ddc84; }
.nd-status-progress i { background: var(--nd-red); animation: nd-ping-dot 1.6s ease-in-out infinite; }
.nd-status-upcoming i { background: #a7adb7; }
@keyframes nd-ping-dot { 50% { box-shadow: 0 0 0 5px rgba(var(--nd-red-rgb), .25); } }
.nd-project-facts .nd-status { position: static; margin-bottom: 1.2rem; }

.nd-project-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.nd-project-meta { font-family: var(--nd-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nd-faint); margin: 0 0 .5rem; min-height: 1em; }
.nd-project-title { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .6rem; }
.nd-project-title a { color: #fff; }
.nd-project-title a:hover { color: var(--nd-red); }
.nd-project-text { color: var(--nd-muted); font-size: .95rem; margin-bottom: 1rem; }
.nd-project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.nd-project-tags li { font-size: .74rem; padding: .25rem .6rem; border-radius: 99px; border: 1px solid var(--nd-line-strong); color: var(--nd-muted); }
.nd-project-links { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.nd-project-visit { font-size: .88rem; color: var(--nd-muted); display: inline-flex; align-items: center; gap: .3rem; }
.nd-project-visit:hover { color: var(--nd-red); }

.nd-progress-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.nd-progress-bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--nd-red-deep), var(--nd-red)); box-shadow: 0 0 12px rgba(var(--nd-red-rgb), .7); position: relative; }
.nd-js .nd-progress-bar span { width: 0; transition: width 1.4s var(--nd-ease) .2s; }
.nd-js .is-in .nd-progress-bar span, .nd-js .nd-project-facts .nd-progress-bar span { width: var(--p, 0%); }
.nd-progress-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: nd-shimmer 2.2s linear infinite; }
@keyframes nd-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.nd-progress-label { font-size: .8rem; color: var(--nd-muted); margin: .45rem 0 1rem; }

.nd-project-facts { padding: 1.6rem; }
.nd-project-facts dl { margin: 0 0 1rem; display: grid; gap: .2rem; }
.nd-project-facts dt { font-family: var(--nd-font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nd-faint); margin-top: .6rem; }
.nd-project-facts dd { margin: 0; color: #fff; font-weight: 500; }

/* ==========================================================================
   25. Subscription plans
   ========================================================================== */
.nd-plans-section { overflow-x: clip; overflow-y: visible; }
.nd-plans { padding-top: 1.2rem; }
.nd-plans-head { max-width: 720px; margin-left: auto; margin-right: auto; }
.nd-plans-intro { color: var(--nd-muted); font-size: 1.1rem; }
.nd-plans { align-items: stretch; }
.nd-plans > div { display: flex; }
.nd-plan {
	position: relative; display: flex; flex-direction: column; width: 100%; padding: 2rem 1.6rem 1.8rem; border-radius: 22px;
	background: linear-gradient(180deg, rgba(35, 39, 46, .7), rgba(22, 24, 28, .7)); border: 1px solid var(--nd-line);
	transition: transform .5s var(--nd-ease), box-shadow .5s var(--nd-ease), border-color .4s;
}
.nd-plan:hover { transform: translateY(-6px); border-color: rgba(var(--nd-red-rgb), .45); box-shadow: 0 30px 70px -35px #000; }
.nd-plan.is-featured {
	border-color: rgba(var(--nd-red-rgb), .7);
	background: radial-gradient(circle at 50% 0%, rgba(var(--nd-red-rgb), .22), transparent 60%), linear-gradient(180deg, rgba(42, 46, 53, .9), rgba(22, 24, 28, .9));
	box-shadow: 0 30px 80px -30px rgba(var(--nd-red-rgb), .55);
	animation: nd-plan-breathe 5s ease-in-out infinite;
}
@keyframes nd-plan-breathe { 50% { box-shadow: 0 34px 90px -26px rgba(var(--nd-red-rgb), .85); } }
@media (min-width: 1200px) { .nd-plan.is-featured { transform: translateY(-14px); } .nd-plan.is-featured:hover { transform: translateY(-20px); } }
.nd-plan-badge {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	padding: .35rem .9rem; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #fff;
	background: linear-gradient(135deg, var(--nd-red), var(--nd-red-deep)); box-shadow: 0 8px 20px -6px rgba(var(--nd-red-rgb), .9);
}
.nd-plan-level { font-family: var(--nd-font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nd-red); margin: 0 0 .4rem; }
.nd-plan-name { font-size: 1.6rem; margin: 0 0 .4rem; }
.nd-plan-tagline { color: var(--nd-muted); font-size: .93rem; min-height: 2.9em; margin-bottom: 1.2rem; }
.nd-plan-price { display: flex; flex-direction: column; margin: 0 0 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--nd-line); }
.nd-plan-price b { font-family: var(--nd-font-display); font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.05; color: #fff; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.nd-plan-price span { color: var(--nd-faint); font-size: .88rem; margin-top: .25rem; }
.nd-plan .btn { margin-bottom: 1.5rem; }
.nd-plan-features { margin: 0; display: grid; gap: .65rem; }
.nd-plan-features li { display: flex; gap: .6rem; align-items: flex-start; color: #d6dae0; font-size: .92rem; line-height: 1.45; }
.nd-plan-features li .nd-icon { color: var(--nd-red); flex: none; margin-top: .15rem; }
.nd-plan-features li.is-head { color: #fff; font-weight: 600; font-size: .86rem; }
.nd-plans-note { text-align: center; color: var(--nd-faint); font-size: .88rem; margin-top: 2rem; }

.nd-chosen-plan {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin: -.4rem 0 1.4rem; padding: .9rem 1.1rem; border-radius: 14px;
	background: var(--nd-red-soft); border: 1px solid rgba(var(--nd-red-rgb), .35);
}
.nd-chosen-plan span { width: 100%; font-family: var(--nd-font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nd-red); }
.nd-chosen-plan b { color: #fff; font-size: 1.1rem; }
.nd-chosen-plan em { font-style: normal; color: var(--nd-muted); }
.nd-chosen-plan a { margin-left: auto; font-size: .85rem; color: #fff; text-decoration: underline; text-decoration-color: var(--nd-red); }
.nd-plan.nd-spotlight { overflow: visible; }
.nd-plan.nd-spotlight::before { border-radius: inherit; }
.nd-plan.is-featured { margin-top: 6px; }

/* ==========================================================================
   26. Checkout pop-up
   ========================================================================== */
.nd-checkout .modal-content {
	background: linear-gradient(180deg, rgba(27, 30, 35, .98), rgba(17, 18, 21, .98)); border: 1px solid var(--nd-line-strong);
	border-radius: 24px; box-shadow: 0 50px 120px -30px #000, 0 0 80px -40px rgba(var(--nd-red-rgb), .6);
}
.nd-checkout .modal-header { border-bottom: 1px solid var(--nd-line); padding: 1.1rem 1.5rem; }
.nd-checkout .modal-body { padding: 1.6rem; }
@media (max-width: 575.98px) { .nd-checkout .modal-body { padding: 1rem; } .nd-checkout .modal-dialog { margin: .5rem; } }
.nd-co-brand { display: flex; align-items: center; gap: .9rem; }
.nd-co-brand .nd-brand-mark, .nd-co-brand .nd-logo { width: 30px; height: 30px; }
.nd-co-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: .35rem 0 0; font-family: var(--nd-font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nd-faint); }
.nd-co-steps li { display: inline-flex; align-items: center; gap: .4rem; }
.nd-co-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--nd-line-strong); }
.nd-co-steps li.is-active { color: #fff; }
.nd-co-steps li.is-done { color: var(--nd-red); }

.nd-co-step { display: none; }
.nd-co-step.is-active { display: block; animation: nd-pop .35s var(--nd-ease); }
.nd-co-block { border: 0; padding: 0; margin: 0 0 1.6rem; }
.nd-co-block legend { font-family: var(--nd-font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nd-red); margin-bottom: .8rem; float: none; }

.nd-co-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 992px) { .nd-co-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nd-co-tier input, .nd-co-variant input, .nd-co-method input { position: absolute; opacity: 0; pointer-events: none; }
.nd-co-tier-box { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .85rem .9rem; border-radius: 14px; border: 1px solid var(--nd-line-strong); background: rgba(255, 255, 255, .02); cursor: pointer; transition: all .25s var(--nd-ease); }
.nd-co-tier-box small { font-family: var(--nd-font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nd-faint); }
.nd-co-tier-box b { color: #fff; font-family: var(--nd-font-display); font-size: 1.05rem; }
.nd-co-tier-box em { font-style: normal; font-size: .8rem; color: var(--nd-muted); }
.nd-co-tier input:checked + .nd-co-tier-box { border-color: var(--nd-red); background: var(--nd-red-soft); box-shadow: 0 0 0 1px var(--nd-red) inset, 0 10px 30px -14px rgba(var(--nd-red-rgb), .8); }
.nd-co-tier input:focus-visible + .nd-co-tier-box, .nd-co-variant input:focus-visible + span, .nd-co-method input:focus-visible + span { outline: 2px solid var(--nd-red); outline-offset: 2px; }

.nd-co-variants { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.nd-co-variant span { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--nd-line-strong); cursor: pointer; transition: all .25s var(--nd-ease); }
.nd-co-variant b { color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.nd-co-variant small { color: var(--nd-muted); font-size: .8rem; }
.nd-co-variant input:checked + span { border-color: var(--nd-red); background: var(--nd-red-soft); }
.nd-co-save { font-style: normal; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: var(--nd-red); color: #fff; }
.nd-co-save:empty { display: none; }

.nd-co-back { margin-bottom: 1rem; text-decoration: none; }
.nd-co-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.nd-co-method span { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--nd-line-strong); cursor: pointer; transition: all .25s var(--nd-ease); }
.nd-co-method b { color: #fff; font-size: .95rem; }
.nd-co-method input:checked + span { border-color: var(--nd-red); background: var(--nd-red-soft); box-shadow: 0 0 0 1px var(--nd-red) inset; }
.nd-pay-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 6px; font-weight: 800; font-size: .9rem; color: #fff; }
.nd-pay-mark.is-card { background: linear-gradient(135deg, #3b3f46, #23262c); border: 1px solid var(--nd-line-strong); position: relative; }
.nd-pay-mark.is-card i { position: absolute; left: 4px; right: 4px; height: 3px; background: rgba(255, 255, 255, .5); border-radius: 2px; }
.nd-pay-mark.is-card i:first-child { top: 6px; background: var(--nd-red); }
.nd-pay-mark.is-card i:last-child { bottom: 5px; right: 16px; }
.nd-pay-mark.is-vipps { background: #ff5b24; }
.nd-pay-mark.is-paypal { background: #1f3b88; font-style: italic; }
.nd-pay-mark.is-invoice { background: var(--nd-surface-2); color: var(--nd-red); }

.nd-co-pane { display: none; margin-top: 1rem; }
.nd-co-pane.is-active { display: block; }
.nd-co-card { min-height: 120px; padding: 1rem; border-radius: 16px; border: 1px solid var(--nd-line-strong); background: var(--nd-surface); position: relative; }
.nd-co-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nd-co-loading .nd-spinner { display: inline-block; }
.nd-co-hint { display: flex; gap: .55rem; align-items: flex-start; color: var(--nd-muted); font-size: .86rem; margin: .8rem 0 0; }
.nd-co-hint .nd-icon { color: var(--nd-red); flex: none; margin-top: .15rem; }
.nd-co-paypal { margin-top: 1rem; min-height: 50px; }
.nd-co-status { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(var(--nd-red-rgb), .12); border: 1px solid rgba(var(--nd-red-rgb), .45); color: #ffb3ba; font-size: .9rem; }
.nd-co-status.is-visible { display: block; }
[data-nd-pay] .nd-spinner { display: none; }
[data-nd-pay].is-busy .nd-spinner { display: inline-block; }
[data-nd-pay].is-busy .nd-icon { display: none; }
[data-nd-pay].is-vipps { background: linear-gradient(135deg, #ff6a33, #e84c10) !important; box-shadow: 0 10px 30px -10px rgba(255, 91, 36, .8); }

.nd-co-summary { position: sticky; top: 0; padding: 1.5rem; border-radius: 20px; border: 1px solid var(--nd-line-strong); background: radial-gradient(circle at 100% 0%, rgba(var(--nd-red-rgb), .25), transparent 55%), var(--nd-surface); }
.nd-co-summary h3 { font-size: 1.6rem; margin: 0; }
.nd-co-sum-variant { color: var(--nd-muted); margin: .2rem 0 1.2rem; }
.nd-co-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line); }
.nd-co-summary dt { color: var(--nd-muted); font-weight: 400; }
.nd-co-summary dd { margin: 0; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.nd-co-summary .is-total { padding-top: .5rem; font-size: 1.05rem; color: #fff; font-weight: 600; }
.nd-co-summary dd.is-total { font-family: var(--nd-font-display); font-size: 1.6rem; letter-spacing: -.02em; }
.nd-co-sum-note { color: var(--nd-red); font-size: .85rem; margin: .8rem 0 0; min-height: 1em; }
.nd-co-trust { margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.nd-co-trust li { display: flex; gap: .55rem; align-items: center; color: var(--nd-muted); font-size: .86rem; }
.nd-co-trust .nd-icon { color: var(--nd-red); }

.nd-co-done, .nd-co-wait { text-align: center; padding: 2rem 0 1rem; outline: 0; }
.nd-co-done .nd-h2 { margin-top: 1rem; }
.nd-co-done-lead { color: var(--nd-muted); font-size: 1.1rem; max-width: 30rem; margin: 0 auto 1.6rem; }
.nd-co-receipt { display: grid; grid-template-columns: auto auto; justify-content: center; gap: .4rem 1.4rem; text-align: left; margin: 0 auto 1.2rem; padding: 1.1rem 1.4rem; border-radius: 16px; border: 1px solid var(--nd-line); background: var(--nd-surface); width: fit-content; }
.nd-co-receipt dt { color: var(--nd-faint); font-weight: 400; }
.nd-co-receipt dd { margin: 0; color: #fff; font-weight: 600; }
.nd-co-done .nd-co-hint { margin-bottom: 1.4rem; }
.nd-spinner-lg { display: inline-block !important; width: 42px; height: 42px; border-width: 3px; margin-bottom: 1rem; }
.nd-co-wait p { color: var(--nd-muted); }
.nd-co-wait-close { display: none; }
.nd-co-wait.is-error .nd-spinner { display: none !important; }
.nd-co-wait.is-error p { color: #ffb3ba; }
.nd-co-wait.is-error .nd-co-wait-close { display: inline-flex; }
.nd-checkout.is-finished .col-lg-5, .nd-checkout.is-returning .col-lg-5 { display: none; }
.nd-checkout.is-finished .col-lg-7, .nd-checkout.is-returning .col-lg-7 { flex: 0 0 100%; max-width: 100%; }
.nd-checkout.is-returning .nd-co-steps { visibility: hidden; }

/* ==========================================================================
   27. Referanser — the web
   ========================================================================== */
.nd-web {
	position: relative; margin: 0 0 3.5rem; border-radius: 26px; overflow: hidden;
	border: 1px solid var(--nd-line-strong);
	background:
		radial-gradient(circle at 50% 50%, rgba(var(--nd-red-rgb), .16), transparent 55%),
		radial-gradient(circle at 15% 85%, rgba(179, 18, 31, .18), transparent 40%),
		linear-gradient(180deg, var(--nd-bg-2), var(--nd-bg));
}
.nd-web::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--nd-line) 1px, transparent 1px), linear-gradient(90deg, var(--nd-line) 1px, transparent 1px);
	background-size: 48px 48px; opacity: .5;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.nd-web-stage { position: relative; height: clamp(440px, 62vh, 640px); }
.nd-web-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; }
.nd-web-link { stroke: rgba(255, 255, 255, .08); stroke-width: 1; transition: stroke .3s, opacity .3s; }
.nd-web-link.is-tag { stroke: rgba(var(--nd-red-rgb), .28); stroke-dasharray: 3 4; }
.nd-web-link.is-lit { stroke: rgba(var(--nd-red-rgb), .95); stroke-width: 1.6; stroke-dasharray: none; }
.nd-web-link.is-out { opacity: .15; }
.nd-web.is-hovering .nd-web-link:not(.is-lit) { opacity: .25; }

.nd-web-node { cursor: grab; transition: opacity .35s; outline: none; }
.nd-web-node:active { cursor: grabbing; }
.nd-web-node .nd-web-dot { fill: var(--nd-surface-2); stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; transition: transform .3s var(--nd-ease), fill .3s, stroke .3s; }
.nd-web-node .nd-web-halo { opacity: 0; transition: opacity .4s; pointer-events: none; }
.nd-web-node.is-hub .nd-web-dot { fill: url(#ndWebGlow); fill: var(--nd-red); stroke: rgba(255, 255, 255, .25); stroke-width: 6; }
.nd-web-node.is-hub .nd-web-halo { opacity: 1; animation: nd-web-breathe 4s ease-in-out infinite; transform-origin: center; }
.nd-web-hub-label { fill: #fff; font-family: var(--nd-font-display); font-weight: 700; font-size: 26px; pointer-events: none; }
.nd-web-node.is-done .nd-web-dot { fill: var(--nd-red); stroke: #fff; }
.nd-web-node.is-progress .nd-web-dot { fill: var(--nd-red-deep); stroke: var(--nd-red); }
.nd-web-node.is-upcoming .nd-web-dot { fill: var(--nd-surface-2); stroke: rgba(255, 255, 255, .7); stroke-dasharray: 3 3; }
.nd-web-node.is-idea .nd-web-dot { fill: transparent; stroke: #ffd2d6; stroke-dasharray: 1 4; stroke-linecap: round; stroke-width: 2; }
.nd-web-node.is-tag { cursor: default; }
.nd-web-node.is-tag .nd-web-dot { fill: rgba(var(--nd-red-rgb), .22); stroke: rgba(var(--nd-red-rgb), .55); stroke-width: 1; }
.nd-web-ring { fill: none; stroke: var(--nd-red); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(var(--nd-red-rgb), .8)); }
.nd-web-label { fill: var(--nd-muted); font-family: var(--nd-font-body); font-size: 12px; font-weight: 500; pointer-events: none; paint-order: stroke; stroke: rgba(17, 18, 21, .85); stroke-width: 4px; transition: fill .3s; }
.nd-web-node.is-tag .nd-web-label { font-family: var(--nd-font-mono); font-size: 10px; letter-spacing: .06em; fill: var(--nd-faint); text-transform: uppercase; }
.nd-web-node.is-project .nd-web-label { fill: #d6dae0; }
.nd-web-node.is-lit .nd-web-label, .nd-web-node.is-active .nd-web-label { fill: #fff; }
.nd-web-node.is-project:hover .nd-web-dot, .nd-web-node.is-project:focus .nd-web-dot, .nd-web-node.is-active .nd-web-dot { transform: scale(1.25); }
.nd-web-node.is-project.is-lit .nd-web-halo, .nd-web-node.is-active .nd-web-halo { opacity: 1; }
.nd-web-node.is-project:focus-visible .nd-web-dot { stroke: #fff; stroke-width: 3; }
.nd-web.is-hovering .nd-web-node:not(.is-lit):not(.is-hub) { opacity: .35; }
.nd-web-node.is-out { opacity: .12 !important; pointer-events: none; }
@keyframes nd-web-breathe { 50% { transform: scale(1.18); opacity: .7; } }

.nd-web-legend { position: absolute; left: 1.2rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; font-size: .78rem; color: var(--nd-muted); }
.nd-web-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.nd-web-legend i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid; }
.nd-web-legend .is-done i { background: var(--nd-red); border-color: #fff; }
.nd-web-legend .is-progress i { background: var(--nd-red-deep); border-color: var(--nd-red); }
.nd-web-legend .is-upcoming i { background: var(--nd-surface-2); border-color: rgba(255, 255, 255, .7); border-style: dashed; }
.nd-web-legend .is-idea i { border-color: #ffd2d6; border-style: dotted; }
.nd-web-legend .is-tag i { width: 8px; height: 8px; background: rgba(var(--nd-red-rgb), .3); border-color: rgba(var(--nd-red-rgb), .6); }
.nd-web-hint { position: absolute; right: 1.2rem; bottom: 1rem; margin: 0; font-family: var(--nd-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nd-faint); }
@media (max-width: 767.98px) { .nd-web-hint { display: none; } .nd-web-legend { left: .9rem; right: .9rem; bottom: .8rem; font-size: .72rem; } }

.nd-web-panel {
	position: absolute; z-index: 3; top: 1rem; right: 1rem; bottom: 1rem; width: min(360px, calc(100% - 2rem)); overflow-y: auto;
	padding: 1.4rem; border-radius: 20px; border: 1px solid var(--nd-line-strong);
	background: rgba(22, 24, 28, .92); backdrop-filter: blur(16px); box-shadow: 0 30px 70px -20px #000;
	opacity: 0; transform: translateX(20px); transition: opacity .3s var(--nd-ease), transform .3s var(--nd-ease);
}
.nd-web-panel.is-open { opacity: 1; transform: none; }
.nd-web-panel .nd-status { position: static; margin-bottom: .9rem; }
.nd-web-panel h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 2rem .4rem 0; }
.nd-web-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.nd-web-close { position: absolute; top: .7rem; right: .7rem; }
@media (max-width: 575.98px) {
	.nd-web-panel { top: auto; left: .6rem; right: .6rem; bottom: .6rem; width: auto; max-height: 72%; transform: translateY(20px); }
}
.nd-projects-list-title { margin: 0 0 1.4rem; }

.nd-status-idea i { background: transparent; border: 1.5px dotted #ffd2d6; }
.is-idea .nd-project-media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 210, 214, .04) 10px 20px); }
