@layer site {
	@font-face {
		font-family: "Cormorant Garamond";
		font-weight: 400 700;
		font-display: swap;
		src: url(/fonts/cormorant-ac5feb9532.woff2) format("woff2");
	}
	@font-face {
		font-family: "Hanken Grotesk";
		font-weight: 100 900;
		font-display: swap;
		src: url(/fonts/hanken-7579623a5e.woff2) format("woff2");
	}
	:root {
		--bg: rgb(13, 57, 70);
		--text: rgb(250, 248, 240);
		--muted: rgb(185, 204, 209);
		--accent: rgb(206, 17, 38);
		--accent-text: rgb(255, 255, 255);
		--card: rgb(250, 248, 240);
		--card-text: rgb(13, 57, 70);
		--radius: 14px;
		--font-display: "Cormorant Garamond", Georgia, serif;
		--font-body: "Hanken Grotesk", system-ui, sans-serif;
		--scale: 1;
		--density: 1;
		--width: 28rem;
		--edge: 14px;
		--rx: -9deg;
		--ry: 166deg;
		--row-bg: color-mix(in srgb, var(--text) 9%, var(--bg));
		--row-text: var(--text);
	}
	* {
		box-sizing: border-box;
		margin: 0;
	}
	html {
		background: var(--bg);
		color: var(--text);
		font-size: calc(16px * var(--scale));
		-webkit-text-size-adjust: 100%;
	}
	body {
		min-block-size: 100svh;
		font-family: var(--font-body);
		line-height: 1.4;
		background:
			radial-gradient(
				120% 70% at 50% -10%,
				color-mix(in srgb, var(--bg) 70%, rgb(255, 255, 255) 14%),
				transparent 70%
			),
			radial-gradient(
				90% 50% at 50% 110%,
				color-mix(in srgb, var(--bg) 82%, rgb(0, 0, 0)),
				transparent 70%
			),
			var(--bg);
	}
	html,
	body {
		block-size: 100svh;
		overflow: hidden;
		overscroll-behavior: none;
	}
	html[data-editing],
	html[data-editing] body {
		overflow: auto;
	}
	.page {
		--R: clamp(44px, 6.4svh, 66px);
		--P: max(56px, calc(var(--R) * 1.3));
		--gap: clamp(8px, 1.6svh, 16px);
		block-size: 100svh;
		display: grid;
		align-content: center;
		justify-items: center;
		gap: var(--gap);
		padding: max(10px, env(safe-area-inset-top)) 16px
			max(10px, env(safe-area-inset-bottom));
		inline-size: 100%;
		max-inline-size: var(--page, var(--width));
		margin-block: 0;
		margin-inline: auto;
	}
	[data-width="narrow"] {
		--width: 24rem;
	}
	[data-width="wide"] {
		--width: 34rem;
	}
	section {
		inline-size: 100%;
	}
	[hidden] {
		display: none !important;
	}

	.stage {
		perspective: 1500px;
		position: relative;
		padding-block: 0 8px;
		padding-inline: 0;
		display: grid;
		justify-items: center;
	}
	.card {
		position: relative;
		inline-size: min(
			100%,
			calc((100svh - 6 * var(--R) - var(--P) - 3 * var(--gap) - 36px) * 1.545)
		);
		aspect-ratio: 85 / 55;
		transform-style: preserve-3d;
		--t: var(--edge);
		animation: sway 9s 2.4s ease-in-out infinite;
		font-family: var(--font-display);
		color: var(--card-text);
	}
	.body {
		position: absolute;
		inset: 0;
		transform-style: preserve-3d;
		transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--px, 0deg)));
		transition: transform 1.35s cubic-bezier(0.22, 0.9, 0.24, 1);
	}
	.is-front .body,
	html[data-intro] .body {
		--ry: -6deg;
		--rx: -5deg;
	}
	.face,
	.edge {
		position: absolute;
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
	}
	.face {
		inset: 0;
		border-radius: 2px;
		background: var(--card);
		overflow: hidden;
		transform: translateZ(calc(var(--t) / 2));
	}
	.face.back {
		transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
	}
	.face::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		background: linear-gradient(
			105deg,
			transparent 38%,
			rgba(255, 255, 255, 0.55) 50%,
			transparent 62%
		);
		transform: translateX(-120%);
		mix-blend-mode: soft-light;
	}
	.edge {
		background: linear-gradient(
			var(--accent),
			color-mix(in srgb, var(--accent) 80%, rgb(0, 0, 0))
		);
	}
	.edge.r {
		inset-inline-end: 0;
		inset-block-start: 0;
		block-size: 100%;
		inline-size: var(--t);
		transform: translateX(calc(var(--t) / 2)) rotateY(90deg);
	}
	.edge.l {
		inset-inline-start: 0;
		inset-block-start: 0;
		block-size: 100%;
		inline-size: var(--t);
		transform: translateX(calc(var(--t) / -2)) rotateY(90deg);
	}
	.edge.t {
		inset-inline-start: 0;
		inset-block-start: 0;
		inline-size: 100%;
		block-size: var(--t);
		transform: translateY(calc(var(--t) / -2)) rotateX(90deg);
	}
	.edge.b {
		inset-inline-start: 0;
		inset-block-end: 0;
		inline-size: 100%;
		block-size: var(--t);
		transform: translateY(calc(var(--t) / 2)) rotateX(90deg);
	}
	.edge {
		backface-visibility: visible;
	}
	.front {
		display: grid;
		place-items: center;
		grid-template-rows: 1fr auto;
		padding-block: 6% 7%;
		padding-inline: 5%;
	}
	.mark {
		display: flex;
		align-items: center;
		gap: 4%;
		align-self: center;
	}
	.front {
		container-type: size;
	}
	.mark b {
		font-weight: 600;
		font-size: 14.6cqw;
		letter-spacing: -0.01em;
		line-height: 1.3;
		padding-block-end: 0.08em;
	}
	.mark b span {
		font-weight: 500;
	}
	.bird {
		display: block;
		inline-size: 20.7cqw;
		block-size: auto;
		transform-origin: 50% 60%;
		animation: hover 4.2s ease-in-out infinite;
	}
	.base {
		font-family: var(--font-body);
		font-size: 3.9cqw;
		font-weight: 500;
		letter-spacing: 0.01em;
		color: color-mix(in srgb, var(--card-text) 78%, var(--card));
		text-align: center;
	}
	.front .bird {
		animation:
			arrive 1s cubic-bezier(0.2, 0.8, 0.2, 1) both,
			hover 4.2s 1s ease-in-out infinite;
	}
	.back {
		container-type: size;
	}
	.back h1 {
		position: absolute;
		inset-inline: 9.7cqw;
		inset-block-start: 9cqw;
		font-weight: 700;
		font-size: 6.4cqw;
		line-height: 1.05;
		letter-spacing: 0;
	}
	.back .role {
		position: absolute;
		inset-inline: 9.7cqw;
		inset-block-start: 19.5cqw;
		font-family: var(--font-body);
		font-weight: 500;
		font-size: 3.1cqw;
		color: color-mix(in srgb, var(--card-text) 72%, var(--card));
	}
	.back .coords {
		position: absolute;
		inset-inline-start: 9.7cqw;
		inset-block-end: 10cqw;
		font-family: var(--font-body);
		font-weight: 400;
		font-size: 3.5cqw;
		line-height: 1.34;
	}
	.back .coords p {
		margin: 0;
	}
	.back .addr {
		white-space: pre-line;
		color: color-mix(in srgb, var(--card-text) 72%, var(--card));
	}
	.back .qr {
		position: absolute;
		inset-inline-end: 7.74cqw;
		inset-block-end: 8.81cqw;
		inline-size: 21.43cqw;
		block-size: auto;
	}
	.flip {
		position: absolute;
		inset: 0;
		z-index: 3;
		background: none;
		border: 0;
		border-radius: 2px;
		cursor: pointer;
		transform: translateZ(40px);
	}
	.flip:focus-visible {
		outline: 3px solid var(--text);
		outline-offset: 6px;
	}
	.floor {
		position: absolute;
		inset-inline: 8%;
		inset-block-end: 2px;
		block-size: 18px;
		background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
		filter: blur(7px);
	}

	[data-section="actions"] {
		position: relative;
		color: var(--row-text);
		max-inline-size: 100%;
	}
	.links {
		list-style: none;
		padding: 0;
		display: block;
		perspective: 900px;
	}
	.links li {
		position: relative;
		animation: deal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
		animation-delay: calc(0.3s + var(--n, 0) * 0.07s);
		border-block-end: 1px solid
			color-mix(in srgb, var(--row-text) 22%, transparent);
	}
	.links li:last-child {
		border-block-end: 0;
	}
	.links a {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 12px;
		min-block-size: var(--R);
		padding-block: 0;
		padding-inline: 2px;
		color: inherit;
		text-decoration: none;
		position: relative;
		transition: transform 0.2s;
	}
	.links a:focus-visible {
		outline: 3px solid var(--row-text);
		outline-offset: -3px;
	}
	.links li:active a {
		transform: translateX(4px);
	}
	.lb {
		position: relative;
		justify-self: start;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: clamp(1.3rem, calc(var(--R) * 0.46), 2.1rem);
		line-height: 1.05;
		white-space: nowrap;
	}
	.lb::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		inset-block-end: -3px;
		block-size: 2px;
		background: var(--accent);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.links a:hover .lb::after,
	.links a:focus-visible .lb::after,
	.links a:active .lb::after {
		transform: scaleX(1);
	}
	.dt {
		justify-self: end;
		font-size: min(0.95rem, 3.9vw);
		color: var(--muted);
		white-space: nowrap;
		font-variant-numeric: tabular-nums;
	}
	.ic {
		display: block;
		inline-size: calc(var(--R) * 0.68);
		block-size: calc(var(--R) * 0.68);
		min-inline-size: 30px;
		min-block-size: 30px;
	}
	.ic svg {
		display: block;
		inline-size: 100%;
		block-size: 100%;
		overflow: visible;
	}
	.ic .ring {
		fill: none;
		stroke: rgb(8, 121, 133);
		stroke-width: 2.2;
	}
	.ic .tile {
		fill: rgb(250, 248, 240);
	}
	.ic .ink {
		fill: rgb(13, 57, 70);
	}
	.ic .tl {
		fill: rgb(8, 121, 133);
	}
	.ic .cr {
		fill: rgb(250, 248, 240);
	}
	.ic .st {
		fill: none;
		stroke: rgb(13, 57, 70);
		stroke-width: 2.2;
	}
	.ic .wv {
		fill: none;
		stroke: rgb(8, 121, 133);
		stroke-width: 1.6;
		stroke-linecap: round;
		opacity: 0;
	}
	.ic .ring {
		stroke-dasharray: 100;
		stroke-dashoffset: 100;
		animation: draw 0.8s ease-out forwards;
		animation-delay: calc(0.4s + var(--n, 0) * 0.07s);
	}
	.ic .g {
		transform-box: fill-box;
		transform-origin: center;
		animation: facet 0.6s cubic-bezier(0.3, 1.4, 0.4, 1) both;
		animation-delay: calc(0.65s + var(--n, 0) * 0.07s);
	}
	.links li[data-kind="vcard"] {
		border: 0;
		margin-block-end: var(--gap);
	}
	.links li[data-kind="vcard"] a {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"ic lb"
			"ic dt";
		column-gap: 14px;
		row-gap: 2px;
		min-block-size: var(--P);
		padding-block: 8px;
		padding-inline: 14px 18px;
		background: rgb(250, 248, 240);
		color: rgb(13, 57, 70);
		border-radius: 3px;
		box-shadow:
			0 4px 0 rgb(201, 201, 201),
			0 9px 0 -1px rgba(0, 0, 0, 0.18);
	}
	.links li[data-kind="vcard"] .ic {
		grid-area: ic;
		inline-size: calc(var(--P) * 0.6);
		block-size: calc(var(--P) * 0.6);
	}
	.links li[data-kind="vcard"] .ic .tile {
		fill: rgb(13, 57, 70);
	}
	.links li[data-kind="vcard"] .ic .ink {
		fill: rgb(250, 248, 240);
	}
	.links li[data-kind="vcard"] .lb {
		grid-area: lb;
		align-self: end;
		font-size: clamp(1.45rem, calc(var(--P) * 0.4), 2.4rem);
	}
	.links li[data-kind="vcard"] .lb::after {
		background: rgb(8, 121, 133);
	}
	.links li[data-kind="vcard"] .dt {
		grid-area: dt;
		justify-self: start;
		align-self: start;
		color: rgb(8, 121, 133);
		font-weight: 500;
		font-size: min(0.95rem, 3.8vw);
	}
	@keyframes draw {
		to {
			stroke-dashoffset: 0;
		}
	}
	@keyframes facet {
		from {
			opacity: 0;
			transform: scale(0.3) rotate(-25deg);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
	.ic .ph,
	.ic .fl,
	.ic .nd,
	.ic .dot,
	.ic .sq,
	.ic .bub {
		transform-box: fill-box;
		transform-origin: center;
	}
	.ic .fl {
		transform-origin: 50% 0;
	}
	a:hover .ic .ph,
	a:focus-visible .ic .ph,
	li:active .ic .ph {
		animation: ring 0.6s ease-in-out;
	}
	a:hover .ic .wv,
	a:focus-visible .ic .wv,
	li:active .ic .wv {
		animation: wave 0.9s ease-out;
	}
	a:hover .ic .bub,
	a:focus-visible .ic .bub,
	li:active .ic .bub {
		animation: bounce 0.6s cubic-bezier(0.3, 1.5, 0.4, 1);
	}
	a:hover .ic .fl,
	a:focus-visible .ic .fl,
	li:active .ic .fl {
		animation: open 0.55s cubic-bezier(0.3, 1.3, 0.4, 1) forwards;
	}
	a:hover .ic .nd,
	a:focus-visible .ic .nd,
	li:active .ic .nd {
		animation: spin 0.9s cubic-bezier(0.3, 1.2, 0.4, 1) forwards;
	}
	a:hover .ic .dot,
	a:focus-visible .ic .dot,
	li:active .ic .dot {
		animation: bounce 0.5s ease-out;
	}
	a:hover .ic .sq,
	a:focus-visible .ic .sq,
	li:active .ic .sq {
		animation: slide 0.7s cubic-bezier(0.3, 1.2, 0.4, 1) forwards;
	}
	@keyframes ring {
		20% {
			transform: rotate(-16deg);
		}
		40% {
			transform: rotate(14deg);
		}
		60% {
			transform: rotate(-10deg);
		}
		80% {
			transform: rotate(6deg);
		}
	}
	@keyframes wave {
		0% {
			opacity: 0;
		}
		30% {
			opacity: 1;
		}
		100% {
			opacity: 0;
		}
	}
	@keyframes bounce {
		40% {
			transform: scale(1.22);
		}
		70% {
			transform: scale(0.94);
		}
	}
	@keyframes open {
		to {
			transform: scaleY(-0.55);
		}
	}
	@keyframes spin {
		to {
			transform: rotate(200deg);
		}
	}
	@keyframes slide {
		to {
			transform: rotate(90deg) scale(1.15);
		}
	}
	[data-btn="outline"] .links li {
		border: 1.5px solid color-mix(in srgb, var(--row-text) 45%, transparent);
		margin-block-end: 6px;
	}
	[data-btn="outline"] .links a {
		padding-inline-start: 8px;
	}
	[data-btn="text"] .links li {
		border-block-end: 0;
	}
	[data-section="actions"][style*="--row-bg"] {
		background: var(--row-bg);
		padding-block: 4px;
		padding-inline: 12px;
		border-radius: var(--radius);
	}
	.foot {
		text-align: center;
		font-size: 0.85rem;
		color: var(--muted);
		display: grid;
		gap: 4px;
		padding-block-start: 6px;
	}
	.foot a {
		color: var(--text);
		text-decoration: none;
		font-weight: 500;
		min-block-size: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.foot a:focus-visible {
		outline: 3px solid var(--text);
		outline-offset: 3px;
	}

	@keyframes sway {
		0%,
		100% {
			transform: rotateY(-4deg);
		}
		50% {
			transform: rotateY(5deg);
		}
	}
	@keyframes deal {
		from {
			opacity: 0;
			transform: translateY(26px) rotateX(-28deg);
			transform-origin: 50% 0;
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
	@keyframes rise {
		from {
			opacity: 0;
			transform: translateY(14px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
	@keyframes hover {
		0%,
		100% {
			transform: translateY(0) rotate(0);
		}
		50% {
			transform: translateY(-5px) rotate(1.6deg);
		}
	}
	@keyframes arrive {
		from {
			opacity: 0;
			transform: translate(70%, -45%) rotate(-14deg) scale(0.55);
		}
		60% {
			opacity: 1;
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
	@keyframes sheen {
		to {
			transform: translateX(120%);
		}
	}
	@keyframes reveal {
		from {
			opacity: 0;
			clip-path: inset(0 100% 0 0);
		}
		to {
			opacity: 1;
			clip-path: inset(0 0 0 0);
		}
	}
	html[data-intro] .mark b {
		animation: reveal 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) both;
	}
	html[data-flipped] .face::after {
		animation: sheen 1.1s 0.35s ease-out both;
	}

	@media (prefers-reduced-motion: reduce) {
		.card {
			animation: none;
		}
		.body {
			transition: none;
		}
		.bird,
		.front .bird {
			animation: none !important;
		}
		.links li {
			animation: fade 0.3s both !important;
		}
		.lb::after,
		.links a {
			transition: none !important;
		}
		.ic *,
		.ic .g {
			animation: none !important;
		}
		.ic .ring {
			stroke-dashoffset: 0;
		}
		html[data-intro] .mark b,
		html[data-flipped] .face::after {
			animation: none;
		}
	}
	html[data-motion="off"] .body,
	html[data-motion="reduced"] .body {
		transition: none;
	}
	html[data-motion="off"] .card,
	html[data-motion="reduced"] .card,
	html[data-editing] .card {
		animation: none;
	}
	html[data-motion="off"] .bird,
	html[data-motion="reduced"] .bird {
		animation: none !important;
	}
	html[data-motion="off"] .links li,
	html[data-motion="reduced"] .links li {
		animation: fade 0.3s both !important;
	}
	@keyframes fade {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}

	@media (min-width: 900px) {
		.page {
			--R: clamp(52px, 7.4svh, 76px);
			--P: max(64px, calc(var(--R) * 1.35));
			--gap: clamp(10px, 1.8svh, 18px);
			max-inline-size: 76rem;
			grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
			grid-template-rows: auto auto;
			column-gap: 5rem;
			align-content: center;
			align-items: center;
		}
		.stage {
			grid-row: 1 / 3;
		}
		.card {
			inline-size: min(100%, calc((100svh - 96px) * 1.545));
			--edge: 18px;
		}
		.dt {
			font-size: 1rem;
		}
	}
}
