@charset "utf-8";

/* =========================================================================
   Fonts: same family as the original site, with a few more weights
   ========================================================================= */
@font-face {
	font-family: "Euclid Circular B";
	src: url("../fonts/EuclidCircularB-Light-WebS.woff2") format("woff2");
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "Euclid Circular B";
	src: url("../fonts/EuclidCircularB-Regular-WebS.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Euclid Circular B";
	src: url("../fonts/EuclidCircularB-Medium-WebS.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Euclid Circular B";
	src: url("../fonts/EuclidCircularB-Semibold-WebS.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

/* =========================================================================
   Tokens
   ========================================================================= */
:root {
	--ink: #0b0b10;
	--ink-2: rgba(11, 11, 16, 0.66);
	--ink-3: rgba(11, 11, 16, 0.46);
	--hairline: rgba(11, 11, 16, 0.08);
	--paper: #ffffff;

	/* Colours sampled from the hero gradient blob */
	--blue: #3d7fd6;
	--magenta: #b84f9e;
	--red: #e0261b;
	--orange: #f07b1e;
	--grad: linear-gradient(100deg, var(--blue), var(--magenta) 40%, var(--red) 72%, var(--orange));

	--mls-red: #e20000;
	--at-red: #c8102e;
	--emboss-ink: #2f2a5e;

	/* Glass material */
	--glass-top: rgba(255, 255, 255, 0.60);
	--glass-bottom: rgba(255, 255, 255, 0.36);
	--glass-blur: 26px;
	--glass-sat: 180%;
	--glass-shadow:
		0 1px 2px rgba(24, 20, 48, 0.06),
		0 22px 60px -22px rgba(24, 20, 48, 0.30);

	--radius-tile: 30px;
	--radius-inner: 18px;
	--gap: 20px;
	--page: 1200px;

	--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Scroll state, written by glass.js */
	--p: 0;
	--h: 0;
}

/* =========================================================================
   Base
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	font-family: "Euclid Circular B", system-ui, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	overflow-x: clip;
}

h1,
h2,
h3,
.hero__tagline,
.tile__subtitle {
	text-wrap: balance;
}

h1,
h2,
h3 {
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 8px;
}

img {
	display: block;
	max-width: 100%;
}

b,
strong {
	font-weight: 600;
}

.muted {
	color: var(--ink-2);
}

.nowrap {
	white-space: nowrap;
}

/* =========================================================================
   Ambient light: the original gradient blob, now behind the whole page.
   Blob A is the hero exactly as before; B and C fade in after the hero and
   drift with scroll so every tile has colour behind it to refract.
   ========================================================================= */
@keyframes hue_rotate {
	from {
		filter: hue-rotate(0deg);
	}

	50% {
		filter: hue-rotate(-170deg);
	}

	to {
		filter: hue-rotate(0deg);
	}
}

.ambient {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.blob {
	/* square box that always contains the whole image, so rotating it never
	   clips the coloured part on portrait screens */
	--s: max(120vw, 150vh);
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--s);
	height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	background: url("../img/homepage/Gradient_4k.jpg") center / contain no-repeat;
	mix-blend-mode: multiply;
	animation: hue_rotate 10s infinite linear;
	will-change: filter, transform;
}

/* All blobs share one hue phase so the palette stays coherent, as in the original */
.blob--a {
	opacity: calc(1 - var(--h) * 0.45);
	transform: translate3d(calc(var(--p) * -6vw), calc(var(--h) * 6vh), 0) scale(calc(1 - var(--h) * 0.2));
}

.blob--b {
	opacity: calc(var(--h) * 0.55);
	transform: translate3d(42vw, calc(-30vh + var(--p) * 55vh), 0) rotate(180deg) scale(0.55);
}

.blob--c {
	opacity: calc(var(--h) * 0.5);
	transform: translate3d(-42vw, calc(32vh - var(--p) * 55vh), 0) rotate(90deg) scale(0.5);
}

/* =========================================================================
   Glass material
   Regular (tiles): frosted, readable. Clear (controls): thin, lensing.
   Smoke: tinted dark variant.
   ::before draws the refracting rim, ::after the pointer-following sheen.
   ========================================================================= */
.glass {
	position: relative;
	isolation: isolate;
	background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
	backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 1px rgba(255, 255, 255, 0.30),
		var(--glass-shadow);
}

.glass::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: 1.25px;
	background: linear-gradient(135deg,
			rgba(255, 255, 255, 0.95) 0%,
			rgba(255, 255, 255, 0.20) 35%,
			rgba(255, 255, 255, 0.04) 60%,
			rgba(255, 255, 255, 0.65) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.glass::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%),
			rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
	opacity: 0.5;
	transition: opacity 0.5s var(--ease-out);
	pointer-events: none;
}

.glass.lit::after {
	opacity: 1;
}

.glass--clear {
	--glass-top: rgba(255, 255, 255, 0.34);
	--glass-bottom: rgba(255, 255, 255, 0.14);
	--glass-blur: 6px;
	--glass-sat: 160%;
	--glass-shadow:
		0 1px 1px rgba(24, 20, 48, 0.05),
		0 10px 28px -12px rgba(24, 20, 48, 0.28);
}

.glass--clear::after {
	background: radial-gradient(160px circle at var(--mx, 30%) var(--my, -30%),
			rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 65%);
}

.glass--smoke {
	--glass-top: rgba(20, 18, 26, 0.80);
	--glass-bottom: rgba(14, 12, 18, 0.70);
	--glass-sat: 140%;
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		inset 0 -1px 1px rgba(255, 255, 255, 0.06),
		var(--glass-shadow);
}

.glass--smoke::before {
	background: linear-gradient(135deg,
			rgba(255, 255, 255, 0.45) 0%,
			rgba(255, 255, 255, 0.06) 35%,
			rgba(255, 255, 255, 0.02) 60%,
			rgba(255, 255, 255, 0.25) 100%);
}

.glass--smoke::after {
	background: radial-gradient(520px circle at var(--mx, 85%) var(--my, -10%),
			rgba(226, 0, 0, 0.40), rgba(226, 0, 0, 0) 60%);
	opacity: 1;
}

.glass--smoke .glass--clear {
	--glass-top: rgba(255, 255, 255, 0.10);
	--glass-bottom: rgba(255, 255, 255, 0.04);
}

/* =========================================================================
   Floating dock (navigation)
   ========================================================================= */
.dock {
	/* denser than other clear glass: it floats over body text */
	--glass-top: rgba(255, 255, 255, 0.72);
	--glass-bottom: rgba(255, 255, 255, 0.58);
	--glass-blur: 14px;
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 6px 6px 6px 22px;
	border-radius: 999px;
	font-size: 15px;
	transform: translate(-50%, -140%);
	opacity: 0;
	transition: transform 0.6s var(--ease-spring), opacity 0.3s;
}

body.scrolled .dock {
	transform: translate(-50%, 0);
	opacity: 1;
}

.dock__name {
	font-weight: 500;
	white-space: nowrap;
}

.dock__links {
	position: relative;
	display: flex;
}

.dock__links a {
	position: relative;
	z-index: 1;
	padding: 9px 16px;
	border-radius: 999px;
	color: var(--ink-2);
	white-space: nowrap;
	transition: color 0.3s;
}

.dock__links a:hover,
.dock__links a.active {
	color: var(--ink);
}

.dock__indicator {
	--glass-top: rgba(255, 255, 255, 0.85);
	--glass-bottom: rgba(255, 255, 255, 0.55);
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--ix, 0);
	width: var(--iw, 0);
	border-radius: 999px;
	opacity: 0;
	transition: left 0.55s var(--ease-spring), width 0.55s var(--ease-spring), opacity 0.3s;
}

.dock__indicator.on {
	opacity: 1;
}

/* =========================================================================
   Hero: who, what and the key facts, all in the first screen
   ========================================================================= */
.hero {
	position: relative;
	max-width: calc(var(--page) + 48px);
	min-height: 100vh;
	min-height: 100svh;
	margin: 0 auto;
	padding: 96px 24px;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	grid-template-areas: "main profile";
	column-gap: clamp(32px, 5vw, 80px);
	/* both columns start level; the pair sits in the middle of the screen */
	align-items: start;
	align-content: center;
}

/* left column as one block on wide screens; on narrow ones it dissolves so
   the fact card can slot in after the name */
.hero__main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.hero__intro {
	grid-area: intro;
}

.hero__name {
	font-size: clamp(44px, 5.8vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin-bottom: 18px;
}

/* who and where, right under the name */
.hero__affiliation {
	font-size: clamp(22px, 2.2vw, 31px);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--ink-2);
	margin-bottom: 22px;
}

.hero__affiliation strong {
	font-weight: 500;
	color: var(--ink);
}

.hero__statement {
	max-width: 26em;
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.4;
	color: var(--ink-2);
	text-wrap: pretty;
}

.hero__interests {
	grid-area: interests;
}

.hero__label {
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink-2);
}

/* a little more white than other clear glass: these sit on the busiest part of the blob */
.hero__actions .glass--clear {
	--glass-top: rgba(255, 255, 255, 0.62);
	--glass-bottom: rgba(255, 255, 255, 0.42);
}

.hero__actions {
	grid-area: actions;
	align-self: start;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Fact card ---------- */
.profile {
	grid-area: profile;
	/* top edge level with the top of the name's capitals */
	align-self: start;
	margin-top: calc(clamp(44px, 5.8vw, 84px) * 0.1);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(24px, 2.6vw, 34px);
	border-radius: var(--radius-tile);
}

.profile__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.profile .portrait {
	width: 84px;
	height: 84px;
	margin: 0;
	flex: none;
}

.profile__role {
	font-size: 21px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.profile__head .muted {
	font-size: 15px;
}

.facts > div {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--hairline);
}

.facts dt {
	padding-top: 3px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.facts dd {
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--ink-2);
}

.facts__people > span {
	display: block;
}

.facts__people > span + span {
	margin-top: 6px;
}

.facts dd b {
	font-weight: 500;
	color: var(--ink);
}

.facts dd a {
	color: var(--ink);
	background: linear-gradient(var(--hairline), var(--hairline)) 0 100% / 100% 1.5px no-repeat;
	transition: background-size 0.3s;
}

.facts dd a:hover {
	background-image: var(--grad);
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 13px 24px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 500;
	transition: transform 0.45s var(--ease-spring), box-shadow 0.3s;
}

.pill--dark {
	--glass-top: rgba(14, 12, 20, 0.92);
	--glass-bottom: rgba(14, 12, 20, 0.86);
	color: #fff;
}

.pill--light {
	--glass-top: rgba(255, 255, 255, 0.95);
	--glass-bottom: rgba(255, 255, 255, 0.86);
	color: var(--ink);
}

.pill:hover {
	transform: translateY(-2px) scale(1.04);
}

.pill:active {
	transform: scale(0.97);
}

.hero__scroll {
	position: absolute;
	bottom: 28px;
	left: 50%;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1.5px solid var(--ink-3);
	border-radius: 999px;
}

.hero__scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 4px;
	background: var(--ink-2);
	animation: scroll-dot 2s var(--ease-out) infinite;
}

@keyframes scroll-dot {
	0% {
		transform: translateY(0);
		opacity: 1;
	}

	70% {
		transform: translateY(14px);
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* =========================================================================
   Sections & bento grid
   ========================================================================= */
.section {
	max-width: calc(var(--page) + 48px);
	margin: 0 auto;
	padding: 120px 24px 40px;
}

/* Section headers: a hairline across the page, the title on the left and a
   one-line description beside it. On sub-pages the label (.eyebrow) inside a
   header takes the title's place, so they match without markup changes. */
.section__head {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	column-gap: var(--gap);
	row-gap: 14px;
	align-items: baseline;
	margin-bottom: 44px;
	padding-top: 22px;
	border-top: 1px solid rgba(11, 11, 16, 0.16);
}

.section__title,
.section__head > .eyebrow {
	grid-column: 1;
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.section__intro,
.section__head > h2:not(.section__title),
.section__head > .lede {
	grid-column: 2;
	max-width: 32em;
}

.section__intro,
.section__head > h2:not(.section__title) {
	text-wrap: balance;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.lede {
	max-width: 680px;
	font-size: 18px;
	color: var(--ink-2);
}

/* Small labels inside tiles: plain and quiet */
.eyebrow {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink-2);
}

.eyebrow--sm {
	font-size: 13.5px;
	margin-bottom: 6px;
}

.section__more {
	margin-top: 28px;
	text-align: right;
}

.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}

.span-4 {
	grid-column: span 4;
}

.span-5 {
	grid-column: span 5;
}

.span-7 {
	grid-column: span 7;
}

.span-8 {
	grid-column: span 8;
}

.span-12 {
	grid-column: span 12;
}

.rows-2 {
	grid-row: span 2;
}

/* =========================================================================
   Tiles
   ========================================================================= */
.tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius-tile);
	transition: transform 0.6s var(--ease-spring), box-shadow 0.4s;
}

.tile:hover {
	transform: translateY(-3px);
}

.tile p {
	color: var(--ink-2);
}

.glass--smoke p {
	color: rgba(255, 255, 255, 0.72);
}

.tile__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tile__title {
	font-size: 24px;
}

.tile__title--lg {
	font-size: clamp(30px, 3vw, 40px);
}

.tile__title--xl {
	font-size: clamp(36px, 4.2vw, 56px);
	letter-spacing: -0.03em;
}

.tile__subtitle {
	margin-top: -6px;
	font-size: 20px;
	line-height: 1.35;
}

.tile p.tile__subtitle {
	color: var(--ink);
}

.glass--smoke p.tile__subtitle {
	color: #fff;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.01em;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 16, 0.07);
}

.badge--new {
	color: #fff;
	background: var(--grad);
	box-shadow: none;
}

.badge--ghost {
	background: transparent;
	color: var(--ink-2);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 16, 0.14);
}

.badge--red {
	color: #fff;
	background: var(--mls-red);
	box-shadow: none;
}

/* the white cross of the Swiss flag, with the flag's proportions */
.badge__cross {
	width: 10px;
	height: 10px;
	fill: #fff;
}

.badge--at::before {
	content: "";
	width: 14px;
	height: 10px;
	border-radius: 2px;
	background: linear-gradient(var(--at-red) 0 33.3%, #fff 33.3% 66.6%, var(--at-red) 66.6%);
	box-shadow: 0 0 0 1px rgba(11, 11, 16, 0.1);
}

.link {
	display: inline-block;
	margin-top: auto;
	font-size: 15px;
	font-weight: 500;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size 0.4s var(--ease-out);
}

.link:hover {
	background-size: 100% 1.5px;
}

.link--light {
	color: #fff;
}

/* Whole-tile links: the title's link stretches over the tile; other links in
   the tile sit above it and stay independently clickable */
.tile--link {
	cursor: pointer;
}

.stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.stretched:focus-visible {
	outline: none;
}

.tile--link:has(.stretched:focus-visible) {
	outline: 2px solid var(--blue);
	outline-offset: 4px;
}

.tile__links {
	display: flex;
	align-items: baseline;
	gap: 18px;
	margin-top: auto;
}

.tile__links .link {
	margin-top: 0;
}

.link--go {
	color: var(--ink);
	transition: transform 0.45s var(--ease-spring), background-size 0.4s var(--ease-out);
}

.tile--link:hover .link--go {
	transform: translateX(4px);
	background-size: 100% 1.5px;
}

.link--quiet {
	position: relative;
	z-index: 2;
	color: var(--ink-2);
}

.chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 16, 0.07);
}

.chips--lg {
	gap: 8px;
}

.chips--lg .chip {
	padding: 8px 15px;
	font-size: 15px;
	background: rgba(255, 255, 255, 0.94);
}

/* Dock labels with a shorter variant for phones */
.dock__links .short {
	display: none;
}

/* ---------- Ongoing: On-Demand Path-Aware Backbone ---------- */
/* text on the left, the map on the right: one compact row */
.tile--backbone {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	column-gap: clamp(24px, 3vw, 44px);
	row-gap: 18px;
	align-items: center;
}

.tile--backbone .tile__title {
	font-size: clamp(28px, 2.6vw, 36px);
}

.backbone__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.backbone__text p {
	max-width: 34em;
	font-size: 16px;
}

.backbone-map__canvas {
	display: block;
	width: 100%;
}

.badge--live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--grad);
	animation: live 2.2s var(--ease-out) infinite;
}

@keyframes live {
	0% {
		box-shadow: 0 0 0 0 rgba(184, 79, 158, 0.55);
	}

	70%,
	100% {
		box-shadow: 0 0 0 7px rgba(184, 79, 158, 0);
	}
}

/* ---------- Ongoing, unpublished projects ---------- */
.further__list {
	list-style: none;
	display: grid;
	margin-top: 4px;
}

.further__list li {
	position: relative;
	padding: 12px 0 12px 20px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
}

.further__list li + li {
	border-top: 1px solid var(--hairline);
}

.further__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(12px + 0.5em);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--grad);
}

.tile p.further__note {
	margin-top: 2px;
	font-size: 14px;
	color: var(--ink-3);
}

/* ---------- Feature tile: Authenticated Browsing ---------- */
.tile--feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(28px, 4vw, 56px);
	row-gap: 18px;
	align-items: center;
}

.feature__copy,
.feature__visual {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tile--feature p.tile__foot {
	grid-column: 1 / -1;
	max-width: none;
}

.tile--feature p {
	max-width: 640px;
}

.flow {
	position: relative;
	height: 76px;
	margin: 10px 0 4px;
	border-radius: var(--radius-inner);
	background: rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 16, 0.05);
	overflow: hidden;
}

.flow__lane {
	position: absolute;
	inset: 0;
}

.flow__lane::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px dashed rgba(11, 11, 16, 0.12);
}

.pkt {
	--y: 0px;
	position: absolute;
	inset: 0;
	animation: pkt-ok 3.5s linear infinite;
	animation-delay: var(--d);
}

/* in a [data-hover-play] tile the packets hold still until the tile is
   hovered or focused */
[data-hover-play] .pkt {
	animation-play-state: paused;
}

[data-hover-play]:is(:hover, :focus-within) .pkt {
	animation-play-state: running;
}

.pkt::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(50% - 6px + var(--y));
	width: 22px;
	height: 12px;
	border-radius: 4px;
	background: rgba(11, 11, 16, 0.22);
}

.pkt--ok::before {
	background: var(--grad);
	box-shadow: 0 2px 8px -2px rgba(184, 79, 158, 0.6);
}

.pkt--ok::after {
	/* the authentication tag */
	content: "";
	position: absolute;
	left: 16px;
	top: calc(50% - 9px + var(--y));
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1.5px var(--magenta);
}

.pkt--bad {
	animation-name: pkt-bad;
}

.pkt:nth-child(3n) {
	--y: -16px;
}

.pkt:nth-child(3n + 1) {
	--y: 14px;
}

@keyframes pkt-ok {
	from {
		transform: translateX(-6%);
	}

	to {
		transform: translateX(100%);
	}
}

/* untagged packets that fit into the capacity left over */
.pkt.pkt--rest {
	animation-name: pkt-rest;
}

@keyframes pkt-rest {
	0% {
		transform: translateX(-6%);
		opacity: 1;
	}

	55% {
		transform: translateX(55%);
		opacity: 1;
	}

	64% {
		transform: translateX(62%);
		opacity: 0.35;
	}

	100% {
		transform: translateX(100%);
		opacity: 0.35;
	}
}

@keyframes pkt-bad {
	0% {
		transform: translateX(-6%);
		opacity: 1;
	}

	55% {
		transform: translateX(55%);
		opacity: 1;
	}

	62% {
		transform: translateX(58%) translateY(22px);
		opacity: 0;
	}

	100% {
		transform: translateX(58%) translateY(22px);
		opacity: 0;
	}
}

.flow__gate {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: calc(60% - 6px);
	width: 92px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 4px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: var(--radius-inner);
	background: rgba(255, 255, 255, 0.42);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 16, 0.05);
}

.stat strong {
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat span {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--ink-2);
}

.tile__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 20px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--hairline);
	font-size: 14px;
}

.tile__foot .link {
	margin-top: 0;
	color: var(--ink);
}

.authors b {
	color: var(--ink);
}

.portrait {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow:
		0 0 0 4px rgba(255, 255, 255, 0.7),
		0 14px 30px -12px rgba(24, 20, 48, 0.45);
	margin-bottom: 6px;
}

/* ---------- Paper tiles ---------- */
.paper-icon {
	width: 44px;
	height: 44px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin: 6px 0 2px;
}

.vortex {
	animation: spin 14s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(-360deg);
	}
}

.tile--paper p {
	font-size: 16px;
}

/* ---------- Major League Security ---------- */
.tile--mls {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	gap: 28px 40px;
}

.mls__intro {
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mls__intro p {
	max-width: 560px;
}

.tracks {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tracks li {
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.steps {
	list-style: none;
	display: grid;
	gap: 10px;
	align-content: center;
}

.steps li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 18px;
	border-radius: var(--radius-inner);
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
	transition: transform 0.45s var(--ease-spring);
}

.steps li:hover {
	transform: translateX(6px);
}

.steps span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--mls-red);
	filter: brightness(1.3);
}

.steps b {
	color: #fff;
	font-weight: 500;
}

.mls__prize {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
}

.mls__prize strong {
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.mls__prize span {
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- EmbossStudio ---------- */
.tile--emboss {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: center;
}

.emboss__copy {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.emboss__copy p {
	font-size: 16px;
}

.pipeline {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 4px;
	font-size: 13px;
	font-weight: 500;
}

.pipeline li {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pipeline li:not(:last-child)::after {
	content: "→";
	margin: 0 2px;
	color: var(--ink-3);
}

.tile p.callout {
	color: var(--ink);
	font-size: 17px;
}

.callout b {
	color: var(--emboss-ink);
}

.emboss__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.emboss__logo {
	/* the clip has a pure white ground, so it sits on a white chip like an
	   app icon; the whole frame fits, so the crank's travel is never clipped */
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(47, 42, 94, 0.08),
		0 8px 18px -8px rgba(47, 42, 94, 0.35);
}

.emboss__logo video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.specimens {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.specimens__stage {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-inner);
	overflow: hidden;
	background: #efe9e1;
	box-shadow:
		0 1px 2px rgba(40, 30, 20, 0.08),
		0 22px 44px -22px rgba(40, 30, 20, 0.45);
}

.specimens__stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.9s var(--ease-out), transform 6s linear;
}

.specimens__stage img.on {
	opacity: 1;
	transform: scale(1);
}

.specimens__caption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ink);
	--glass-top: rgba(255, 255, 255, 0.62);
	--glass-bottom: rgba(255, 255, 255, 0.42);
	--glass-blur: 10px;
}

.specimens__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.specimens__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(47, 42, 94, 0.22);
	cursor: pointer;
	transition: width 0.45s var(--ease-spring), background 0.3s;
}

.specimens__dots button.on {
	width: 24px;
	background: var(--emboss-ink);
}

.specimens__dots button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

/* ---------- KÖS ---------- */
.koes__brand {
	margin: 4px 0 2px;
}

.koes__logo {
	width: 104px;
	height: auto;
}

.big-number {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 6px 0;
}

.big-number strong {
	font-size: clamp(64px, 7vw, 96px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--at-red);
}

.big-number span {
	font-size: 18px;
	color: var(--ink-2);
}

.tile--koes p {
	font-size: 16px;
}

/* ---------- Contact ---------- */
.section--contact {
	padding-bottom: 80px;
}

.contact {
	max-width: 760px;
	margin: 0 auto;
	align-items: center;
	text-align: center;
	padding: clamp(36px, 6vw, 64px);
}

.contact h2 {
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 300;
	letter-spacing: -0.03em;
}

.contact__mail {
	font-size: clamp(22px, 3.4vw, 38px);
	font-weight: 500;
	letter-spacing: -0.02em;
	background: var(--grad) 0 100% / 100% 2px no-repeat;
	padding-bottom: 4px;
	transition: background-size 0.4s var(--ease-out);
}

.contact__mail:hover {
	background-size: 100% 100%;
	color: #fff;
	padding: 0 10px 4px;
	border-radius: 10px;
}

/* email reveal: buttons that look like the links they turn into */
button[data-email-reveal] {
	border: 0;
	font-family: inherit;
	line-height: inherit;
	cursor: pointer;
}

button.contact__mail {
	padding: 0 0 4px;
	color: var(--ink);
}

button[data-email-reveal][aria-busy] {
	cursor: progress;
	opacity: 0.7;
}

/* holds the Turnstile widget; it stays invisible unless Turnstile needs a click */
.email-check {
	display: flex;
	flex-basis: 100%;
}

.contact .email-check {
	justify-content: center;
}

.email-check__error {
	font-size: 14px;
	color: var(--red);
}

.contact__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}

.contact__links .pill {
	font-size: 15px;
	padding: 10px 20px;
}

.contact__addr {
	font-size: 14px;
}

.footer {
	padding: 24px;
	text-align: center;
	font-size: 13px;
	color: var(--ink-3);
}

.lens-defs {
	position: absolute;
	width: 0;
	height: 0;
}

/* =========================================================================
   Scroll reveal (only when JS is running)
   ========================================================================= */
.js .reveal {
	opacity: 0;
	transform: translateY(28px) scale(0.985);
	transition:
		opacity 0.8s var(--ease-out) var(--delay, 0s),
		transform 0.9s var(--ease-out) var(--delay, 0s);
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

.js .tile.reveal.in:hover {
	transform: translateY(-3px);
	transition-delay: 0s;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1020px) {

	.span-8,
	.span-7,
	.span-5 {
		grid-column: span 12;
	}

	.span-4 {
		grid-column: span 6;
	}

	.rows-2 {
		grid-row: auto;
	}

	.tile--feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.tile--backbone {
		grid-template-columns: minmax(0, 1fr);
	}

	.bento > .tile--further {
		grid-column: span 12;
	}

	.bento>.tile--paper:last-child {
		grid-column: span 12;
	}

	.tile--mls {
		grid-template-columns: 1fr;
	}

	.mls__intro {
		grid-row: auto;
	}

	.mls__prize {
		justify-content: flex-start;
	}
}

/* Hero: one column, fact card right after the name */
@media (max-width: 900px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"intro"
			"profile"
			"interests"
			"actions";
		row-gap: 24px;
		padding: 88px 16px 96px;
		align-content: start;
	}

	.hero__main {
		display: contents;
	}

	.hero__name {
		margin-bottom: 16px;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 17px;
	}

	.section__head {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 32px;
	}

	.section__intro,
	.section__head > h2:not(.section__title),
	.section__head > .lede {
		grid-column: 1;
	}

	.facts > div {
		grid-template-columns: 78px minmax(0, 1fr);
	}

	.dock__links .long {
		display: none;
	}

	.dock__links .short {
		display: inline;
	}

	.section {
		padding: 88px 16px 24px;
	}

	.bento>* {
		grid-column: span 12 !important;
	}


	.stats {
		grid-template-columns: 1fr;
	}

	.tile--emboss {
		grid-template-columns: 1fr;
	}

	.specimens {
		order: -1;
	}

	.dock {
		gap: 4px;
		padding-left: 6px;
		font-size: 14px;
	}

	.dock__name {
		display: none;
	}

	.dock__links a {
		padding: 9px 12px;
	}

	.section__more {
		text-align: left;
	}
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.blob,
	.vortex,
	.hero__scroll span,
	.badge--live::before {
		animation: none;
	}

	.pkt {
		animation-duration: 12s;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* =========================================================================
   Teaching & mentoring: one compact row under the hairline (kept last so it
   overrides the bento's responsive rules)
   ========================================================================= */
#teaching .nowrap {
	white-space: nowrap;
}

.teaching {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
	gap: var(--gap);
	padding-top: 22px;
	border-top: 1px solid rgba(11, 11, 16, 0.16);
}

.teaching__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.teaching__intro {
	max-width: 17em;
	font-size: 17px;
	line-height: 1.45;
	color: var(--ink-2);
}

.teaching__tile {
	gap: 6px;
	padding: clamp(22px, 2.4vw, 28px);
}

.teaching__title {
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.courses,
.mentees {
	list-style: none;
}

.course,
.mentees li {
	display: grid;
	gap: 2px;
	padding: 9px 0;
}

.course + .course,
.mentees li + li {
	border-top: 1px solid var(--hairline);
}

.mentees li:last-child,
.course:last-child {
	padding-bottom: 0;
}

.course h4 {
	font-size: 17px;
	font-weight: 500;
}

/* the reach of the course is the tile's headline number */
.tile p.course__count {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 2px;
	font-size: 16px;
	color: var(--ink-2);
}

.course__count strong {
	font-size: clamp(46px, 4vw, 58px);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.04em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tile p.course__meta {
	font-size: 14px;
	color: var(--ink-3);
}

.tile .course p {
	font-size: 15px;
}

.mentee__topic {
	font-size: 14px;
	color: var(--ink-3);
}

.mentee__outcome {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
}

.mentee__outcome::before {
	content: "→";
	position: absolute;
	left: 0;
	font-weight: 600;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mentee__outcome b {
	font-weight: 500;
}

.mentee__outcome .link {
	margin: 0;
	font-size: inherit;
	background-size: 100% 1.5px;
	background-image: var(--grad);
}

@media (max-width: 1020px) {
	.teaching {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.teaching__head {
		grid-column: 1 / -1;
	}

	.teaching__intro {
		max-width: 32em;
	}
}

@media (max-width: 680px) {
	.teaching {
		grid-template-columns: minmax(0, 1fr);
	}
}
