@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Great+Vibes&family=Lora:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
	--bg: #f3e6d3;
	--bg-strong: #ead7c5;
	--surface: rgba(255, 248, 241, 0.86);
	--surface-strong: #fff8f1;
	--text: #34211d;
	--muted: #7a6159;
	--accent: #9c4f3d;
	--accent-soft: #c98368;
	--signal: #b96c56;
	--signal-soft: rgba(185, 108, 86, 0.14);
	--signal-border: rgba(185, 108, 86, 0.3);
	--shadow: 0 24px 60px rgba(81, 44, 33, 0.16);
	--radius-lg: 32px;
	--radius-md: 22px;
	--radius-sm: 14px;
	--content-width: 42rem;
	--ease: 260ms ease;
	--mobile-type-scale: 1;
	--page-gradient:
		radial-gradient(ellipse at 12% 8%, rgba(255, 240, 218, 0.55), transparent 36%),
		radial-gradient(ellipse at 88% 6%, rgba(201, 131, 104, 0.18), transparent 28%),
		radial-gradient(ellipse at 70% 92%, rgba(220, 170, 130, 0.15), transparent 34%),
		radial-gradient(ellipse at 18% 80%, rgba(106, 122, 71, 0.08), transparent 26%),
		linear-gradient(162deg, #fefaf4 0%, #f9f0e3 30%, #f3e6d3 65%, #ead8c2 100%);
}

@media (max-width: 41.99rem) {
	:root {
		--mobile-type-scale: 1.22;
		--bg: #efdfcc;
		--bg-strong: #e3cdb8;
		--surface: rgba(255, 247, 240, 0.9);
		--surface-strong: #fff6ee;
		--text: #2f1d19;
		--muted: #6f534a;
		--accent: #944637;
		--accent-soft: #bc765d;
		--signal: #ad5f49;
		--signal-soft: rgba(173, 95, 73, 0.18);
		--signal-border: rgba(173, 95, 73, 0.38);
	}

	.timeline__label {
		font-size: calc(0.73rem * var(--mobile-type-scale));
	}

	.timeline__heading {
		font-size: calc(clamp(1.15rem, 4vw, 1.85rem) * var(--mobile-type-scale));
	}

	.timeline__hint {
		font-size: calc(0.73rem * var(--mobile-type-scale));
	}

	.timeline__detail {
		font-size: 1.08rem;
	}

	.timeline__deadline-chip {
		font-size: 0.76rem;
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: "Lora", Georgia, "Times New Roman", serif;
	background: var(--page-gradient);
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.page-shell {
	overflow: visible;
}



.loader {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 1.15rem 1rem 0.55rem;
}

.loader__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	width: min(100%, 27rem);
	min-height: 4.5rem;
	padding: 1rem 1.15rem;
	border-radius: 999px;
	background: rgba(255, 248, 241, 0.72);
	border: 1px solid rgba(139, 100, 87, 0.12);
	box-shadow: 0 16px 40px rgba(81, 44, 33, 0.08);
}


.loader__spinner {
	position: relative;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(156, 79, 61, 0.16);
	border-top-color: var(--accent);
	border-radius: 999px;
	animation: loader-spin 920ms linear infinite;
}


.loader__message {
	margin: 0;
	min-height: 1.5rem;
	color: var(--accent);
	font-size: clamp(1rem, 3.8vw, 1.15rem);
	font-weight: 800;
	line-height: 1.45;
}

.loader__skip {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 20;
	border: 1px solid rgba(139, 100, 87, 0.22);
	background: rgba(255, 252, 248, 0.92);
	color: var(--accent);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.52rem 0.72rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--ease), background-color var(--ease);
}

.loader__skip:hover,
.loader__skip:focus-visible {
	background: rgba(255, 244, 236, 1);
}

.loader__skip:active {
	transform: scale(0.98);
}

@keyframes loader-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.hero {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: 2.5rem 1.25rem 2rem;
	text-align: center;
}

.hero__glow {
	position: absolute;
	width: 12rem;
	height: 12rem;
	border-radius: 999px;
	filter: blur(18px);
	opacity: 0.42;
	z-index: -1;
}

.hero__glow--left {
	top: 2rem;
	left: -2rem;
	background: rgba(201, 131, 104, 0.48);
}

.hero__glow--right {
	top: 8rem;
	right: -2rem;
	background: rgba(106, 122, 71, 0.26);
}

.hero__eyebrow,
.section-label,
.pill,
.martini-button__hint {
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero__eyebrow,
.section-label {
	margin: 0;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 700;
}

.hero__title,
.names,
.reveal__line {
	font-family: "Cormorant Garamond", Georgia, serif;
}

.hero__title {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(2.5rem, 12vw, 4.5rem);
	line-height: 0.95;
}

.hero__lead {
	max-width: 24rem;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.6;
}

.martini-button {
	display: grid;
	gap: 0.2rem;
	justify-items: center;
	width: min(100%, 18rem);
	padding: 1rem 1rem 0.1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: transform var(--ease);
}

.martini-button:active {
	transform: scale(0.98);
}

.martini-button__glass {
	position: relative;
	display: block;
	width: 10rem;
	height: 10.6rem;
	filter: drop-shadow(0 16px 30px rgba(81, 44, 33, 0.18));
	content: "Trykk her for detaljer";

	top: -1.85rem;
	z-index: 4;
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 50%;
	width: 7.8rem;
	height: 6.2rem;
	transform: translateX(-50%);
	clip-path: polygon(8% 0, 92% 0, 62% 100%, 38% 100%);
	border: 2px solid rgba(255, 250, 245, 0.94);
	border-bottom: 0;
	border-radius: 0.9rem 0.9rem 2rem 2rem;
	background:
		linear-gradient(180deg, rgba(255, 249, 244, 0.92) 0%, rgba(252, 235, 224, 0.82) 13%, rgba(93, 47, 36, 0.94) 14%, rgba(53, 27, 21, 0.98) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 250, 245, 0.18);
}

.martini-button__glass::after {
	content: "";
	position: absolute;
	top: 0.78rem;
	left: 50%;
	width: 5.6rem;
	height: 0.22rem;
	transform: translateX(-50%);
	border-radius: 999px;
	background: rgba(255, 246, 239, 0.78);
	box-shadow:
		0 1rem 0 -0.08rem rgba(255, 247, 241, 0.18),
		-1.3rem 1.6rem 0 -0.1rem rgba(255, 247, 241, 0.12);
}

.martini-button__olive {
	position: absolute;
	top: 2.3rem;
	left: 50%;
	width: 1.15rem;
	height: 1.15rem;
	transform: translateX(1.2rem);
	border-radius: 999px;
	background: radial-gradient(circle at 35% 35%, #a7bf70 0, #7f934f 50%, var(--olive) 100%);
	box-shadow:
		-1.9rem 0.85rem 0 -0.62rem rgba(255, 245, 236, 0.58),
		-0.9rem 0.4rem 0 -0.48rem rgba(130, 88, 58, 0.55);
}

.martini-button__stem {
	position: absolute;
	top: 5.9rem;
	left: 50%;
	width: 0.16rem;
	height: 2.9rem;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(244, 233, 226, 0.72));
}

.martini-button__base {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	width: 3.3rem;
	height: 0.18rem;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(244, 233, 226, 0.72));
}

.martini-button__hint {
	font-size: 0.66rem;
	font-weight: 700;
	color: var(--accent);
}

/* ─── Invitation wrapper ─── */

.invitation {
	position: relative;
	z-index: 35;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 1.3rem 1.1rem 4rem;
	max-height: 100vh;
	max-height: 100dvh;
	opacity: 0;
	transform: translate(var(--invitation-reveal-translate-x, 0px), var(--invitation-reveal-translate-y, 0px)) scale(var(--invitation-reveal-start-scale-x, 0.12), var(--invitation-reveal-start-scale-y, 0.12));
	transform-origin: 50% 50%;
	overflow: hidden;
	border-radius: 10px;
	will-change: transform, opacity;
	transition: opacity 0ms;
	pointer-events: none;
}

body.is-delivery-running .invitation {
	opacity: 0;
	transform: translate(var(--invitation-reveal-translate-x, 0px), var(--invitation-reveal-translate-y, 0px)) scale(var(--invitation-reveal-start-scale-x, 0.12), var(--invitation-reveal-start-scale-y, 0.12));
}

body.is-content-visible .invitation {
	opacity: 1;
	transform: translate(var(--invitation-reveal-translate-x, 0px), var(--invitation-reveal-translate-y, 0px)) scale(var(--invitation-reveal-start-scale-x, 0.12), var(--invitation-reveal-start-scale-y, 0.12));
}


body.is-content-revealed .invitation {
	opacity: 1;
	transform: translate(0, 0) scale(1);
	pointer-events: auto;
	max-height: none;
	overflow: visible;
	animation: none;
}

@keyframes invitation-zoom-in {
	0% {
		opacity: 1;
		transform: scale(var(--invitation-reveal-start-scale-x, 0.12), var(--invitation-reveal-start-scale-y, 0.12));
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.invitation-texture-overlay {
	display: none;
}

/* ─── Delivery sequence ─── */

.delivery-sequence {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	padding-top: 4rem;
	z-index: 30;
	pointer-events: none;
	opacity: 0;
	overflow: hidden;
	--delivery-reveal-origin-x: 50%;
	--delivery-reveal-origin-y: 50%;
	--delivery-reveal-width: 20rem;
	--delivery-reveal-height: 13rem;
	--delivery-reveal-start-scale: 1;
	--delivery-reveal-end-scale: 80;
	background:
		radial-gradient(circle at 16% 10%, rgba(156, 79, 61, 0.34), transparent 44%),
		radial-gradient(circle at 82% 14%, rgba(201, 131, 104, 0.2), transparent 34%),
		linear-gradient(180deg, #d6b4a3 0%, #c58f79 48%, #ae6a56 100%);
	transition: opacity 280ms ease;
}

.delivery__bg-reveal {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	display: none;
	background: var(--page-gradient);
	will-change: opacity;
}

.delivery-sequence.is-playing {
	opacity: 1;
}

.delivery-sequence.is-complete,
.delivery-sequence.is-exit {
	background: transparent;
}

body.is-background-revealing .delivery__bg-reveal {
	opacity: 1;
	animation: none;
}

body.is-content-revealed .delivery__bg-reveal {
	opacity: 1;
	animation: none;
}

.delivery__envelope {
	position: relative;
	width: min(88vw, 21rem);
	aspect-ratio: 3 / 2;
	opacity: 0;
	transform: translate3d(0, 0, 0);
	z-index: 2;
	transition: box-shadow 180ms ease;
	backface-visibility: hidden;
	will-change: transform, opacity;
	box-shadow:
		0 24px 36px rgba(81, 44, 33, 0.22),
		0 8px 14px rgba(81, 44, 33, 0.12);
}

.delivery-sequence.is-playing .delivery__envelope {
	animation:
		delivery-envelope-in 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
		envelope-float 2s ease-in-out infinite;
}

.delivery-sequence.is-waiting .delivery__envelope {
	opacity: 1;
}

.delivery__envelope.is-fading {
	animation: none !important;
	opacity: 1 !important;
	box-shadow: none !important;
}

.delivery-sequence.is-playing .delivery__envelope.is-fading {
	animation: none !important;
	opacity: 1 !important;
	box-shadow: none !important;
}

.delivery__envelope.is-fading .delivery__body,
.delivery__envelope.is-fading .delivery__front,
.delivery__envelope.is-fading .delivery__flap {
	opacity: 0;
}

.delivery__body {
	position: absolute;
	inset: 0;
	opacity: 1;
	transition: opacity 200ms ease;
	border-radius: 12px;
	border: 1px solid rgba(156, 79, 61, 0.34);
	background:
		radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.24), transparent 33%),
		radial-gradient(circle at 82% 76%, rgba(255, 255, 255, 0.1), transparent 28%),
		radial-gradient(circle at top left, rgba(186, 120, 93, 0.28), transparent 30%),
		radial-gradient(circle at 82% 14%, rgba(106, 122, 71, 0.12), transparent 22%),
		linear-gradient(180deg, #f1e4d6 0%, #e0c8b4 52%, #d5b9a3 100%);
	overflow: hidden;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		inset 0 -14px 26px rgba(162, 112, 88, 0.12),
		0 1px 2px rgba(81, 44, 33, 0.08);
	z-index: 1;
}

.delivery__body::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 32%);
	pointer-events: none;
}

.delivery__body::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: 26%;
	height: 1px;
	background: rgba(140, 90, 60, 0.2);
	pointer-events: none;
}

.delivery-sequence.is-opening .delivery__body,
.delivery-sequence.is-opening .delivery__front {
	animation: none;
}

.delivery__front {
	position: absolute;
	left: 0;
	bottom: 0;
	opacity: 1;
	transition: opacity 200ms ease;
	width: 100%;
	height: 82%;
	border: 1.1px solid rgba(140, 90, 60, 0.5);
	border-radius: 0 0 12px 12px;
	background:
		radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.26), transparent 54%),
		linear-gradient(180deg, rgba(232, 211, 192, 0.98), rgba(203, 169, 148, 0.98));
	clip-path: polygon(0 0, 50% 76%, 100% 0, 100% 100%, 0 100%);
	box-shadow:
		inset 0 10px 16px rgba(255, 255, 255, 0.16),
		inset 0 -6px 16px rgba(120, 79, 57, 0.16);
	z-index: 3;
}

.delivery__front::before,
.delivery__front::after {
	content: "";
	position: absolute;
	height: 0.9px;
	width: 65.1%;
	background: rgba(140, 90, 60, 0.5);
	pointer-events: none;
}

.delivery__front::before {
	left: 0;
	top: 0;
	transform-origin: top left;
	transform: rotate(39.8deg);
}

.delivery__front::after {
	right: 0;
	top: 0;
	transform-origin: top right;
	transform: rotate(-39.8deg);
}

.delivery__flap {
	position: absolute;
	left: 0;
	top: -1px;
	opacity: 1;
	transition: opacity 200ms ease;
	width: 100%;
	height: 85%;
	clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
	border: 1.1px solid rgba(140, 90, 60, 0.5);
	border-radius: 12px 12px 0 0;
	background:
		radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.22), transparent 26%),
		repeating-linear-gradient(0deg, rgba(124, 93, 78, 0.016) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
		linear-gradient(180deg, rgba(229, 206, 187, 0.98), rgba(199, 164, 143, 0.98));
	box-shadow:
		0 6px 12px rgba(80, 40, 20, 0.2),
		0 2px 4px rgba(80, 40, 20, 0.14),
		inset 0 10px 20px rgba(255, 255, 255, 0.1),
		inset 0 -8px 14px rgba(120, 79, 57, 0.08);
	transform-origin: 50% 1px;
	transform: perspective(900px) rotateX(0deg);
	will-change: transform;
	z-index: 5;
}

.delivery__flap::before,
.delivery__flap::after {
	content: "";
	position: absolute;
	height: 1.6px;
	width: 60.5%;
	background: rgba(140, 90, 60, 0.62);
	pointer-events: none;
}

.delivery__flap::before {
	left: 0;
	top: 40%;
	transform-origin: left center;
	transform: rotate(34.2deg);
}

.delivery__flap::after {
	right: 0;
	top: 40%;
	transform-origin: right center;
	transform: rotate(-34.2deg);
}

.delivery__flap-seal {
	position: absolute;
	left: 50%;
	top: 82.8%;
	width: 0.82rem;
	height: 0.82rem;
	background: var(--accent);
	box-shadow: 0 2px 4px rgba(81, 44, 33, 0.24);
	transform: translate(-50%, -50%) rotate(-45deg) scale(1);
	transform-origin: center;
	opacity: 1;
	pointer-events: none;
	z-index: 9;
}

.delivery__flap-seal::before,
.delivery__flap-seal::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--accent);
}

.delivery__flap-seal::before {
	top: -50%;
	left: 0;
}

.delivery__flap-seal::after {
	top: 0;
	left: 50%;
}

.delivery-sequence.is-opening .delivery__flap {
	animation:
		delivery-flap-open 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 0ms forwards;
	z-index: 5;
}

.delivery-sequence.is-opening .delivery__flap-seal {
	animation: delivery-seal-hide 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 0ms forwards;
}

.delivery-sequence.is-paper-sliding .delivery__flap {
	z-index: 0;
}

.delivery__paper {
	position: fixed;
	left: 50%;
	top: 50%;
	width: calc(100vw + 32px);
	height: calc(100vh + 32px);
	height: calc(100dvh + 32px);
	--delivery-paper-start-clip-top: 0%;
	--delivery-paper-start-clip-bottom: 28%;
	--delivery-paper-rest-y-offset: 0rem;
	--delivery-paper-out-shift: 4rem;
	border-radius: 10px;
	border: 1px solid rgba(156, 79, 61, 0.2);
	background: var(--page-gradient);
	transform: translate3d(-50%, calc(-50% + var(--delivery-paper-rest-y-offset)), 0) scale(var(--delivery-paper-start-scale-x, 0.22), var(--delivery-paper-start-scale-y, 0.3));
	opacity: 0;
	visibility: hidden;
	z-index: 2;
	clip-path: inset(var(--delivery-paper-start-clip-top) 0 var(--delivery-paper-start-clip-bottom) 0 round 10px);
	overflow: hidden;
	transform-origin: 50% 50%;
	backface-visibility: hidden;
	will-change: transform, opacity, border-radius, clip-path;
	box-shadow:
		0 14px 30px rgba(81, 44, 33, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.delivery__paper::before {
	content: none;
}

.delivery-sequence.is-opening .delivery__paper {
	--delivery-paper-rest-y-offset: 2rem;
	visibility: visible;
	opacity: 1;
}

.delivery-sequence.is-paper-sliding .delivery__paper {
	visibility: visible;
	opacity: 1;
	animation:
		delivery-paper-out 1000ms cubic-bezier(0.16, 1, 0.3, 1) 0ms forwards,
		delivery-paper-expand 740ms cubic-bezier(0.22, 1, 0.36, 1) 840ms forwards;
}

.delivery-sequence.is-paper-expanding .delivery__paper {
	z-index: 6;
}

@media (max-width: 41.99rem) {
	.delivery__paper {
		width: calc(100vw + 32px);
		--delivery-paper-out-shift: 2.6rem;
		--delivery-paper-start-clip-top: 4%;
		--delivery-paper-start-clip-bottom: 28%;
	}
}

.delivery__tap-prompt {
	position: absolute;
	top: -4rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: "Great Vibes", "Cormorant Garamond", serif;
	font-size: 2.2rem;
	font-weight: 400;
	color: rgba(255, 248, 241, 0.95);
	text-shadow: 0 2px 10px rgba(60, 20, 10, 0.4);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 400ms ease;
	pointer-events: none;
}

.delivery-sequence.is-playing .delivery__tap-prompt,
.delivery-sequence.is-waiting .delivery__tap-prompt {
	opacity: 1;
}

.delivery-sequence.is-waiting {
	pointer-events: auto;
	cursor: pointer;
}

.delivery-sequence.is-complete {
	opacity: 1;
	pointer-events: none;
}

.delivery-sequence.is-complete .delivery__paper {
	position: fixed;
	inset: -16px;
	width: auto;
	height: auto;
	transform: none;
	clip-path: none;
	border-radius: 0;
	border: none;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	animation: none;
	z-index: 1;
}

.delivery-sequence.is-complete .delivery__envelope {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.delivery-sequence.is-exit {
	opacity: 0;
	transition: opacity 260ms ease;
}

/* ─── Header ─── */

.tl-header {
	position: relative;
	overflow: visible;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 0 0;
	text-align: center;
}

.tl-header-spacer {
	height: 1.5rem;
}

.tl-header__copy {
	position: absolute;
	left: 0;
	right: 0;
	width: auto;
	bottom: 1.8rem;
	z-index: 1;
	padding: 3.1rem 1rem 1.2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	transform: none;
}

.tl-header__title {
	margin: 0;
	display: block;
	width: 100%;
	font-family: "Great Vibes", "Cormorant Garamond", serif;
	font-size: calc(clamp(2.3rem, 8.4vw, 3.8rem) * var(--mobile-type-scale));
	font-weight: 400;
	line-height: 1;
	color: var(--accent);
	white-space: nowrap;
	text-align: center;
	transform: none;
	text-shadow: 0 0.1rem 0.8rem rgba(246, 239, 231, 0.5);
}

.tl-header__visual {
	position: relative;
	width: min(72vw, 15rem);
	height: calc(min(72vw, 15rem) * 1.1);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	z-index: 1;
	--tl-header-portrait-crop-bottom: 3.5rem;
	--tl-header-portrait-fade-height: 10rem;
	--tl-header-portrait-fade-start: calc(100% - var(--tl-header-portrait-fade-height));
}

.tl-header__portrait-wrap {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: var(--tl-header-portrait-crop-bottom);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 var(--tl-header-portrait-fade-start), transparent 100%);
	mask-image: linear-gradient(180deg, #000 0, #000 var(--tl-header-portrait-fade-start), transparent 100%);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.tl-header__names,
.tl-header__sub {
	margin: 0 0 0.3rem;
	font-family: "Manrope", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.tl-header__sub {
	margin-bottom: 0;
}

.tl-header__sub--title {
	margin-top: 0.3rem;
	margin-bottom: 0;
	display: block;
	width: 100%;
	max-width: none;
	font-family: "Manrope", sans-serif;
	color: var(--muted);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: calc(0.7rem * var(--mobile-type-scale));
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 0.08rem 0.6rem rgba(246, 239, 231, 0.45);
}

.tl-header__sub--title strong {
	font-weight: 800;
}

.tl-header__portrait {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	pointer-events: none;
	user-select: none;
}

/* ─── Timeline ─── */

.timeline__hint {
	margin: 0 0 0.85rem;
	font-size: calc(0.58rem * var(--mobile-type-scale));
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(156, 79, 61, 0.9);
	transition: opacity 220ms ease, transform 220ms ease;
}

.timeline__hint.is-hidden {
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
}

.timeline {
	--timeline-marker-size: 1.3rem;
	--timeline-step: 3.65rem;
	--timeline-column-gap: 0.75rem;
	--timeline-padding-top: 0.35rem;
	position: relative;
	margin-top: 0;
	width: min(100%, var(--content-width));
	margin-left: auto;
	margin-right: auto;
	transform: translateX(var(--timeline-axis-offset-x, 0px));
	padding: var(--timeline-padding-top) 0 0;
}

.timeline__line {
	position: absolute;
	top: calc(var(--timeline-padding-top) + (var(--timeline-marker-size) / 2));
	bottom: calc(var(--timeline-step) - (var(--timeline-marker-size) / 2));
	left: 50%;
	width: 0.1rem;
	height: auto;
	background: linear-gradient(
		180deg,
		rgba(156, 79, 61, 0.35) 0%,
		rgba(156, 79, 61, 0.35) 100%
	);
	transform-origin: top center;
	transform: translateX(-50%) scaleY(1);
	opacity: 1;
}

.timeline__stop {
	position: relative;
	min-height: var(--timeline-step);
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	margin-bottom: 0;
	border-radius: 16px;
	opacity: 1;
	transform: none;
	transition: background-color 200ms ease, box-shadow 200ms ease;
	cursor: pointer;
}

.timeline__stop:last-child {
	margin-bottom: 0;
}

.timeline__stop[data-tl-open]::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.95rem;
	font-weight: 700;
	color: rgba(122, 97, 89, 0.82);
	pointer-events: none;
}

.timeline__stop[data-tl-open]:active {
	transform: translateY(0) scale(0.992);
}

.timeline__stop[data-tl-open]:active .timeline__marker {
	background: var(--bg-strong);
	border-color: rgba(156, 79, 61, 0.84);
	box-shadow: 0 0 0 6px rgba(156, 79, 61, 0.2);
}

.timeline__stop[data-tl-open]:hover,
.timeline__stop[data-tl-open]:focus-visible {
	outline: none;
}

.timeline__stop[data-tl-open]:hover .timeline__marker,
.timeline__stop[data-tl-open]:focus-visible .timeline__marker {
	background: var(--bg-strong);
	border-color: rgba(156, 79, 61, 0.72);
	box-shadow: 0 0 0 5px rgba(156, 79, 61, 0.16);
}

.timeline__stop[data-tl-open]:hover .timeline__marker--main,
.timeline__stop[data-tl-open]:focus-visible .timeline__marker--main {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 0 0 7px rgba(156, 79, 61, 0.2);
}


.timeline__marker {
	position: absolute;
	top: 0;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--timeline-marker-size);
	height: var(--timeline-marker-size);
	flex: none;
	border-radius: 50%;
	background: var(--bg-strong);
	border: 2px solid rgba(156, 79, 61, 0.28);
	font-size: 0;
	transform: translateX(-50%);
}

.timeline[data-tl-container].is-pulsing .timeline__marker {
	animation: none;
}

.timeline[data-tl-container].is-pulsing .timeline__marker--main {
	animation: none;
}

.timeline[data-tl-container].show-hint .timeline__stop[data-tl-first] .timeline__marker::after {
	content: "TRYKK FOR INFO";
	position: absolute;
	top: auto;
	bottom: calc(100% + 1.55rem);
	left: 50%;
	transform: translateX(-50%);
	font-family: "Manrope", sans-serif;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(156, 79, 61, 0.8);
	white-space: nowrap;
	pointer-events: none;
	z-index: 4;
}

.timeline[data-tl-container].show-hint .timeline__stop[data-tl-first] .timeline__marker::before {
	content: "↓";
	position: absolute;
	inset: auto;
	border-radius: 0;
	border: none;
	bottom: calc(100% + 0.6rem);
	left: 50%;
	width: 1.3rem;
	text-align: center;
	transform: translateX(-50%);
	font-size: 0.85rem;
	color: rgba(156, 79, 61, 0.8);
	animation: none;
	transition: none;
	pointer-events: none;
	z-index: 4;
}

@keyframes marker-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(156, 79, 61, 0.28);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(156, 79, 61, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(156, 79, 61, 0);
	}
}

@keyframes tap-ripple {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(2.6);
	}
}

@keyframes hint-bobble {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-2px);
	}
}

@keyframes envelope-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-12px);
	}
}

@keyframes delivery-envelope-in {
	0% {
		opacity: 0;
	}
	70% {
		opacity: 1;
	}
	100% {
		opacity: 1;
	}
}

@keyframes delivery-envelope-fade-out {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes delivery-flap-open {
	0% {
		transform: perspective(900px) rotateX(0deg);
	}
	100% {
		transform: perspective(900px) rotateX(-166deg);
	}
}

@keyframes delivery-seal-hide {
	0% {
		opacity: 1;
		transform: translate(-50%, -50%) rotate(-45deg) scale(1);
	}
	30% {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(-45deg) scale(0.92);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(-45deg) scale(0.88);
	}
}

@keyframes delivery-paper-out {
	0% {
		opacity: 1;
		visibility: visible;
		clip-path: inset(var(--delivery-paper-start-clip-top) 0 var(--delivery-paper-start-clip-bottom) 0 round 10px);
		transform: translate3d(-50%, calc(-50% + var(--delivery-paper-rest-y-offset)), 0) scale(var(--delivery-paper-start-scale-x), var(--delivery-paper-start-scale-y));
	}
	100% {
		opacity: 1;
		visibility: visible;
		clip-path: inset(var(--delivery-paper-start-clip-top) 0 var(--delivery-paper-start-clip-bottom) 0 round 10px);
		transform: translate3d(-50%, calc(-50% + var(--delivery-paper-rest-y-offset) - var(--delivery-paper-out-shift)), 0) scale(var(--delivery-paper-start-scale-x), var(--delivery-paper-start-scale-y));
	}
}

@keyframes delivery-paper-expand {
	0% {
		opacity: 1;
		visibility: visible;
		border-radius: 10px;
		clip-path: inset(var(--delivery-paper-start-clip-top) 0 var(--delivery-paper-start-clip-bottom) 0 round 10px);
		transform: translate3d(-50%, calc(-50% + var(--delivery-paper-rest-y-offset) - var(--delivery-paper-out-shift)), 0) scale(var(--delivery-paper-start-scale-x), var(--delivery-paper-start-scale-y));
	}
	100% {
		opacity: 1;
		visibility: visible;
		border-radius: 0;
		border-color: transparent;
		box-shadow: none;
		clip-path: inset(-16px -16px -16px -16px round 0);
		transform: translate3d(-50%, -50%, 0) scale(var(--delivery-paper-end-scale-x, 1), var(--delivery-paper-end-scale-y, 1));
	}
}

@keyframes delivery-envelope-parts-hide {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes delivery-background-reveal {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.timeline__marker--main {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff8f0;
	font-size: 0.6rem;
	box-shadow: 0 0 0 4px rgba(156, 79, 61, 0.14);
}

.timeline__marker--rsvp {
	background: var(--surface-strong);
	border-color: rgba(156, 79, 61, 0.5);
	border-style: dashed;
}

.timeline__body {
	position: absolute;
	display: grid;
	gap: 0.18rem;
	top: calc(var(--timeline-marker-size) / 2);
	min-height: 0;
	align-content: center;
	justify-items: center;
	padding: 0;
	background: none;
	border: none;
	box-shadow: none;
	text-align: center;
	transform: translateY(-50%);
	transition: color 200ms ease;
}


.timeline__stop--right .timeline__body {
	left: calc(50% + (var(--timeline-marker-size) / 2) + var(--timeline-column-gap));
	right: auto;
	width: max-content;
	max-width: calc(50% - (var(--timeline-marker-size) / 2) - var(--timeline-column-gap));
	justify-items: center;
}

.timeline__stop--left .timeline__body {
	left: auto;
	right: calc(50% + (var(--timeline-marker-size) / 2) + var(--timeline-column-gap));
	width: max-content;
	max-width: calc(50% - (var(--timeline-marker-size) / 2) - var(--timeline-column-gap));
	justify-items: center;
}

.timeline__label {
	display: block;
	width: max-content;
	justify-self: auto;
	font-family: "Manrope", sans-serif;
	font-size: calc(0.58rem * var(--mobile-type-scale));
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	text-align: inherit;
}

.timeline__label--deadline {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	flex-wrap: nowrap;
}

.timeline__deadline-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.08rem 0.4rem;
	border-radius: 999px;
	background: var(--signal-soft);
	border: 1px solid var(--signal-border);
	color: var(--signal);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	line-height: 1.25;
}

.timeline__deadline-date {
	text-transform: none;
	letter-spacing: 0.08em;
	color: var(--muted);
	white-space: nowrap;
}

.timeline__heading {
	margin: 0;
	width: max-content;
	justify-self: auto;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: calc(clamp(0.95rem, 3.2vw, 1.5rem) * var(--mobile-type-scale));
	font-weight: 600;
	line-height: 1.1;
	color: var(--text);
	white-space: nowrap;
	text-align: inherit;
}

.timeline__stop--left .timeline__label,
.timeline__stop--left .timeline__heading,
.timeline__stop--left .timeline__label--deadline,
.timeline__stop--right .timeline__label,
.timeline__stop--right .timeline__heading,
.timeline__stop--right .timeline__label--deadline {
	justify-self: center;
	text-align: center;
}

.timeline__stop--main .timeline__heading {
	color: var(--accent);
	font-weight: 700;
}

.timeline__stop--main .timeline__label {
	color: var(--accent);
}

.timeline__stop--rsvp .timeline__heading,
.timeline__stop--rsvp .timeline__label--deadline {
	justify-self: center;
	text-align: center;
}

.timeline__stop--rsvp .timeline__label--deadline {
	justify-content: center;
}

.timeline__detail {
	margin: 0;
	font-size: 0.84rem;
	color: var(--muted);
	line-height: 1.5;
}

.timeline__detail strong {
	color: var(--accent);
	font-weight: 700;
}

.tl-header__sub strong {
	color: var(--accent);
	font-weight: 700;
}

/* ─── Footer ─── */

.tl-footer {
	padding: 2rem 0.2rem 2rem;
	text-align: center;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.15rem;
	font-style: italic;
	color: var(--muted);
}

/* ─── Timeline modal ─── */

.tl-modal {
	position: fixed;
	inset: 0;
	display: grid;
	align-items: center;
	justify-items: center;
	padding: 0.25rem;
	z-index: 40;
	background: rgba(29, 14, 10, 0.42);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.tl-modal[hidden] {
	display: none;
}

.tl-modal__backdrop {
	position: absolute;
	inset: 0;
}

.tl-modal__panel {
	position: relative;
	margin: 0;
	padding: 1.3rem 1.2rem 1.35rem;
	border-radius: 24px;
	background:
		radial-gradient(circle at top right, rgba(201, 131, 104, 0.24), transparent 45%),
		linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 238, 229, 0.98));
	border-top: 1px solid rgba(139, 100, 87, 0.24);
	box-shadow: 0 -12px 40px rgba(20, 9, 6, 0.24);
	transform: translateY(10px);
	opacity: 0;
	transition: transform 260ms ease, opacity 260ms ease;
	max-width: var(--content-width);
	width: min(calc(100vw - 0.5rem), 30rem);
	max-height: calc(100dvh - 0.5rem);
	overflow-y: auto;
	justify-self: center;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.8rem 1rem;
	align-items: start;
	grid-template-areas:
		"title close"
		"content content";
}

body.tl-modal-open {
	overflow: hidden;
}

body.tl-modal-open .tl-modal__panel {
	transform: translateY(0);
	opacity: 1;
}

.tl-modal__close {
	appearance: none;
	border: 1px solid rgba(139, 100, 87, 0.26);
	background: rgba(255, 252, 248, 0.92);
	color: var(--accent);
	font: inherit;
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1;
	padding: 0.3rem 0.5rem;
	border-radius: 6px;
	cursor: pointer;
	grid-area: close;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.tl-modal__close:hover {
	background: rgba(239, 227, 213, 0.98);
	border-color: rgba(156, 79, 61, 0.42);
}

.tl-modal__close:active {
	background: rgba(229, 211, 197, 0.98);
}

.tl-modal__kicker {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.tl-modal__title {
	margin: 0 0 0.4rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.45rem, 6vw, 2.05rem);
	line-height: 1.1;
	color: var(--accent);
	grid-area: title;
	white-space: nowrap;
}

.tl-modal__content {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--text);
	grid-area: content;
	margin-top: 0.6rem;
}

.tl-modal__note {
	display: block;
	padding: 0.75rem 0.85rem;
	border-radius: 14px;
	background: var(--signal-soft);
	border: 1px solid var(--signal-border);
	color: var(--text);
}

.tl-modal__note strong {
	color: var(--signal);
	letter-spacing: 0.04em;
}

.tl-modal__facts {
	display: grid;
	gap: 0.5rem;
	padding: 0;
	color: var(--text);
}

.tl-modal__fact {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	column-gap: 0.55rem;
	padding: 0.58rem 0.7rem;
	border-radius: 14px;
	background: rgba(255, 247, 236, 0.92);
	border: 1px solid rgba(156, 79, 61, 0.14);
	box-shadow: 0 8px 18px rgba(81, 44, 33, 0.06);
}

.tl-modal__fact-label {
	display: none;
}

.tl-modal__fact-value {
	font-size: 0.98rem;
	line-height: 1.4;
	color: var(--text);
	text-align: left;
}

.tl-modal__fact-icon {
	width: 1rem;
	height: 1rem;
	color: var(--accent);
	flex: none;
	display: block;
	align-self: start;
	margin-top: 0.18rem;
}

.tl-modal__fact-value a {
	color: var(--accent);
	text-decoration: underline;
	font-weight: 600;
}

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0ms !important;
	}

	.timeline__stop {
		opacity: 1;
		transform: none;
	}

	.tl-modal__panel {
		transition: none;
	}
}

/* ─── Wider screens ─── */

@media (min-width: 42rem) {
	.invitation {
		padding-top: 2.1rem;
	}

	.tl-header,
	.timeline {
		width: min(100%, var(--content-width));
		margin-left: auto;
		margin-right: auto;
	}

	.timeline {
		margin-top: -0.58rem;
		--timeline-padding-top: 0.2rem;
	}

	.tl-header {
		padding-top: 0;
	}

	.tl-header-spacer {
		height: 0;
	}

	.tl-header__copy {
		left: 50%;
		right: auto;
		width: var(--content-width);
		transform: translateX(-50%);
		bottom: 3.9rem;
		padding: 2.9rem 1.4rem 1.3rem;
	}

	.tl-header__title {
		font-size: clamp(2.85rem, 5.3vw, 4.35rem);
		width: 100%;
		max-width: none;
		position: static;
		left: auto;
		transform: none;
	}

	.delivery__tap-prompt {
		font-size: 2.6rem;
	}

	.tl-header__visual {
		width: min(38vw, 18rem);
		height: calc(min(38vw, 18rem) * 1.1);
		transform: none;
		--tl-header-portrait-crop-bottom: 5rem;
		--tl-header-portrait-fade-height: 11rem;
	}


	.loader {
		max-width: var(--content-width);
		margin: 0 auto;
		padding-top: 1rem;
		padding-left: 1.4rem;
		padding-right: 1.4rem;
		justify-content: center;
		min-height: 100vh;
	}

	.loader__skip {
		right: 1.4rem;
		bottom: 1.2rem;
	}

	.timeline__line {
		top: calc(var(--timeline-padding-top) + (var(--timeline-marker-size) / 2));
		bottom: calc(var(--timeline-step) - (var(--timeline-marker-size) / 2));
		height: auto;
	}

	.timeline__stop {
		--timeline-column-gap: 1.2rem;
		padding-top: 0;
	}

	.timeline__stop:last-child {
		margin-bottom: 0;
	}

	.timeline__body {
		min-height: 0;
	}

	.timeline__label {
		font-size: 0.64rem;
	}

	.timeline__heading {
		font-size: clamp(0.95rem, 1.65vw, 1.46rem);
	}

	.timeline__stop[data-tl-open]::after {
		right: 0.35rem;
	}

	.tl-modal__panel {
		max-width: 32rem;
		width: min(calc(100vw - 2rem), 32rem);
		max-height: calc(100dvh - 2rem);
	}
}

