/* ==========================================================================
   FLO — W · scandinavian functional redesign
   Oyfora palette · midnight navy · violet accent · liquid glass
   Inspired by Polestar / Volvo / Dieter Rams and index-style portfolios.
   Content-configured inline colors are neutralized into this palette.
   ========================================================================== */

:root {
	/* from oyfora-app/tailwind.config.ts: ci_darkblue + ci_purple */
	--paper: #080e21;
	--paper-raised: #141c33;
	--ink: #f4f5f8;
	--ink-soft: #b9bdc9;
	--ink-dim: #8a8f9c;
	--rule: rgba(255, 255, 255, 0.08);
	--rule-strong: rgba(255, 255, 255, 0.28);
	--accent: #9f7dfd;
	--accent-strong: #6f3bfc;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pad: clamp(20px, 4vw, 56px);
}

/* ---------- base ------------------------------------------------------- */

html { scroll-behavior: smooth; background: var(--paper); }

body {
	background: var(--paper) !important;
	color: var(--ink-soft);
	font-family: "Inter", -apple-system, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

::selection { background: var(--ink); color: var(--paper); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #27314a; border-radius: 5px; }

/* keep functional underlines out of navigation lists */
.uk-navbar-nav a, .uk-nav a { background-image: none !important; }

/* neutralize content-configured inline colors */
[style*="background-color"] { background-color: transparent !important; }
.uk-section [style*="color"],
.uk-container [style*="color"],
footer [style*="color"],
.uk-offcanvas-bar [style*="color"] { color: var(--ink-soft) !important; }
[style*="box-shadow"] { box-shadow: none !important; }

h1, h2, h3, h4, h5, h6 {
	font-family: "Archivo", "Inter", sans-serif !important;
	color: var(--ink) !important;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

strong { color: var(--ink); font-weight: 600; }
hr { border-color: var(--rule) !important; }

.roboto, .open-sans { font-family: "Inter", sans-serif !important; }
h1.roboto, h2.roboto, h3.roboto, h4.roboto { font-family: "Archivo", sans-serif !important; }

/* the shared uppercase micro-label */
.mj-label, footer.ft-001 h4 {
	font-family: "Inter", sans-serif !important;
	font-size: 0.7rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim) !important;
}

/* ---------- type scale -------------------------------------------------- */

.f1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.f2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.12; }
.f3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.f4 { font-size: clamp(1.02rem, 1.6vw, 1.15rem); }
.f5 { font-size: 1rem; }
.lh-copy { line-height: 1.72; }
.measure { max-width: 36em; }

.typo-style-1 p, .typo-style-1 li { line-height: 1.72; }
.typo-style-1 h1, .typo-style-1 h2 {
	margin-top: 2em; margin-bottom: 0.6em;
	padding-top: 0.9em;
	border-top: 1px solid var(--rule);
}
.typo-style-1 h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.typo-style-1 h2 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.typo-style-1 ul { padding-left: 1.05em; }
.typo-style-1 li { margin-bottom: 0.5em; }
.typo-style-1 li::marker { color: var(--accent); }

blockquote, .blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 1.2em;
	color: var(--ink);
}

/* ---------- links ------------------------------------------------------- */

a { color: var(--ink); transition: color 0.25s var(--ease); }
a:hover { color: var(--accent); text-decoration: none; }

.typo-style-1 a:not(.uk-position-cover), p a, li a, .uk-button-text {
	color: var(--ink) !important;
	background-image: linear-gradient(var(--accent), var(--accent));
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: color 0.25s;
	padding-bottom: 1px;
}
.typo-style-1 a:not(.uk-position-cover):hover, p a:hover, li a:hover,
.uk-button-text:hover { color: var(--accent) !important; }

.uk-icon-button {
	background: transparent;
	border: 1px solid var(--rule);
	color: var(--ink) !important;
	transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.uk-icon-button:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- navigation -------------------------------------------------- */

.nv-001-container {
	background: rgba(8, 14, 33, 0.66) !important;
	-webkit-backdrop-filter: blur(36px) saturate(120%);
	backdrop-filter: blur(36px) saturate(120%);
	border-bottom: 1px solid var(--rule);
}
.nv-001 .uk-navbar { min-height: 64px; }
.nv-001 .uk-logo svg, .nv-001 .uk-logo img { height: 30px; width: auto; filter: none; }

.nv-001 .uk-navbar-nav a {
	color: var(--ink) !important;
	font-family: "Inter", sans-serif !important;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: color 0.25s var(--ease);
}
.nv-001 .uk-navbar-nav a .mj-idx { color: var(--ink-dim); margin-right: 0.5em; font-weight: 500; }
.nv-001 .uk-navbar-nav a:hover { color: var(--accent) !important; }
.nv-001 .uk-navbar-nav a:hover .mj-idx { color: var(--accent); }
.nv-001 .uk-navbar-toggle { color: var(--ink) !important; }

/* ---------- statement hero (tl-012) ------------------------------------- */

.tl-012 {
	padding-top: clamp(4rem, 12vh, 8rem) !important;
	padding-bottom: clamp(2.5rem, 7vh, 5rem) !important;
	border-bottom: 1px solid var(--rule);
}
.tl-012 .uk-container { position: relative; }
.tl-012 h2 {
	font-size: clamp(2.3rem, 6.2vw, 5rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.03em;
	font-weight: 600;
	max-width: none;
	margin: 0 !important;
	color: var(--ink) !important;
	overflow-wrap: break-word;
}
.tl-012 .hero-sub {
	margin: 1.6rem 0 0;
	max-width: none;
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	line-height: 1.65;
	color: var(--ink-soft);
}

/* the small index marker injected by modern.js */
.tl-012 .mj-hero-label { display: block; margin-bottom: 2.2rem; }
.tl-012 .mj-hero-label::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	background: var(--accent);
	margin-right: 10px;
}

/* ---------- images ------------------------------------------------------ */

.uk-inline-clip {
	border: 1px solid var(--rule);
	background: var(--paper-raised);
	overflow: hidden;
}
.uk-inline-clip img { transition: transform 0.9s var(--ease); display: block; width: 100%; }
.uk-inline-clip:hover img { transform: scale(1.02); }
.im-003 img, .im-004 img { border: 1px solid var(--rule); }

.uk-inline-clip .uk-position-cover[class*="uk-transition"] {
	background: rgba(8, 14, 33, 0.56) !important;
}
.uk-inline-clip .uk-position-cover [uk-icon] { color: #fff !important; }

/* ---------- work index (pj-001 rebuilt as list) ------------------------- */

.pj-index { border-top: 1px solid var(--rule-strong); }

.pj-head {
	display: grid;
	grid-template-columns: 3.4rem 84px minmax(0, 1fr) 170px 130px 90px 26px;
	gap: 1.2rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--rule);
}
.pj-head span {
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
}

.pj-cell {
	font-size: 0.85rem;
	color: var(--ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pj-arrowcell { text-align: right; }
.pj-m-meta { display: none; }

.pj-row {
	display: grid;
	grid-template-columns: 3.4rem 84px minmax(0, 1fr) 170px 130px 90px 26px;
	align-items: center;
	gap: 1.2rem;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--rule);
	position: relative;
	text-decoration: none;
	transition: padding-left 0.35s var(--ease);
}
.pj-row:hover { padding-left: 0.8rem; }

.pj-row .pj-cover {
	width: 84px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}
.pj-row .pj-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s var(--ease);
}
.pj-row:hover .pj-cover img { transform: scale(1.06); }

.pj-row .pj-num {
	font-family: "Inter", sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--ink-dim);
	transition: color 0.3s;
}
.pj-row:hover .pj-num { color: var(--accent); }

.pj-row .pj-title {
	font-family: "Archivo", sans-serif;
	font-size: clamp(1.3rem, 2.6vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
	line-height: 1.15;
	transition: color 0.3s;
}
.pj-row:hover .pj-title { color: var(--accent); }

.pj-row .pj-meta {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-dim);
	white-space: nowrap;
}
.pj-row .pj-arrow {
	display: inline-block;
	color: var(--ink);
	transition: transform 0.35s var(--ease), color 0.3s;
}
.pj-row:hover .pj-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* floating hover preview */
.pj-preview {
	position: fixed;
	z-index: 60;
	width: min(380px, 30vw);
	aspect-ratio: 16 / 10;
	pointer-events: none;
	overflow: hidden;
	border: 1px solid var(--rule-strong);
	background: var(--paper-raised);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.pj-preview.on { opacity: 1; transform: none; }
.pj-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* mobile: stacked entries with visible thumbs */
@media (max-width: 900px) {
	.pj-preview { display: none; }
	.pj-head { display: none; }
	.pj-row {
		grid-template-columns: 1fr auto;
		grid-template-rows: auto;
		gap: 0.35rem 1rem;
		align-items: baseline;
	}
	.pj-row .pj-num,
	.pj-row .pj-cover,
	.pj-cell { display: none; }
	.pj-row .pj-title { grid-column: 1; }
	.pj-arrowcell { grid-column: 2; grid-row: 1; }
	.pj-m-meta {
		display: block;
		grid-column: 1 / -1;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--ink-dim);
	}
	.pj-mobile-thumb {
		display: block;
		grid-column: 1 / -1;
		width: 100%;
		border: 1px solid var(--rule);
		margin-top: 0.6rem;
	}
	.pj-mobile-thumb img { width: 100%; display: block; }
}
@media (min-width: 901px) {
	.pj-mobile-thumb { display: none; }
}

/* ---------- companies / employer table ---------------------------------- */

.tm-001 [uk-grid] { border-top: 1px solid var(--rule-strong); }
.tm-001 [uk-grid] > div {
	border-bottom: 1px solid var(--rule);
	padding-top: 2rem;
	padding-bottom: 2rem;
}
.tm-001 img {
	background: var(--paper-raised);
	border-radius: 12px;
	padding: 12px 16px;
	box-sizing: content-box;
	max-height: 52px;
	width: auto;
}
/* opaque logos keep their own card, framed by a hairline */
.tm-001 img[src*="oyfora"],
.tm-001 img[src$=".jpg" i], .tm-001 img[src$=".jpeg" i] {
	background: transparent;
	padding: 0;
	border: 1px solid var(--rule);
}
.tm-001 h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important; margin-top: 1.1rem !important; }
.tm-001 p { color: var(--ink-dim) !important; font-size: 1rem !important; }

/* ---------- case-study header (project-title rebuilt) ------------------- */

.cs-head { padding: clamp(3.5rem, 10vh, 6.5rem) 0 0; }
.cs-head .mj-label { margin-bottom: 1.6rem; display: block; }
.cs-head h1.cs-title {
	font-size: clamp(2.3rem, 5.6vw, 4.5rem) !important;
	line-height: 1.03 !important;
	letter-spacing: -0.03em;
	font-weight: 600;
	max-width: 20ch;
	margin: 0 0 1.2rem !important;
}
.cs-head .cs-sub { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--ink-soft); max-width: 46em; }

/* meta pill bar */
.cs-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 2.4rem 0 0;
	border: 1px solid var(--rule-strong);
	background: var(--paper-raised);
}
.cs-meta > div {
	flex: 1 1 auto;
	min-width: 140px;
	padding: 0.9rem 1.2rem;
	border-right: 1px solid var(--rule);
}
.cs-meta > div:last-child { border-right: 0; }
.cs-meta dt {
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin-bottom: 0.25rem;
}
.cs-meta dd { margin: 0; font-size: 0.92rem; color: var(--ink); }
.cs-meta dd p { margin: 0; }
.cs-meta dd a { color: var(--ink) !important; }
.cs-meta dd a:hover { color: var(--accent) !important; }

.cs-desc { margin-top: clamp(2.5rem, 7vh, 4.5rem); }

/* ---------- section rhythm ---------------------------------------------- */

.uk-section-large { padding-top: clamp(3.5rem, 9vh, 7rem); padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.uk-section-small { padding-top: clamp(2rem, 5vh, 3.5rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.pj-001.uk-section { padding-top: clamp(1.5rem, 4vh, 2.5rem) !important; }

.divider-panel hr { border-color: var(--rule) !important; margin: 0; }

/* ---------- footer (rebuilt) -------------------------------------------- */

footer.ft-001 { border-top: 1px solid var(--rule-strong); margin-top: clamp(3rem, 9vh, 6rem); display: block; }
footer.ft-001 > .uk-section { background: transparent !important; padding-bottom: 1rem !important; }

footer.ft-001 .measure {
	font-family: "Archivo", sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.3;
	color: var(--ink);
	letter-spacing: -0.015em;
}
footer.ft-001 .uk-button-text { font-size: 1rem !important; }
footer.ft-001 .typo-style-4 { color: var(--ink-dim) !important; font-size: 0.8rem; }

/* ---------- offcanvas --------------------------------------------------- */

.uk-offcanvas-bar {
	background: var(--paper) !important;
	border-left: 1px solid var(--rule);
}
.uk-offcanvas-bar .uk-nav-primary > li > a {
	font-family: "Archivo", sans-serif !important;
	font-size: clamp(1.7rem, 6vw, 2.4rem);
	font-weight: 600;
	color: var(--ink) !important;
	transition: color 0.3s, padding-left 0.3s var(--ease);
}
.uk-offcanvas-bar .uk-nav-primary > li > a:hover { color: var(--accent) !important; padding-left: 6px; opacity: 1 !important; }
.uk-offcanvas-bar .uk-nav-primary > li > a.is-active-side { color: var(--accent) !important; }
.uk-offcanvas-close { color: var(--ink) !important; }

/* ---------- preloader / transitions ------------------------------------- */

.preloader-wrapper { background: var(--paper); }
.preloader-wrapper .uk-spinner { color: var(--ink); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.2s ease both; }
::view-transition-new(root) { animation: fade-up 0.35s var(--ease) both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* opacity only: a transform here would hijack position:fixed descendants */
body { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.mj-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.mj-reveal.mj-in { opacity: 1; transform: none; }

.scroll-down-arrow { display: none; }

/* ---------- legacy fixes ------------------------------------------------ */

.uk-grid > * { min-width: 0; max-width: 100%; }
.uk-grid img, .uk-inline-clip img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.mj-reveal { opacity: 1; transform: none; }
}

/* ---------- hero background video (tl-012, home) ------------------------ */

.tl-012 { position: relative; overflow: hidden; }
.tl-012:has(.hero-video) { min-height: clamp(460px, 74vh, 760px); }
.tl-012 .uk-container { position: relative; z-index: 2; }

.hero-video {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	line-height: 0;
	background: var(--paper);
}
.hero-video .uk-cover-container { width: 100%; height: 100%; }
/* navy scrim on the text side only; the video keeps its own colour */
.hero-video::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg,
		rgba(8, 14, 33, 0.82) 0%,
		rgba(8, 14, 33, 0.60) 45%,
		rgba(8, 14, 33, 0.12) 100%);
}
@media (max-width: 959px) {
	/* stronger, top-down veil where the text overlaps more of the frame */
	.hero-video::after {
		background: linear-gradient(180deg,
			rgba(8, 14, 33, 0.56) 0%,
			rgba(8, 14, 33, 0.86) 100%);
	}
}
@media (prefers-reduced-motion: reduce) {
	/* honor reduced-motion: drop the autoplaying frame, keep the paper ground */
	.hero-video .uk-cover-container { display: none; }
}

/* ---------- animated wordmark ------------------------------------------- */

.logo-anim {
	display: inline-flex;
	align-items: center;
	font-family: "Archivo", sans-serif;
	font-weight: 650;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--ink);
	line-height: 1;
}
.logo-anim .l {
	opacity: 0;
	transform: translateY(6px);
	animation: logo-l 0.5s var(--ease) forwards;
}
.logo-anim .l:nth-child(1) { animation-delay: 0.05s; }
.logo-anim .l:nth-child(2) { animation-delay: 0.13s; }
.logo-anim .l:nth-child(3) { animation-delay: 0.21s; }
.logo-anim .l:nth-child(5) { animation-delay: 0.45s; }
@keyframes logo-l { to { opacity: 1; transform: none; } }

.logo-anim .dash {
	display: inline-block;
	width: 22px;
	height: 2px;
	margin: 0 7px;
	background: var(--ink);
	transform-origin: left center;
	transform: scaleX(0);
	animation: logo-dash 0.5s var(--ease) 0.28s forwards;
	transition: width 0.4s var(--ease), background 0.3s;
}
@keyframes logo-dash { to { transform: scaleX(1); } }

.uk-logo:hover .logo-anim .dash {
	width: 40px;
	background: var(--accent);
}
.uk-logo:hover .logo-anim { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	.logo-anim .l { opacity: 1; transform: none; animation: none; }
	.logo-anim .dash { transform: scaleX(1); animation: none; }
}

/* ---------- about portrait as a circle ---------------------------------- */

#im-002-15pd5ck.im-002 { overflow: visible; }
#im-002-15pd5ck .uk-inline-clip {
	flex: 0 0 auto !important;
	border-radius: 50%;
	width: min(400px, 100%);
	aspect-ratio: 1 / 1;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0 !important;
	border: 1px solid var(--rule);
}
#im-002-15pd5ck .uk-inline-clip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 45%;
	transform: scale(1.18);
	transform-origin: 72% 45%;
}
#im-002-15pd5ck .uk-inline-clip:hover img { transform: scale(1.22); }
@media (max-width: 639px) {
	#im-002-15pd5ck .uk-inline-clip {
		width: min(300px, calc(100vw - 48px));
		margin-left: calc((100% + 40px - min(300px, calc(100vw - 48px))) / 2); /* re-centre: the grid gutter (40px) shifts this row left */
		margin-right: 0;
	}
}

/* ---------- contact: compact card --------------------------------------- */

.tl-012:has(+ #im-004-1uwus4q) {
	padding-top: clamp(2.5rem, 7vh, 4rem) !important;
	padding-bottom: clamp(1.75rem, 4vh, 2.5rem) !important;
}
#im-004-1uwus4q.uk-section { padding-top: 48px; padding-bottom: 56px; }
#im-004-1uwus4q ~ .ft-001 { margin-top: 0; }
#im-004-1uwus4q .uk-grid {
	flex-wrap: nowrap;
	margin-left: -32px;
}
#im-004-1uwus4q .uk-grid > * {
	padding-left: 32px;
	margin-top: 0;
}
#im-004-1uwus4q .uk-grid > :first-child {
	flex: 0 0 auto;
	width: 232px;
}
#im-004-1uwus4q .uk-grid > :last-child {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}
#im-004-1uwus4q img {
	display: block;
	width: 200px;
	height: 200px;
	object-fit: cover;
	object-position: 50% 45%;
}
#im-004-1uwus4q p { margin: 0; }
@media (max-width: 639px) {
	#im-004-1uwus4q.uk-section { padding-top: 32px; padding-bottom: 40px; }
	#im-004-1uwus4q .uk-grid { margin-left: -20px; }
	#im-004-1uwus4q .uk-grid > * { padding-left: 20px; }
	#im-004-1uwus4q .uk-grid > :first-child { width: 132px; }
	#im-004-1uwus4q img { width: 112px; height: 112px; }
}

/* ---------- bottom pill navigation -------------------------------------- */

.nv-001 .uk-navbar-right { display: none !important; }

.bnav {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: 22px;
	z-index: 990;
}
.bnav-toggle, .bnav-menu {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(20, 28, 51, 0.72);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border: 1px solid var(--rule);
	border-radius: 999px;
	box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.55);
	padding: 7px 9px;
}
.bnav-toggle {
	cursor: pointer;
	font: inherit;
	padding: 7px 9px 7px 18px;
	transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bnav-toggle:hover { border-color: var(--ink); transform: translateY(-2px); }
.bnav-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin-right: 0.5rem;
}
.bnav-chip, .bnav-menu a.is-current {
	background: var(--ink);
	color: var(--paper) !important;
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.bnav-menu { display: none; }
.bnav.open .bnav-toggle { display: none; }
.bnav.open .bnav-menu {
	display: flex;
	animation: bnav-pop 0.35s var(--ease);
}
@keyframes bnav-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.94); }
	to   { opacity: 1; transform: none; }
}
.bnav-menu a {
	padding: 7px 15px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	white-space: nowrap;
	transition: color 0.25s, background 0.25s;
}
.bnav-menu a:hover { color: var(--accent); text-decoration: none; }
.bnav-close, .bnav-close-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink);
	font-size: 0.8rem;
	cursor: pointer;
	transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.bnav-close:hover, .bnav-close-top:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.bnav-close-top {
	position: fixed;
	top: 14px;
	right: clamp(20px, 4vw, 56px);
	z-index: 991;
	width: 40px;
	height: 40px;
	background: rgba(20, 28, 51, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	display: none;
}
body.bnav-open .bnav-close-top { display: flex; }

@media (max-width: 640px) {
	.bnav { bottom: 14px; max-width: calc(100vw - 20px); }
	/* one horizontal row; scrolls sideways if it doesn't fit */
	.bnav-menu {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		max-width: calc(100vw - 20px);
	}
	.bnav-menu::-webkit-scrollbar { display: none; }
	.bnav-menu a, .bnav-menu .bnav-close, .bnav-chip { flex: none; }
	/* close pinned to the left while the links scroll underneath */
	.bnav-menu .bnav-close {
		order: -1;
		position: sticky;
		left: 0;
		z-index: 1;
		background: var(--paper-raised);
		box-shadow: 6px 0 10px -6px rgba(0, 0, 0, 0.45);
	}
}

/* ---------- breadcrumb bar on subpages ---------------------------------- */

.crumbbar {
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}
.crumbbar .uk-container {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
}
.crumb-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--ink);
	flex: none;
	transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.crumb-back:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-3px); text-decoration: none; }
.crumb-link, .crumb-here, .crumb-sep {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.crumb-link { color: var(--ink-dim); }
.crumb-link:hover { color: var(--accent); text-decoration: none; }
.crumb-sep { color: var(--rule); }
.crumb-here { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* next project, right side of the bar */
.crumb-next {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-left: auto;
	padding-left: 1rem;
	flex: none;
	max-width: 55%;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink);
}
.crumb-next:hover { color: var(--accent); text-decoration: none; }
.crumb-next-label { color: var(--ink-dim); flex: none; }
.crumb-next-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-next-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--rule);
	border-radius: 50%;
	flex: none;
	letter-spacing: 0;
	transition: border-color 0.3s, transform 0.3s var(--ease);
}
.crumb-next:hover .crumb-next-arrow { border-color: var(--accent); transform: translateX(3px); }
.crumb-here { min-width: 0; }
@media (max-width: 639px) {
	.crumb-next-title, .crumb-next-word { display: none; }
}

/* ---------- "My experience" — compact two-column lists ------------------ */

/* no image: text spans the row, intro left and tags right */
#experiance .uk-grid > .uk-inline-clip { display: none; }
#experiance .uk-grid > .uk-width-expand\@m { width: 100%; flex: 1 1 100%; }
#experiance .typo-style-1.measure { max-width: none; }
#experiance .typo-style-1 h1 { margin-bottom: 0.6rem; }
#experiance .typo-style-1 h1 + p { max-width: 34em; margin-bottom: 0; }
@media (min-width: 960px) {
	#experiance .typo-style-1 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: clamp(2.5rem, 6vw, 6rem);
		align-items: start;
	}
	#experiance .typo-style-1 h1 { grid-column: 1 / -1; grid-row: 1; }
	#experiance .typo-style-1 h1 + p { grid-column: 1; grid-row: 2 / span 4; }
	#experiance .typo-style-1 > :not(h1):not(h1 + p) { grid-column: 2; }
	#experiance .typo-style-1 h2:first-of-type { margin-top: 0.35rem; }
}
#experiance .typo-style-1 h2 {
	margin: 2rem 0 0.75rem;
	padding-top: 0;
	border-top: 0;
	font-size: 0.72rem !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent) !important;
}
#experiance .typo-style-1 ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
#experiance .typo-style-1 li {
	margin: 0;
	padding: 0.3rem 0.85rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-size: 0.9rem;
	line-height: 1.5;
}
#experiance .typo-style-1 li::before, #experiance .typo-style-1 li::marker { content: none; }

/* image clips that are themselves grid cells: don't paint the gutter zone */
.uk-grid > .uk-inline-clip {
	background: transparent;
	border: 0;
}

/* ---------- employers/education: compact rows on mobile ----------------- */

@media (max-width: 640px) {
	.tm-001 [uk-grid] > div {
		padding-top: 0.8rem;
		padding-bottom: 0.8rem;
	}
	.tm-001 a {
		display: flex;
		align-items: center;
		gap: 1rem;
	}
	.tm-001 a > .uk-inline { flex: none; line-height: 0; }
	.tm-001 .uk-padding { padding: 0 !important; }
	.tm-001 img { max-height: 26px; padding: 7px 9px; }
	.tm-001 img[src*="oyfora"],
	.tm-001 img[src$=".jpg" i], .tm-001 img[src$=".jpeg" i] { max-height: 40px; padding: 0; }
	.tm-001 h3 { font-size: 0.95rem !important; margin: 0 0 0.1rem !important; }
	.tm-001 p { font-size: 0.8rem !important; margin: 0 !important; }
}

/* ---------- oyfora layer ------------------------------------------------ */

::selection { background: var(--accent-strong); color: #fff; }

/* hero: the video plays uncoloured; pages without one get the violet glow */
.tl-012 { border-bottom: 1px solid var(--rule); }
.tl-012:not(:has(.hero-video)) {
	background-image: radial-gradient(90% 130% at 85% 0%, rgba(111, 59, 252, 0.38), transparent 62%);
}
.tl-012 h2[style*="color"], .tl-012 h2 { color: var(--ink) !important; }
.tl-012:has(.hero-video) .hero-sub { max-width: 36em; color: var(--ink); }
.tl-012:has(.hero-video) h2 { text-shadow: 0 2px 24px rgba(8, 14, 33, 0.6); }

.mj-label, .pj-head span, .pj-row .pj-num { color: var(--accent) !important; }
.nv-001 .uk-navbar-nav a .mj-idx { color: var(--accent); }

/* rounded surfaces, as in the app */
.pj-row .pj-cover { border-radius: 8px; }
.uk-inline-clip { border-radius: 16px; }
.im-003 img, .im-004 img { border-radius: 16px; }

/* current-section chip: white on ci_purple-100 */
.bnav-chip, .bnav-menu a.is-current { background: var(--accent-strong); color: #fff !important; }

/* liquid glass on the floating nav */
.bnav-toggle, .bnav-menu {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 28, 51, 0.72);
	-webkit-backdrop-filter: blur(36px) saturate(120%);
	backdrop-filter: blur(36px) saturate(120%);
	border: 1.5px solid var(--rule);
}

footer.ft-001 {
	border-top: 1px solid var(--rule);
	background-image: radial-gradient(80% 120% at 15% 100%, rgba(111, 59, 252, 0.30), transparent 65%);
}
