/* ==========================================================================
   Bond Media — Referral Programme
   Most layout styling is inline in the template parts (carried over verbatim
   from the approved prototype). This file holds the base, the responsive
   custom properties that replace the prototype's JS-computed layout values,
   hover states, and the referral modal / Contact Form 7 skin.
   ========================================================================== */

/* ---------- Base ---------- */
html, body { overflow-x: clip; }
@media (hover: hover) and (pointer: fine) {
	html.cc-on, html.cc-on * { cursor: none !important; }
}
body { margin: 0; background: #0b0b0b; color: #f5f5f3; font-family: 'Geist', sans-serif; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
:where(body) a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { opacity: .8; }
::selection { background: #c6ff3a; color: #0b0b0b; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { max-width: none; }

/* ---------- Layout tokens (prototype breakpoint: 960px) ---------- */
:root {
	--card-w: min(34vw, 540px, calc((100svh - 170px) * 1.586));
	--card-h: calc(var(--card-w) / 1.586);
	--card-top: 52%;
	--band-h: calc(100px + var(--card-h));
	--cols: minmax(0, 1fr) var(--card-w) minmax(0, 1fr);
	--r-col: 3;
	--chap-pad: 120px clamp(24px, 4vw, 64px) 80px;
	--stage-pe: none;
	--notif-top: -15%;
	--notif-l: 14%;
	--notif-r: -10%;
}
.rf-mob { display: none; }

@media (max-width: 959px) {
	:root {
		--card-w: min(84vw, 420px, calc(40svh * 1.586));
		--card-top: calc(76px + var(--card-h) / 2);
		--cols: minmax(0, 1fr);
		--r-col: 1;
		--chap-pad: calc(120px + var(--card-h)) 20px 64px;
		--stage-pe: auto;
		--notif-top: 82%;
		--notif-l: 4%;
		--notif-r: 4%;
	}
	.rf-mob { display: block; }
	.rf-desk { display: none !important; }
}

/* ---------- Hover states (prototype style-hover) ---------- */
.rf-cta-hover:hover { opacity: 1 !important; box-shadow: 0 0 40px -6px rgba(198, 255, 58, .85) !important; }

/* ---------- Modal ---------- */
.rf-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); }
.rf-modal[hidden] { display: none; }
.rf-modal__back { position: absolute; inset: 0; background: rgba(5, 5, 5, .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rf-modal__panel {
	position: relative; width: 100%; max-width: 1040px; height: min(720px, 100%); max-height: 100%;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
	background: #0f0f0e; border: 1px solid #f5f5f31f; border-radius: 24px; overflow: hidden;
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(198, 255, 58, .35);
}

/* Gauge column */
.rf-gauge {
	position: relative; overflow: hidden; padding: 32px;
	display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 22px;
	background: radial-gradient(110% 80% at 30% 15%, #262d10 0%, #0b0b0b 62%);
	border-right: 1px solid #f5f5f314; border-bottom: 1px solid #f5f5f314;
}
.rf-gauge__grid {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(rgba(245, 245, 243, .04) 1px, transparent 1px) 0 0/100% 44px, linear-gradient(90deg, rgba(245, 245, 243, .04) 1px, transparent 1px) 0 0/44px 100%;
	mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent); -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent);
}
.rf-gauge__head { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.rf-gauge__head img { height: 22px; width: auto; filter: invert(1); }
.rf-gauge__head span { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .16em; color: #c9c9c4; }
.rf-gauge__dial { position: relative; flex: none; width: min(260px, 60%); aspect-ratio: 1/1; align-self: center; }
.rf-gauge__dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rf-gauge__arc { transition: stroke-dasharray .9s cubic-bezier(.2, .8, .2, 1), stroke .5s; filter: drop-shadow(0 0 8px rgba(255, 77, 58, .7)); }
.rf-gauge.is-hot .rf-gauge__arc { filter: drop-shadow(0 0 8px rgba(198, 255, 58, .7)); }
.rf-gauge__centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.rf-gauge__lbl { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .18em; color: #8f8f8a; }
.rf-gauge__num { font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); line-height: .9; letter-spacing: -.06em; color: #ff4d3a; transition: color .5s; font-variant-numeric: tabular-nums; }
.rf-gauge.is-hot .rf-gauge__num { color: #c6ff3a; }
.rf-gauge__note { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em; line-height: 1.5; color: #c9c9c4; max-width: 70%; }
.rf-gauge__note-m { position: relative; flex: 1; min-width: 0; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .12em; line-height: 1.6; color: #c9c9c4; }
.rf-steps { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rf-step { display: flex; align-items: center; gap: 12px; }
.rf-step__dot {
	flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(245, 245, 243, .25); background: transparent;
	color: #0b0b0b; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: all .35s;
}
.rf-step__label { flex: 1; font-size: 14px; color: #8f8f8a; transition: color .35s; }
.rf-step__state { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .14em; color: #5c5c58; }
.rf-step.is-done .rf-step__dot { border-color: #c6ff3a; background: #c6ff3a; box-shadow: 0 0 12px rgba(198, 255, 58, .6); }
.rf-step.is-done .rf-step__dot::after { content: '✓'; }
.rf-step.is-done .rf-step__label { color: #f5f5f3; }
.rf-step.is-done .rf-step__state { color: #c6ff3a; }

/* Form column */
.rf-modal__body { position: relative; min-height: 0; display: flex; flex-direction: column; }
.rf-modal__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 2.6vw, 32px) 14px; }
.rf-modal__top h2 { margin: 0; font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.04em; line-height: 1; }
.rf-modal__top h2 span { color: #c6ff3a; }
.rf-close {
	flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #f5f5f333; background: transparent; color: #f5f5f3;
	font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.rf-close:hover { border-color: #c6ff3a; color: #c6ff3a; }
.rf-formwrap { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px clamp(20px, 2.6vw, 32px) 26px; }
.rf-formwrap[hidden] { display: none; }
.rf-form-missing { color: #c9c9c4; }
.rf-cf7 { margin: 0; }
.rf-form { display: flex; flex-direction: column; gap: 10px; }
.rf-eyebrow { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .16em; color: #8f8f8a; }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: start; }
.rf-help { font-size: 12px; color: #8f8f8a; line-height: 1.4; margin: -2px 0 2px 2px; }
.rf-rule { height: 1px; background: #f5f5f314; margin: 8px 0 4px; }
.rf-muted { color: #8f8f8a; }

.rf-form .wpcf7-form-control-wrap { display: block; }
.rf-field { position: relative; }
.rf-field > label,
.rf-float {
	position: absolute; left: 17px; top: 29px; transform: translateY(-50%); z-index: 1;
	font-size: 15px; letter-spacing: 0; color: #8f8f8a; pointer-events: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
	transition: top .22s cubic-bezier(.2, .8, .2, 1), transform .22s cubic-bezier(.2, .8, .2, 1), font-size .22s, color .22s, letter-spacing .22s;
}
.rf-field--area > label { top: 18px; transform: none; }
.rf-field.is-up > label,
.rf-select.is-up .rf-float { top: 9px; transform: none; font-size: 11px; letter-spacing: .04em; }
.rf-field.is-focus > label,
.rf-select.is-open .rf-float { color: #c6ff3a; }

.rf-input {
	display: block; width: 100%; height: 58px; margin: 0; padding: 22px 16px 6px;
	background: #161615; border: 1px solid rgba(245, 245, 243, .14); border-radius: 12px; color: #f5f5f3;
	font-family: 'Geist', sans-serif; font-size: 16px; outline: none; box-shadow: none;
	transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.rf-input { display: inline-block; height: auto; min-height: 104px; padding: 28px 16px 10px; resize: vertical; line-height: 1.5; }
.rf-input:focus { border-color: #c6ff3a; box-shadow: 0 0 0 3px rgba(198, 255, 58, .16); outline: none; }
.rf-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #161615 inset; -webkit-text-fill-color: #f5f5f3; caret-color: #f5f5f3; }

/* Custom pickers bound to hidden CF7 selects */
.rf-select { position: relative; }
.rf-select__btn {
	position: relative; display: block; width: 100%; height: 58px; margin: 0; text-align: left;
	background: #161615; border: 1px solid rgba(245, 245, 243, .14); border-radius: 12px; color: #f5f5f3;
	font-family: 'Geist', sans-serif; font-size: 16px; padding: 22px 48px 6px 16px; cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.rf-select.is-open .rf-select__btn { border-color: #c6ff3a; box-shadow: 0 0 0 3px rgba(198, 255, 58, .16); }
.rf-select__value { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-select__chev {
	position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 1.8px solid #8f8f8a; border-bottom: 1.8px solid #8f8f8a; border-radius: 1px;
	transform: rotate(45deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .2s, margin .3s;
}
.rf-select.is-open .rf-select__chev { transform: rotate(225deg); margin-top: -2px; border-color: #c6ff3a; }
.rf-select__list {
	position: absolute; left: 0; right: 0; top: 66px; z-index: 10;
	display: flex; flex-direction: column; gap: 2px; padding: 6px;
	background: #1a1a18; border: 1px solid #f5f5f32a; border-radius: 16px; transform-origin: 50% 0;
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85), 0 0 0 1px rgba(198, 255, 58, .08);
}
.rf-select__list[hidden] { display: none; }
.rf-opt {
	display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border-radius: 11px; border: 0;
	background: transparent; color: #f5f5f3; text-align: left; cursor: pointer; font-family: 'Geist', sans-serif;
}
.rf-opt:hover, .rf-opt:focus-visible { background: rgba(198, 255, 58, .1); }
.rf-opt[aria-selected="true"] { background: rgba(198, 255, 58, .08); }
.rf-opt__mono {
	flex: none; width: 34px; height: 34px; border-radius: 10px; background: #262624; color: #c9c9c4;
	display: flex; align-items: center; justify-content: center; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500;
}
.rf-opt[aria-selected="true"] .rf-opt__mono { background: #c6ff3a; color: #0b0b0b; }
.rf-opt__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-opt__label { font-weight: 600; font-size: 15px; }
.rf-opt__quip { font-size: 12px; color: #8f8f8a; }
.rf-opt__dot {
	flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(245, 245, 243, .2);
	color: #0b0b0b; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.rf-opt[aria-selected="true"] .rf-opt__dot { border-color: #c6ff3a; background: #c6ff3a; }
.rf-opt[aria-selected="true"] .rf-opt__dot::after { content: '✓'; }
.rf-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; }

/* Checkboxes (CF7 acceptance) — drawn, not native, so Safari doesn't rescale them */
.rf-checks { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.rf-checks .wpcf7-list-item { display: block; margin: 0; }
.rf-checks label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.45; color: #c9c9c4; }
.rf-checks input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: -1px 0 0; border-radius: 7px;
	border: 1.5px solid rgba(245, 245, 243, .3); background: transparent center/14px 14px no-repeat; cursor: pointer; transition: all .2s;
}
.rf-checks input[type="checkbox"]:checked {
	border-color: #c6ff3a; background-color: #c6ff3a; box-shadow: 0 0 12px rgba(198, 255, 58, .45);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.rf-checks input[type="checkbox"]:focus-visible { outline: 2px solid #c6ff3a; outline-offset: 3px; }
.rf-checks a { color: #c6ff3a; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.rf-checks a:hover { opacity: 1; text-decoration-thickness: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Submit row */
.rf-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.rf-done { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .14em; color: #8f8f8a; }
.rf-send {
	display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 99px; border: 0;
	background: #262624; color: #8f8f8a; font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px; cursor: pointer;
	transition: background .3s, color .3s, box-shadow .3s;
}
.rf-form.is-ready .rf-send { background: #c6ff3a; color: #0b0b0b; box-shadow: 0 0 50px -10px rgba(198, 255, 58, .6); }
.rf-send:disabled { cursor: not-allowed; }
.rf-submit .wpcf7-spinner { display: none; }

/* CF7 feedback */
.rf-form .wpcf7-not-valid { border-color: #ff4d3a; }
.rf-form .wpcf7-not-valid-tip { display: block; margin: 6px 2px 0; font-size: 12px; color: #ff4d3a; }
.rf-cf7 .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border: 1px solid #f5f5f333 !important; border-radius: 12px; font-size: 14px; color: #c9c9c4; }
.rf-cf7.invalid .wpcf7-response-output,
.rf-cf7.unaccepted .wpcf7-response-output,
.rf-cf7.failed .wpcf7-response-output,
.rf-cf7.aborted .wpcf7-response-output,
.rf-cf7.spam .wpcf7-response-output { border-color: #ff4d3a !important; }
.rf-cf7.sent .wpcf7-response-output { border-color: #c6ff3a !important; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Thank-you state */
.rf-sent { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 20px clamp(20px, 2.6vw, 32px) 40px; }
.rf-sent[hidden] { display: none; }
.rf-sent__tick { width: 56px; height: 56px; border-radius: 50%; background: #c6ff3a; color: #0b0b0b; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; box-shadow: 0 0 40px rgba(198, 255, 58, .5); }
.rf-sent__eyebrow { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .16em; color: #c6ff3a; }
.rf-sent h3 { margin: 0; font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.05em; line-height: .95; }
.rf-sent p { margin: 0; max-width: 400px; font-size: 17px; line-height: 1.55; color: #c9c9c4; }
.rf-sent__social { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; margin-top: 4px; border-top: 1px solid #f5f5f314; width: 100%; max-width: 400px; }
.rf-sent__social > span { font-size: 15px; color: #f5f5f3; }
.rf-sent__social > div { display: flex; gap: 10px; flex-wrap: wrap; }
.rf-sent__social a { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 99px; border: 1px solid #f5f5f333; color: #f5f5f3; text-decoration: none; font-size: 14px; font-weight: 500; }
.rf-sent__social a:hover { border-color: #c6ff3a; color: #c6ff3a; opacity: 1; }
.rf-sent__done { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 99px; border: 0; background: #c6ff3a; color: #0b0b0b; font-family: 'Geist', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; }

@media (max-width: 959px) {
	.rf-modal { padding: 0; }
	.rf-modal__panel { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 0; }
	.rf-gauge { padding: 14px 20px; flex-direction: row; align-items: center; border-right: 0; }
	.rf-gauge__dial { width: 84px; }
	.rf-gauge__num { font-size: 22px; }
}

/* ---------- Fallback page (index.php) ---------- */
.rf-prose a { color: #c6ff3a; }
.rf-prose img { max-width: 100%; height: auto; }

/* ---------- Cookie consent (CookieYes / cookie-law-info, legacy UI) ----------
   Compact dark card, bottom-left. The plugin writes inline colours, so the
   brand overrides need !important. The plugin itself is never edited. */
#cookie-law-info-bar {
	left: 16px !important; right: auto !important; bottom: 16px !important; top: auto !important;
	width: min(340px, calc(100vw - 32px)) !important; max-width: none !important;
	margin: 0 !important; padding: 16px 16px 14px !important; transform: none !important;
	background: rgba(20, 20, 19, .96) !important; color: #c9c9c4 !important;
	border: 1px solid rgba(245, 245, 243, .12) !important; border-radius: 16px !important;
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 40px -20px rgba(198, 255, 58, .35) !important;
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	font-family: 'Geist', sans-serif !important; font-size: 13px !important; line-height: 1.5 !important;
	text-align: left !important; z-index: 9999 !important; box-sizing: border-box !important;
}
#cookie-law-info-bar > span { display: block; }
#cookie-law-info-bar .cli-bar-container { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }
#cookie-law-info-bar .cli-bar-message { width: 100% !important; margin: 0 !important; padding: 0 !important; color: #c9c9c4 !important; font-size: 13px !important; line-height: 1.5 !important; text-align: left !important; }
#cookie-law-info-bar .cli-bar-message::before {
	content: 'COOKIES'; display: block; margin-bottom: 6px;
	font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .16em; color: #c6ff3a;
}
#cookie-law-info-bar .cli-bar-btn_container { display: flex !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; justify-content: flex-start !important; }
#cookie-law-info-bar .cli-plugin-button {
	flex: 1 1 0; display: inline-flex !important; align-items: center; justify-content: center;
	height: 38px; margin: 0 !important; padding: 0 14px !important; border-radius: 99px !important; border: 0 !important;
	font-family: 'Geist', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
	text-decoration: none !important; white-space: nowrap; cursor: pointer; opacity: 1 !important; transition: box-shadow .2s, background .2s, color .2s;
}
#cookie-law-info-bar .cli_settings_button { background: transparent !important; color: #f5f5f3 !important; box-shadow: inset 0 0 0 1px rgba(245, 245, 243, .25) !important; }
#cookie-law-info-bar .cli_settings_button:hover { color: #c6ff3a !important; box-shadow: inset 0 0 0 1px #c6ff3a !important; }
#cookie-law-info-bar .wt-cli-accept-all-btn,
#cookie-law-info-bar .cookie_action_close_header { background: #c6ff3a !important; color: #0b0b0b !important; box-shadow: 0 0 24px -8px rgba(198, 255, 58, .7) !important; }
#cookie-law-info-bar .wt-cli-accept-all-btn:hover { box-shadow: 0 0 30px -4px rgba(198, 255, 58, .9) !important; }

#cookie-law-info-again {
	left: 16px !important; right: auto !important; bottom: 16px !important;
	padding: 8px 14px !important; border-radius: 99px !important; border: 1px solid rgba(245, 245, 243, .14) !important;
	background: rgba(20, 20, 19, .92) !important; color: #c9c9c4 !important; box-shadow: none !important;
	font-family: 'Geist Mono', monospace !important; font-size: 10px !important; letter-spacing: .14em; text-transform: uppercase;
}
#cookie-law-info-again:hover { color: #c6ff3a !important; border-color: #c6ff3a !important; }

/* Settings modal */
#cliSettingsPopup .cli-modal-dialog { max-width: 620px; }
#cliSettingsPopup .cli-modal-content {
	background: #0f0f0e !important; color: #c9c9c4 !important; border: 1px solid #f5f5f31f !important; border-radius: 20px !important;
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(198, 255, 58, .3) !important; font-family: 'Geist', sans-serif !important;
}
#cliSettingsPopup .cli-modal-close svg { fill: #f5f5f3; }
#cliSettingsPopup .cli-modal-close:hover svg { fill: #c6ff3a; }
#cliSettingsPopup h4 { color: #f5f5f3 !important; font-family: 'Geist', sans-serif !important; font-weight: 700 !important; letter-spacing: -.02em; }
#cliSettingsPopup .cli-privacy-content-text,
#cliSettingsPopup .wt-cli-cookie-description,
#cliSettingsPopup .cli-tab-content { color: #c9c9c4 !important; font-size: 13px !important; }
#cliSettingsPopup .cli-privacy-readmore { color: #c6ff3a !important; }
#cliSettingsPopup .cli-tab-section { background: transparent !important; }
#cliSettingsPopup .cli-tab-header { background: #161615 !important; border: 1px solid rgba(245, 245, 243, .1) !important; border-radius: 12px !important; color: #f5f5f3 !important; }
#cliSettingsPopup .cli-tab-header a.cli-nav-link { color: #f5f5f3 !important; font-weight: 600; }
#cliSettingsPopup .cli-necessary-caption { color: #c6ff3a !important; font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
#cliSettingsPopup .cli-switch .cli-slider { background: #3a3a37 !important; }
#cliSettingsPopup .cli-switch input:checked + .cli-slider { background: #c6ff3a !important; }
#cliSettingsPopup .cli-switch input:checked + .cli-slider::before { background: #0b0b0b !important; }
#cliSettingsPopup .cli-switch .cli-slider::after { color: #8f8f8a !important; }
#cliSettingsPopup table.cookielawinfo-winter,
#cliSettingsPopup table.cookielawinfo-winter th,
#cliSettingsPopup table.cookielawinfo-winter td { background: transparent !important; color: #c9c9c4 !important; border-color: rgba(245, 245, 243, .1) !important; }
#cliSettingsPopup table.cookielawinfo-winter thead th { color: #f5f5f3 !important; }
#cliSettingsPopup .cli-modal-footer,
#cliSettingsPopup .cli-tab-footer { background: #0f0f0e !important; border-top: 1px solid rgba(245, 245, 243, .08) !important; }
#cliSettingsPopup .wt-cli-privacy-accept-btn,
#cliSettingsPopup .cli-btn {
	background: #c6ff3a !important; color: #0b0b0b !important; border: 0 !important; border-radius: 99px !important;
	font-family: 'Geist', sans-serif !important; font-weight: 600 !important; padding: 11px 22px !important;
}
.cli-modal-backdrop { background: rgba(5, 5, 5, .74) !important; }

/* Keep the custom cursor above the cookie layers (they sit at z-index 9999+). */
[data-a="trail"] { z-index: 100000 !important; }
[data-a="cDot"], [data-a="cRing"] { z-index: 100001 !important; }

@media (max-width: 480px) {
	#cookie-law-info-bar { left: 12px !important; bottom: 12px !important; width: calc(100vw - 24px) !important; }
}

/* ---------- 404 ---------- */
.e404-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); background: rgba(11, 11, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.e404-pill { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: #c6ff3a; color: #0b0b0b; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 0 30px -8px rgba(198, 255, 58, .6); }
.e404-pill:hover { opacity: 1; box-shadow: 0 0 40px -6px rgba(198, 255, 58, .85); }
.e404 { position: relative; z-index: 10; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: 120px clamp(24px, 5vw, 80px) 80px; max-width: 1440px; margin: 0 auto; }
.e404__copy { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
.e404__eyebrow { display: flex; align-items: center; gap: 10px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .16em; color: #ff4d3a; }
.e404__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3a; box-shadow: 0 0 12px #ff4d3a; animation: e404-blink 1.2s steps(2, jump-none) infinite; }
@keyframes e404-blink { 50% { opacity: .2; } }
.e404__num { margin: 0; font-weight: 800; font-size: clamp(110px, 15vw, 240px); line-height: .78; letter-spacing: -.08em; color: #c6ff3a; }
.e404__num span { display: inline-block; color: transparent; -webkit-text-stroke: 2px #c6ff3a; }
.e404__title { margin: 8px 0 0; font-weight: 600; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.04em; color: #f5f5f3; text-wrap: balance; }
.e404__title span { color: #ff4d3a; }
.e404__lede { margin: 0; font-size: 17px; line-height: 1.55; color: #c9c9c4; text-wrap: pretty; }
.e404__lede code { font-family: 'Geist Mono', monospace; font-size: .85em; padding: 2px 8px; border-radius: 6px; background: #1a1a18; border: 1px solid rgba(245, 245, 243, .1); color: #f5f5f3; word-break: break-all; }
.e404__checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(245, 245, 243, .1); }
.e404__checks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(245, 245, 243, .1); font-size: 15px; color: #f5f5f3; }
.e404__box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #ff4d3a; color: #ff4d3a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.e404__state { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .14em; color: #ff4d3a; }
.e404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.e404__btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 16px; color: #f5f5f3; box-shadow: inset 0 0 0 1px rgba(245, 245, 243, .25); white-space: nowrap; }
.e404__btn:hover { opacity: 1; color: #c6ff3a; box-shadow: inset 0 0 0 1px #c6ff3a; }
.e404__btn--main { background: #c6ff3a; color: #0b0b0b; box-shadow: 0 0 50px -10px rgba(198, 255, 58, .6); }
.e404__btn--main:hover { color: #0b0b0b; box-shadow: 0 0 60px -6px rgba(198, 255, 58, .85); }
.e404__small { margin: 4px 0 0; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .08em; line-height: 1.6; color: #8f8f8a; }

.e404__stage { perspective: 1800px; display: flex; justify-content: center; }
.e404__tilt { width: min(100%, 560px); transform-style: preserve-3d; }
.e404__card {
	position: relative; aspect-ratio: 1.586 / 1; container-type: inline-size; border-radius: 4.6% / 7.3%; overflow: hidden;
	background: #f5f5f3; color: #0b0b0b; padding: 5.6cqw; display: flex; flex-direction: column; justify-content: space-between;
	box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 245, 243, .12), 0 0 90px -20px rgba(255, 77, 58, .35);
}
.e404__row { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.e404__mono { font-family: 'Geist Mono', monospace; font-size: max(9px, 2cqw); letter-spacing: .14em; }
.e404__rec { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #ff4d3a; }
.e404__main { position: relative; display: flex; align-items: center; }
.e404__declined { font-weight: 800; font-size: 14cqw; line-height: .85; letter-spacing: -.07em; }
.e404__declined span { color: #ff4d3a; }
.e404__stamp { position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(-9deg); font-family: 'Geist Mono', monospace; font-size: max(9px, 2.1cqw); letter-spacing: .16em; line-height: 1.4; text-align: center; padding: 1.2cqw 2cqw; border: .45cqw solid #ff4d3a; color: #ff4d3a; border-radius: 1.2cqw; background: #f5f5f3; }
.e404__foot { display: flex; flex-direction: column; gap: 1.8cqw; }
.e404__rule { border-top: .35cqw dashed #0b0b0b40; }
.e404__url { font-weight: 700; font-size: 4cqw; letter-spacing: -.04em; max-width: 34cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e404__keep { flex: none; font-family: 'Geist Mono', monospace; font-size: max(9px, 2cqw); letter-spacing: .12em; padding: 1.2cqw 2.2cqw; border-radius: 99px; background: #0b0b0b; color: #c6ff3a; }
.e404-foot { position: relative; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px clamp(16px, 3vw, 40px); border-top: 1px solid #f5f5f322; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .14em; color: #8f8f8a; background: #0b0b0b; }
.e404-foot a { color: #c6ff3a; text-decoration: none; }

@media (max-width: 959px) {
	.e404 { grid-template-columns: minmax(0, 1fr); padding: 100px 20px 56px; gap: 40px; }
	.e404__stage { order: -1; }
	.e404__tilt { width: min(100%, 420px); }
	.e404__num { font-size: clamp(96px, 30vw, 160px); }
}

/* ---------- Header: logo + "Visit main website" ---------- */
.rf-brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #8f8f8a; }
.rf-brand:hover { opacity: 1; }
.rf-brand__visit {
	display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: 99px;
	border: 1px solid rgba(245, 245, 243, .16); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .14em;
	text-transform: uppercase; white-space: nowrap; color: #c9c9c4; transition: color .2s, border-color .2s, background .2s;
}
.rf-brand__arrow { font-family: 'Geist', sans-serif; font-size: 13px; line-height: 1; color: #c6ff3a; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.rf-brand:hover .rf-brand__visit, .rf-brand:focus-visible .rf-brand__visit { color: #c6ff3a; border-color: rgba(198, 255, 58, .55); background: rgba(198, 255, 58, .06); }
.rf-brand:hover .rf-brand__arrow { transform: translate(2px, -2px); }
@media (max-width: 1100px) {
	/* Keep the chapter nav room on tablets / phones: arrow-only button. */
	.rf-brand { gap: 8px; }
	.rf-brand__text { display: none; }
	.rf-brand__visit { width: 26px; height: 26px; padding: 0; justify-content: center; }
}
@media (max-width: 400px) {
	.rf-brand img { height: 28px !important; }
}
@media (max-width: 600px) {
	/* Too narrow for the chapter links: keep the flex spacer, hide the links. */
	.rf-chapnav > div { display: none !important; }
}

/* Inline text links (e.g. "our website") */
.rf-inline-link { color: #c6ff3a; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; transition: text-decoration-thickness .2s; }
.rf-inline-link span[aria-hidden] { display: inline-block; margin-left: 2px; font-size: .85em; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.rf-inline-link:hover { opacity: 1; text-decoration-thickness: 2px; }
.rf-inline-link:hover span[aria-hidden] { transform: translate(2px, -2px); }
