/* Entre-étages — the leasing office between floors.
   Two worlds: the "floor" (stone, everyday steps) and "between floors"
   (void, the moments that matter). Signature: the stepped pixel corner. */

@font-face { font-family: "Gloock"; src: url(fonts/gloock.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(fonts/silkscreen.woff2) format("woff2"); font-display: swap; }

:root {
	--stone: #e8e7ec;
	--paper: #f6f5f8;
	--ink: #1a1724;
	--ink-soft: #5b566a;
	--line: #cfcdd6;
	--void: #120f1b;
	--coat: #252131;
	--coat-line: #3a3448;
	--gold: #c9a04a;
	--gold-deep: #8a6a1f;
	--ember: #e8806e;
	--error: #b3473a;
	--dim: #b9b4c6;

	--bg: var(--stone);
	--surface: var(--paper);
	--text: var(--ink);
	--text-soft: var(--ink-soft);
	--rule: var(--line);
	--accent: var(--gold-deep);
	--cta-bg: var(--ink);
	--cta-text: var(--paper);

	--serif: "Gloock", "Times New Roman", serif;
	--sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pixel: "Silkscreen", monospace;

	--quick: 150ms;
	--step: 260ms;
	--world: 440ms;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--step-s: 6px; /* stepped corner unit */
	--gutter: 20px;
	color-scheme: light;
}

[data-world="void"] {
	--bg: var(--void);
	--surface: var(--coat);
	--text: var(--paper);
	--text-soft: var(--dim);
	--rule: var(--coat-line);
	--accent: var(--gold);
	--cta-bg: var(--gold);
	--cta-text: var(--void);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.5 var(--sans);
	-webkit-font-smoothing: antialiased;
	transition: background-color var(--world) steps(4), color var(--world) steps(4);
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---- stepped corner: two stairs at top-right and bottom-left ---- */
.stepped {
	--s: var(--step-s);
	clip-path: polygon(
		0 0, calc(100% - 2 * var(--s)) 0, calc(100% - 2 * var(--s)) var(--s), calc(100% - var(--s)) var(--s),
		calc(100% - var(--s)) calc(2 * var(--s)), 100% calc(2 * var(--s)), 100% 100%,
		calc(2 * var(--s)) 100%, calc(2 * var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)),
		var(--s) calc(100% - 2 * var(--s)), 0 calc(100% - 2 * var(--s))
	);
}
.stepped-lg { --step-s: 10px; }
.stepped-sm { --step-s: 4px; }
/* a hairline that follows the stepped outline: an inset copy of the shape */
.outlined { position: relative; background: var(--rule); }
.outlined > .fill { position: absolute; inset: 1.5px; background: var(--surface); }
.outlined > .fill.stepped { --step-s: calc(var(--s-outer, 6px) - 0.75px); }

/* ---- top bar ---- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); max-width: 1320px; width: 100%; margin: 0 auto; }
.brand { font: 400 21px/1 var(--serif); text-decoration: none; letter-spacing: -0.2px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--text-soft); padding: 8px 0; }
.bar nav a:hover { color: var(--text); }
.bar nav .all { display: none; }
.lang { font-weight: 600; color: var(--text) !important; }
@media (min-width: 720px) { .bar { padding: 22px 40px; } .bar nav .all { display: inline; } }

main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; }

/* ---- type ---- */
.display { font: 400 clamp(34px, 6vw, 56px)/1.04 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.h1 { font: 400 32px/1.1 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font: 400 26px/1.15 var(--serif); letter-spacing: -0.01em; }
.h3 { font: 600 18px/1.35 var(--sans); }
.lead { font-size: 16px; line-height: 1.5; color: var(--text-soft); max-width: 60ch; }
.caption { font-size: 13px; line-height: 1.4; color: var(--text-soft); }
.meta { font-size: 13px; color: var(--text-soft); }
.price { font: 400 42px/1 var(--serif); letter-spacing: -0.02em; }
.pixel { font-family: var(--pixel); letter-spacing: 0.5px; }
@media (min-width: 720px) { .h1 { font-size: 44px; } }

/* ---- buttons, chips, slots ---- */
.btn {
	--step-s: 6px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 28px; border: 0; cursor: pointer;
	background: var(--cta-bg); color: var(--cta-text);
	font: 600 16px/1 var(--sans); text-decoration: none;
	transition: transform var(--quick) var(--ease), filter var(--quick);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 10px 0; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.back { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--text-soft); font-weight: 500; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--text); }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice {
	--step-s: 6px;
	position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
	min-height: 64px; padding: 14px 16px; border: 0; cursor: pointer; text-align: left;
	background: var(--rule);
	transition: transform var(--quick) var(--ease);
}
.choice::before { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; z-index: 0; transition: background-color var(--quick); }
.choice > * { position: relative; z-index: 1; }
.choice .label { font-weight: 600; font-size: 17px; line-height: 1.25; }
.choice .sub { font-size: 13px; color: var(--accent); }
.choice:hover::before { background: color-mix(in srgb, var(--surface) 80%, var(--rule)); }
.choice:active { transform: translateY(1px); }
.choice[aria-pressed="true"] { background: var(--text); }
.choice[aria-pressed="true"]::before { background: var(--text); }
.choice[aria-pressed="true"] .label { color: var(--bg); }
.choice[aria-pressed="true"] .sub { color: var(--gold); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; background: var(--ember); z-index: 1; }
.choices.tall .choice { min-height: 76px; }

/* ---- progress ---- */
.progress { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }
.progress i { display: block; width: 8px; height: 8px; background: var(--rule); transition: width var(--step) steps(3), background-color var(--quick); }
.progress i.done { width: 14px; background: var(--text); }
.progress span { margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---- agent voice ---- */
.voice { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 15px; line-height: 1.35; }
.voice img { width: 36px; height: 36px; image-rendering: pixelated; background: var(--void); flex: none; }

/* ---- listing ---- */
.listing { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.listing > * { min-width: 0; } /* the scrolling thumbnail strip must not widen the column */
.gallery { padding: 0 12px; }
.hero-photo { position: relative; aspect-ratio: 4 / 3; min-height: 0; background: var(--line); overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 2px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { position: relative; flex: none; width: 92px; aspect-ratio: 4 / 3; min-height: 0; padding: 0; border: 0; cursor: pointer; scroll-snap-align: start; background: var(--line); opacity: 0.72; transition: opacity var(--quick); }
.strip button[aria-current="true"], .strip button:hover { opacity: 1; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.counter { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--text-soft); }
.counter i { width: 6px; height: 6px; background: var(--line); display: block; }
.counter i.on { width: 16px; background: var(--ink); }
.counter span { margin-left: 6px; }
.no-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--void); }
.no-photo img { width: 96px; image-rendering: pixelated; }

.summary { padding: 22px var(--gutter) 8px; display: grid; gap: 14px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.facts li::before { content: ""; width: 5px; height: 5px; background: var(--ember); flex: none; }
.addr-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-soft); }
.addr-note svg { flex: none; margin-top: 2px; }

.fit { padding: 28px var(--gutter) 32px; display: grid; gap: 14px; }
.fit-inner { display: grid; gap: 14px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.details { padding: 8px var(--gutter) 40px; display: grid; gap: 28px; }
.details h2 { margin-bottom: 12px; }
.spec { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--rule); }
.spec dt { color: var(--text-soft); }
.spec dd { margin: 0; text-align: right; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { --step-s: 4px; padding: 7px 12px; background: var(--paper); font-size: 14px; }

.others { padding: 0 var(--gutter) 48px; display: grid; gap: 14px; }
.unit-row {
	--step-s: 6px; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
	padding: 10px 14px 10px 10px; background: var(--surface); text-decoration: none;
	transition: transform var(--quick) var(--ease);
}
.unit-row:hover { transform: translateX(3px); }
.unit-row img, .unit-row .ph { width: 72px; height: 54px; object-fit: cover; background: var(--line); }
.unit-row .ph, .keycard .ph { background: var(--void) url(sprites/rat-stand.png) center / auto 78% no-repeat; image-rendering: pixelated; }
.unit-row .t { font-weight: 600; }
.unit-row .s { font-size: 13px; color: var(--text-soft); }
.unit-row .p { font: 400 20px/1 var(--serif); }

@media (min-width: 960px) {
	.listing { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); column-gap: 56px; padding: 8px 40px 0; align-items: start; }
	.gallery { padding: 0; grid-row: span 3; }
	.summary { padding: 8px 0 8px; }
	.fit { padding: 24px 0 32px; }
	.details { grid-column: 1; padding: 32px 0 56px; grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.others { grid-column: 2; padding: 0 0 56px; }
	.strip button { width: 120px; }
}

/* ---- flow screens ---- */
.app { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px 0; display: flex; flex-direction: column; min-height: calc(100dvh - 64px); }
.keycard {
	--step-s: 6px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
	padding: 10px 14px 10px 10px; background: var(--rule); position: relative;
}
.keycard::before { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; }
.keycard > * { position: relative; }
.keycard img, .keycard .ph { --step-s: 4px; width: 48px; height: 48px; object-fit: cover; background: var(--line); }
.keycard .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.keycard .s { font-size: 13px; color: var(--text-soft); }
.keycard .when { font-size: 13px; font-weight: 500; color: var(--accent); }
.screen { display: flex; flex-direction: column; gap: 18px; padding: 24px 4px 0; flex: 1; }
.screen-nav { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.dock { position: sticky; bottom: 0; padding: 28px 0 calc(20px + env(safe-area-inset-bottom)); margin-top: auto; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 26px); display: grid; gap: 10px; }
.disclaimer { margin-bottom: 8px; }
.status { min-height: 20px; font-size: 13px; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.status.live::before { content: ""; width: 6px; height: 6px; background: var(--ember); flex: none; animation: blink 1s steps(2) infinite; }
.error { color: var(--error); font-size: 14px; }
[data-world="void"] .error { color: var(--ember); }

/* step transition: a wipe in the direction of travel */
.screen.enter { animation: wipe-in var(--step) var(--ease) both; }
.screen.enter.backward { animation-name: wipe-in-back; }
@keyframes wipe-in { from { clip-path: inset(0 0 0 100%); opacity: 0.4; transform: translateX(12px); } to { clip-path: inset(0); opacity: 1; transform: none; } }
@keyframes wipe-in-back { from { clip-path: inset(0 100% 0 0); opacity: 0.4; transform: translateX(-12px); } to { clip-path: inset(0); opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---- match ----*/
.match-hero { position: relative; height: 260px; display: flex; align-items: center; }
.ring { position: relative; width: 220px; height: 220px; flex: none; }
.ring i { position: absolute; width: 10px; height: 10px; background: var(--gold); opacity: 0.14; }
.ring i.on { opacity: 1; animation: seg 1ms steps(1) both; animation-delay: calc(var(--i) * 26ms); }
.ring i.dust { width: 4px; height: 4px; opacity: 0.35; }
@keyframes seg { from { opacity: 0.14; } to { opacity: 1; } }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num b { font: 400 72px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring .num small { font-size: 12px; color: var(--dim); }
.match-hero .agent { width: 135px; image-rendering: pixelated; margin-left: auto; margin-right: -4px; animation: hop 420ms steps(4) both 200ms; }
@keyframes hop { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.reasons b { display: block; font-weight: 600; }
.reasons span { color: var(--text-soft); font-size: 15px; }
.mark { width: 15px; height: 12px; margin-top: 5px; }
.disclaimer { font-size: 13px; line-height: 1.45; color: var(--text-soft); }

/* ---- calendar ---- */
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
	--step-s: 4px; position: relative; flex: none; width: 62px; padding: 10px 0; border: 0; cursor: pointer; scroll-snap-align: start;
	display: grid; justify-items: center; gap: 2px; background: var(--rule);
}
.day::before { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; }
.day > * { position: relative; }
.day .w { font-size: 12px; color: var(--text-soft); text-transform: capitalize; }
.day .n { font: 400 24px/1 var(--serif); }
.day[aria-pressed="true"], .day[aria-pressed="true"]::before { background: var(--text); }
.day[aria-pressed="true"] .w { color: var(--dim); }
.day[aria-pressed="true"] .n { color: var(--bg); }
.slot-group { display: grid; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { --step-s: 4px; position: relative; border: 0; cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 15px; background: var(--rule); font-variant-numeric: tabular-nums; }
.slot::before { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; }
.slot span { position: relative; }
.slot[aria-pressed="true"], .slot[aria-pressed="true"]::before { background: var(--text); }
.slot[aria-pressed="true"] span { color: var(--bg); }
.loading { display: flex; align-items: center; gap: 14px; color: var(--text-soft); padding: 18px 0; }
.loading img { width: 52px; image-rendering: pixelated; animation: scurry 900ms steps(6) infinite alternate; }
@keyframes scurry { from { transform: translateX(0); } to { transform: translateX(36px); } }

/* ---- form ---- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 14px; }
.input { --step-s: 4px; position: relative; background: var(--rule); }
.input::before { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; }
.input input { position: relative; width: 100%; border: 0; background: transparent; padding: 15px 14px; font: 400 16px/1.2 var(--sans); color: var(--text); }
.input input:focus { outline: none; }
.input:focus-within { background: var(--accent); }
.field.invalid .input { background: var(--error); }
.field .error { min-height: 0; }

/* ---- between floors: confirmation ---- */
.scene { position: relative; height: 330px; margin: 0 -16px; overflow: hidden; }
.portal { position: absolute; left: 50%; bottom: 26px; width: 300px; height: 70px; transform: translateX(-60%); }
.portal .orbit { position: absolute; inset: 0; animation: orbit 2.4s steps(8) infinite; }
.portal .orbit.o2 { inset: 12px 40px; animation-duration: 1.8s; animation-direction: reverse; }
.portal .orbit.o3 { inset: 22px 80px; animation-duration: 1.2s; }
.portal i { position: absolute; width: 8px; height: 6px; background: var(--gold); }
@keyframes orbit { to { transform: translateX(8px); } }
.scene .agent { position: absolute; bottom: 44px; left: 50%; width: 170px; transform: translateX(-72%); image-rendering: pixelated; animation: rise 480ms steps(6) both 120ms; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translate(-72%, 40px); } to { clip-path: inset(0); transform: translate(-72%, 0); } }
.tablet {
	--step-s: 4px; position: absolute; right: 18px; top: 56px; padding: 14px 16px; transform: rotate(-4deg);
	background: var(--gold); animation: pop 320ms steps(4) both 520ms;
}
.tablet::before { content: ""; position: absolute; inset: 2px; background: var(--coat); clip-path: inherit; }
.tablet > * { position: relative; }
.tablet b { display: block; font: 400 16px/1.3 var(--pixel); color: var(--gold); }
.tablet small { display: block; font: 400 10px/1.3 var(--pixel); color: var(--paper); margin-top: 6px; }
@keyframes pop { from { transform: rotate(-4deg) scale(0.6); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.btn.ghost { background: var(--text-soft); color: var(--text); min-height: 50px; padding: 0 14px; position: relative; isolation: isolate; font-size: 15px; }
.btn.ghost::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--bg); clip-path: inherit; }
.cal-optional { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid var(--rule); }
.cal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finished { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-weight: 600; font-size: 17px; }
.finished.quiet { display: block; font-weight: 400; font-size: 15px; color: var(--text-soft); }
.done-list span { font-size: 15px; }
.addr { --step-s: 6px; padding: 14px 16px; background: var(--coat); display: grid; gap: 4px; }
.addr .k { font-size: 12px; color: var(--dim); }
.addr .v { font-weight: 600; font-size: 17px; }

/* ---- closed timeline ---- */
.closed { padding: 8px var(--gutter) 48px; max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.door-scene { position: relative; height: 280px; }
.door { position: absolute; left: 50%; top: 20px; width: 116px; height: 200px; transform: translateX(-50%); background: var(--coat); box-shadow: inset 0 0 0 4px var(--gold); }
.door::before, .door::after { content: ""; position: absolute; left: 18px; right: 18px; border: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.door::before { top: 20px; height: 62px; }
.door::after { top: 100px; height: 80px; }
.door-scene .agent { position: absolute; left: 50%; top: 66px; width: 92px; transform: translateX(-56%); image-rendering: pixelated; }
.door-scene .rat { position: absolute; left: calc(50% + 86px); bottom: 14px; width: 66px; image-rendering: pixelated; animation: hop 420ms steps(4) both 300ms; }

/* ---- index ---- */
.index { padding: 16px var(--gutter) 56px; display: grid; gap: 40px; }
.index header { display: grid; gap: 12px; max-width: 720px; }
.bgroup { display: grid; gap: 12px; }
.bgroup h2 a { text-decoration: none; }
.bgroup .units { display: grid; gap: 10px; }
@media (min-width: 720px) {
	.index { padding: 24px 40px 72px; }
	.bgroup .units { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

/* ---- prose (privacy) ---- */
.prose { max-width: 680px; padding: 16px var(--gutter) 64px; display: grid; gap: 14px; }
.prose h2 { font: 400 24px/1.2 var(--serif); margin-top: 18px; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---- footer ---- */
.foot { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--rule); }
.foot a { color: var(--text-soft); }
@media (min-width: 720px) { .foot { padding: 28px 40px 40px; } }

/* ---- consent ---- */
.consent {
	--step-s: 6px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 520px;
	background: var(--ink); color: var(--paper); padding: 16px 18px; display: grid; gap: 12px;
	font-size: 14px; line-height: 1.45; animation: pop-up var(--step) var(--ease) both;
}
.consent .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent button { --step-s: 4px; border: 0; cursor: pointer; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.consent .yes { background: var(--gold); color: var(--void); }
.consent .no { background: var(--coat); color: var(--paper); }
.consent a { color: var(--dim); font-size: 13px; }
@keyframes pop-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- world change: stepped iris ---- */
.iris { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: var(--iris-color, var(--void)); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); animation: iris var(--world) steps(7) forwards; }
@keyframes iris { to { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
	.portal .orbit { animation: none !important; }
}
