/*
 * Hochzeitseinladung Digital — „Ja." (theme 2.0)
 * „Couture“ (2026-10-09): mulberry + rose colour blocks, ivory cards, brass hearts; Fraunces + Manrope.
 * DESIGN.md is the source of truth. Text ≥ 4.5 : 1, control edges ≥ 3 : 1, targets ≥ 44 px.
 *
 * 1 Tokens · 2 Base · 3 Type · 4 Buttons & links · 5 Header & menu · 6 Loader
 * 7 Phone · 8 Hero · 9 Sections · 10 Footer · 11 Motion · 12 Reduced motion
 */

/* 1 Tokens ------------------------------------------------------------- */
:root {
	--hid-porcelain: var(--wp--preset--color--porcelain, #fff8f4); /* ivory page ground */
	--hid-paper: var(--wp--preset--color--paper, #fffdfb);
	--hid-ink: var(--wp--preset--color--ink, #24191f);
	--hid-smoke: var(--wp--preset--color--smoke, #6a5560);
	--hid-mulberry: var(--wp--preset--color--mulberry, #4a1230);
	--hid-mulberry-dark: var(--wp--preset--color--mulberry-dark, #2e0a1d);
	--hid-mulberry-soft: var(--wp--preset--color--mulberry-soft, #5e1a3e);
	--hid-rose: var(--wp--preset--color--mineral-rose, #f2dde3);
	--hid-blush: var(--wp--preset--color--blush, #e9c9d2);
	--hid-brass: var(--wp--preset--color--aged-brass, #9a7441);
	--hid-brass-deep: var(--wp--preset--color--brass-deep, #6e5128);
	--hid-brass-light: var(--wp--preset--color--brass-light, #d8b57e);
	--hid-line: var(--wp--preset--color--line, #e5d2d8);
	--hid-edge: var(--wp--preset--color--edge, #9a8189);
	--hid-error: #b42318;
	--hid-serif: var(--wp--preset--font-family--editorial, Fraunces, Georgia, serif);
	--hid-sans: var(--wp--preset--font-family--body, Manrope, system-ui, sans-serif);
	--hid-focus: var(--hid-mulberry);
	--hid-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hid-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
	--hid-gutter: clamp(1rem, 4vw, 3rem);
	--hid-wide: 82rem;
	--hid-bleed: max(var(--hid-gutter), calc((100% - var(--hid-wide)) / 2 + var(--hid-gutter)));
	--hid-header: 4.5rem;
	--hid-radius: 1.5rem;
	--hid-heart: var(--hid-brass);
	--hid-heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 20C7 15.5 1 12.5 1 7C1 3.5 3.6 1 6.6 1C9 1 10.8 2.4 12 4.4C13.2 2.4 15 1 17.4 1C20.4 1 23 3.5 23 7C23 12.5 17 15.5 12 20Z'/%3E%3C/svg%3E");
	--hid-shadow-paper: 0 1px 2px rgb(74 18 48 / 0.06), 0 18px 40px -18px rgb(74 18 48 / 0.22);
	--hid-shadow-stage: 0 2px 6px rgb(46 10 29 / 0.12), 0 50px 100px -34px rgb(46 10 29 / 0.5);
}

@media (min-width: 64rem) {
	:root { --hid-header: 5rem; }
}

/* 2 Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-padding-top: calc(var(--hid-header) + 1.5rem);
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--hid-mulberry) var(--hid-porcelain);
}

body {
	background: var(--hid-porcelain);
	color: var(--hid-ink);
	font-family: var(--hid-sans);
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--hid-porcelain); }
::-webkit-scrollbar-thumb { background: var(--hid-mulberry); border: 3px solid var(--hid-porcelain); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--hid-mulberry-dark); }

::selection { background: var(--hid-mulberry); color: var(--hid-paper); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--hid-focus);
	outline-offset: 3px;
	border-radius: 6px;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

.wp-site-blocks > * { margin-block: 0; }
.hid-site-main { display: block; }
/* Decorative overflow (watermark, halo, rails) never widens the page — iOS pans otherwise. */
.hid-hero, .hid-section, .hid-footer { overflow-x: clip; }
.hid-site-main > * { margin-block: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.hid-skip-link {
	position: fixed;
	z-index: 200;
	top: 0.75rem; left: 0.75rem;
	padding: 0.75rem 1.1rem;
	background: var(--hid-ink);
	color: var(--hid-paper);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform 200ms var(--hid-ease);
}
.hid-skip-link:focus { transform: none; }

/* 3 Type --------------------------------------------------------------- */
.hid-kicker {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.25rem;
	color: var(--hid-brass-deep);
	font: 700 0.8125rem/1.3 var(--hid-sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.hid-kicker::before {
	content: "";
	order: -2;
	flex: none;
	width: 1.75rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}
.hid-kicker::after {
	content: "";
	order: -1;
	flex: none;
	width: 0.6rem;
	height: 0.53rem;
	margin-left: -0.35rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
}
.hid-kicker--light { color: var(--hid-brass-light); --hid-heart: var(--hid-brass-light); }

.hid-h2 {
	margin: 0 0 1.25rem;
	font: 500 var(--wp--preset--font-size--h-2, clamp(2.25rem, 1.55rem + 3vw, 4.5rem)) / 1.04 var(--hid-serif);
	letter-spacing: -0.022em;
	text-wrap: balance;
}
:where(h1, h2, h3) em {
	font-style: italic;
	font-weight: inherit;
	color: var(--hid-mulberry);
}
.hid-lead {
	max-width: 38rem;
	margin: 0;
	color: var(--hid-smoke);
	font-size: var(--wp--preset--font-size--lead, 1.25rem);
	line-height: 1.55;
	text-wrap: pretty;
}
.hid-note {
	margin: 1rem 0 0;
	color: var(--hid-smoke);
	font-size: 0.875rem;
}
.hid-note--light { color: var(--hid-rose); }

/* 4 Buttons & links ---------------------------------------------------- */
.hid-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2rem;
}
.hid-actions--center { justify-content: center; }

.hid-btn {
	--btn-bg: var(--hid-mulberry);
	--btn-fg: var(--hid-paper);
	--btn-hover: var(--hid-mulberry-dark);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-height: 3.375rem;
	padding: 0 1.85rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 700 0.9375rem/1.2 var(--hid-sans);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 260ms var(--hid-ease), color 260ms var(--hid-ease), border-color 260ms var(--hid-ease), transform 160ms var(--hid-ease), gap 320ms var(--hid-ease), padding 320ms var(--hid-ease);
}
/* The heart arrives as the full stop on hover — the brand in one gesture. */
.hid-btn::after {
	content: "";
	width: 0;
	height: 0.58em;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
	transform: scale(0.2) translateY(-0.6em);
	opacity: 0;
	transition: width 320ms var(--hid-ease), transform 420ms var(--hid-ease), opacity 200ms linear;
}
.hid-btn:hover,
.hid-btn:focus-visible {
	background: var(--btn-hover);
	color: var(--btn-fg);
	gap: 0.15rem;
	padding-right: 1.35rem;
}
.hid-btn:hover::after,
.hid-btn:focus-visible::after {
	width: 0.66em;
	transform: none;
	opacity: 1;
}
.hid-btn:active { transform: scale(0.975); }
.hid-btn { --hid-heart: var(--hid-brass-light); }

.hid-btn--small { min-height: 2.75rem; padding: 0 1.2rem; font-size: 0.875rem; }
.hid-btn--small:hover, .hid-btn--small:focus-visible { padding-right: 0.95rem; }

.hid-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--hid-ink);
	--btn-hover: var(--hid-paper);
	--hid-heart: var(--hid-brass);
	border: 1.5px solid var(--hid-edge);
}
.hid-btn--ghost:hover, .hid-btn--ghost:focus-visible { border-color: var(--hid-ink); }

.hid-btn--brass {
	--btn-bg: var(--hid-porcelain);
	--btn-fg: var(--hid-mulberry);
	--btn-hover: var(--hid-rose);
	--hid-heart: var(--hid-mulberry);
}
/* On mulberry every primary action is the ivory pill; ghosts get a rose edge. */
:where(.hid-hero__copy, .hid-section--dark, .hid-section--deep, .hid-footer, .hid-sheet) .hid-btn:not(.hid-btn--ghost) {
	--btn-bg: var(--hid-porcelain);
	--btn-fg: var(--hid-mulberry);
	--btn-hover: var(--hid-rose);
	--hid-heart: var(--hid-mulberry);
}
:where(.hid-hero__copy, .hid-section--dark, .hid-section--deep, .hid-footer, .hid-sheet) .hid-btn--ghost {
	--btn-fg: var(--hid-porcelain);
	--btn-hover: var(--hid-mulberry-soft);
	--hid-heart: var(--hid-brass-light);
	border-color: var(--hid-rose);
}
:where(.hid-hero__copy, .hid-section--dark, .hid-section--deep, .hid-footer, .hid-sheet) { --hid-focus: var(--hid-brass-light); }

.hid-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: var(--hid-mulberry);
	font: 700 0.9375rem/1.3 var(--hid-sans);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left calc(100% - 0.55rem) / 100% 1.5px no-repeat;
	transition: background-size 420ms var(--hid-ease), color 200ms linear;
}
.hid-link:hover, .hid-link:focus-visible {
	color: var(--hid-mulberry-dark);
	animation: hid-underline 620ms var(--hid-ease) forwards;
}
@keyframes hid-underline {
	0% { background-size: 100% 1.5px; background-position: right calc(100% - 0.55rem); }
	50% { background-size: 0 1.5px; background-position: right calc(100% - 0.55rem); }
	51% { background-size: 0 1.5px; background-position: left calc(100% - 0.55rem); }
	100% { background-size: 100% 1.5px; background-position: left calc(100% - 0.55rem); }
}
.hid-link--light, .hid-link--light:hover, .hid-link--light:focus-visible { color: var(--hid-porcelain); }

.hid-chip {
	min-height: 2.75rem;
	padding: 0 1.15rem;
	border: 1.5px solid var(--hid-edge);
	border-radius: 999px;
	background: var(--hid-paper);
	color: var(--hid-ink);
	font: 600 0.8125rem/1 var(--hid-sans);
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 220ms var(--hid-ease), color 220ms var(--hid-ease), border-color 220ms var(--hid-ease), transform 160ms var(--hid-ease);
}
.hid-chip:hover { border-color: var(--hid-ink); }
.hid-chip:active { transform: scale(0.96); }
.hid-chip[aria-pressed="true"] { background: var(--hid-mulberry); border-color: var(--hid-mulberry); color: var(--hid-porcelain); }

.hid-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--hid-brass-deep);
	font: 600 0.75rem/1.4 var(--hid-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hid-tags li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hid-tags li::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--hid-brass);
}

/* 5 Header & menu ------------------------------------------------------ */
.hid-header {
	position: sticky;
	top: 0;
	z-index: 50;
	view-transition-name: hid-header;
}
.hid-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--hid-porcelain) 84%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	border-bottom: 1px solid var(--hid-line);
	opacity: 0;
	transition: opacity 320ms var(--hid-ease);
}
.hid-header[data-scrolled]::before { opacity: 1; }

.hid-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	max-width: var(--hid-wide);
	height: var(--hid-header);
	margin-inline: auto;
	padding-inline: var(--hid-gutter);
	transition: height 320ms var(--hid-ease);
}
.hid-header[data-scrolled] .hid-header__bar { height: calc(var(--hid-header) - 0.75rem); }

.hid-header__brand {
	display: block;
	color: var(--hid-ink);
	line-height: 0;
	border-radius: 6px;
}
.hid-logo { display: block; width: auto; overflow: visible; }
.hid-logo--lockup { aspect-ratio: 513.09 / 81.66; }
.hid-logo--mark { aspect-ratio: 160.09 / 125.44; }
.hid-header__lockup { height: clamp(2.35rem, 1.5rem + 2vw, 2.9rem); transition: height 320ms var(--hid-ease); }
.hid-header[data-scrolled] .hid-header__lockup { height: clamp(1.9rem, 1.2rem + 1.8vw, 2.5rem); }

.hid-nav { justify-self: center; display: none; }
.hid-nav__list { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.hid-nav__link {
	position: relative;
	display: block;
	padding: 0.5rem 0;
	color: var(--hid-ink);
	font: 600 0.9375rem/1 var(--hid-sans);
	text-decoration: none;
	padding-block: 0.85rem;
}
.hid-nav__link::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 0;
	width: 100%; height: 1px;
	height: 2px;
	background: var(--hid-mulberry);
	transform: translateX(-50%) scaleX(0);
	transition: transform 360ms var(--hid-ease);
}
.hid-nav__link:hover::after, .hid-nav__link:focus-visible::after { transform: translateX(-50%) scaleX(1); }
.hid-nav__link[aria-current="page"] { color: var(--hid-mulberry); }
.hid-nav__link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

.hid-header__actions { display: flex; align-items: center; gap: 0.75rem; justify-self: end; }
.hid-header__cta { display: none; }

.hid-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 2.75rem;
	padding: 0 0.35rem 0 0.9rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--hid-ink);
	font: 600 0.875rem/1 var(--hid-sans);
	cursor: pointer;
}
.hid-menu-toggle__lines { display: grid; gap: 5px; width: 1.4rem; }
.hid-menu-toggle__lines span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 320ms var(--hid-ease); }
.hid-menu-toggle__lines span:last-child { width: 70%; justify-self: end; }
.hid-menu-toggle:hover .hid-menu-toggle__lines span:last-child { transform: scaleX(1.43); transform-origin: right; }

@media (min-width: 36rem) {
	.hid-header__cta { display: inline-flex; }
}
@media (min-width: 64rem) {
	.hid-nav { display: block; }
	.hid-menu-toggle { display: none; }
}

/* Menu sheet (popover) */
.hid-sheet {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0 var(--hid-gutter) max(1.5rem, env(safe-area-inset-bottom));
	border: 0;
	background: var(--hid-mulberry);
	color: var(--hid-porcelain);
	--hid-heart: var(--hid-brass-light);
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-1.5rem);
	transition: opacity 360ms var(--hid-ease), transform 460ms var(--hid-ease), overlay 460ms allow-discrete, display 460ms allow-discrete;
}
.hid-sheet:popover-open { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style {
	.hid-sheet:popover-open { opacity: 0; transform: translateY(-1.5rem); }
}
.hid-sheet::backdrop { background: transparent; }

.hid-sheet__top { display: flex; align-items: center; justify-content: space-between; height: var(--hid-header); }
.hid-sheet__lockup { height: 2.1rem; color: var(--hid-porcelain); }
.hid-sheet__close {
	display: inline-flex; align-items: center; gap: 0.7rem;
	min-height: 2.75rem; padding: 0 0.35rem 0 0.9rem;
	border: 0; background: transparent; color: inherit;
	font: 600 0.875rem/1 var(--hid-sans); cursor: pointer;
}
.hid-sheet__x { position: relative; width: 1.25rem; height: 1.25rem; }
.hid-sheet__x::before, .hid-sheet__x::after {
	content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
}
.hid-sheet__x::before { transform: rotate(45deg); }
.hid-sheet__x::after { transform: rotate(-45deg); }

.hid-sheet__nav { flex: 1; padding-block: clamp(1.5rem, 6vh, 3.5rem) 2rem; }
.hid-sheet__primary { margin: 0; padding: 0; list-style: none; }
.hid-sheet__primary li { border-bottom: 1px solid var(--hid-mulberry-soft); }
.hid-sheet__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0.85rem 0;
	color: var(--hid-porcelain);
	font: 500 clamp(2rem, 1.4rem + 3vw, 2.75rem)/1.05 var(--hid-serif);
	letter-spacing: -0.02em;
	text-decoration: none;
}
.hid-sheet__link::after {
	content: "";
	width: 0.9rem; height: 0.8rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 200ms linear, transform 360ms var(--hid-ease);
}
.hid-sheet__link:hover::after, .hid-sheet__link:focus-visible::after, .hid-sheet__link[aria-current="page"]::after { opacity: 1; transform: none; }
.hid-sheet__link:hover, .hid-sheet__link:focus-visible { font-style: italic; }

.hid-sheet__secondary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1.25rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
.hid-sheet__small { display: inline-block; padding-block: 0.5rem; color: var(--hid-rose); font: 600 0.9375rem/1.3 var(--hid-sans); text-decoration: none; }
.hid-sheet__small:hover { color: var(--hid-porcelain); }
.hid-sheet__foot { display: grid; gap: 0.85rem; }
.hid-sheet__foot .hid-btn { width: 100%; }
.hid-sheet__note { margin: 0; color: var(--hid-rose); font-size: 0.8125rem; text-align: center; }

.hid-sheet:popover-open .hid-sheet__primary li {
	animation: hid-sheet-in 620ms var(--hid-ease-soft) both;
	animation-delay: calc(80ms + var(--i, 0) * 55ms);
}
@keyframes hid-sheet-in {
	from { opacity: 0; transform: translateY(1.25rem); }
}

/* 6 Loader ------------------------------------------------------------- */
.hid-loader {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--hid-porcelain) 90%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	overflow: hidden;
	contain: strict;
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms var(--hid-ease);
}
.hid-loader[hidden] { display: none !important; }
.hid-loader[data-active] { opacity: 1; pointer-events: auto; }
.hid-loader__mark { width: min(40vw, 13rem); height: auto; overflow: visible; }
.hid-loader__ja {
	fill: var(--hid-ink);
	fill-opacity: 0;
	stroke: var(--hid-ink);
	stroke-width: 0.7;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}
.hid-loader__heart { fill: var(--hid-brass); opacity: 0; transform-box: fill-box; transform-origin: 50% 60%; }
.hid-loader[data-active] .hid-loader__ja { animation: hid-ink-draw 1.15s var(--hid-ease) forwards, hid-ink-fill 420ms 1s linear forwards; }
.hid-loader[data-active] .hid-loader__heart { animation: hid-heart-drop 620ms 1.15s var(--hid-ease) forwards, hid-heart-beat 1.6s 2s ease-in-out infinite; }

/* 7 Phone -------------------------------------------------------------- */
.hid-phone {
	--phone-w: 17rem;
	display: block;
	width: var(--phone-w);
	flex: none;
}
.hid-phone__body {
	position: relative;
	display: block;
	padding: calc(var(--phone-w) * 0.032);
	border-radius: calc(var(--phone-w) * 0.16);
	background: linear-gradient(150deg, #3a2a31 0%, #170e12 42%, #241a1e 100%);
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.1),
		inset 0 1px 0 rgb(255 255 255 / 0.18),
		var(--hid-shadow-stage);
}
.hid-phone__screen {
	position: relative;
	display: block;
	aspect-ratio: 600 / 1298;
	overflow: hidden;
	border-radius: calc(var(--phone-w) * 0.13);
	background: #efe7da;
	isolation: isolate;
}
.hid-phone__screen::before {
	content: "";
	position: absolute;
	z-index: 4;
	top: 2.2%;
	left: 50%;
	width: 30%;
	height: 3.3%;
	border-radius: 99px;
	background: #0d0709;
	transform: translateX(-50%);
	pointer-events: none;
}
.hid-phone__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(120deg, rgb(255 255 255 / 0.16) 0%, transparent 32%);
	pointer-events: none;
}
.hid-phone__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 520ms var(--hid-ease), transform 900ms var(--hid-ease);
	transform: scale(1.02);
}
.hid-phone__poster.is-active { opacity: 1; transform: none; }
/* The demo renders at 390 × 844 and is scaled down to the screen: never let the global max-width shrink it first. */
.hid-phone__frame {
	max-width: none;
	position: absolute;
	z-index: 2;
	top: 0; left: 0;
	width: 390px;
	height: 844px;
	border: 0;
	transform-origin: 0 0;
	background: transparent;
	opacity: 0;
	transition: opacity 600ms var(--hid-ease);
}
[data-live="ready"] .hid-phone__frame { opacity: 1; }

.hid-phone__play {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--hid-porcelain);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--hid-ink);
	font: 700 0.8125rem/1 var(--hid-sans);
	letter-spacing: 0.04em;
	white-space: nowrap;
	cursor: pointer;
	transform: translate(-50%, 50%);
	box-shadow: 0 10px 30px -12px rgb(36 25 31 / 0.5);
	transition: transform 200ms var(--hid-ease), opacity 300ms linear;
}
.hid-phone__play:hover { transform: translate(-50%, 50%) scale(1.04); }
.hid-phone__play-dot {
	position: relative;
	width: 0.55rem; height: 0.55rem;
	border-radius: 50%;
	background: var(--hid-mulberry);
}
.hid-phone__play-dot::after {
	content: "";
	position: absolute;
	inset: -0.3rem;
	border-radius: 50%;
	border: 1px solid var(--hid-mulberry);
	animation: hid-ping 2.2s var(--hid-ease) infinite;
}
[data-live] .hid-phone__play { opacity: 0; pointer-events: none; }
@keyframes hid-ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* 8 Hero --------------------------------------------------------------- */
.hid-hero {
	position: relative;
	display: grid;
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--hid-rose);
}
.hid-hero__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.75rem, 7vw, 6rem) var(--hid-gutter) clamp(3rem, 7vw, 5.5rem);
	background: var(--hid-mulberry);
	color: var(--hid-porcelain);
	overflow: hidden;
	isolation: isolate;
	--hid-heart: var(--hid-brass-light);
}
.hid-hero__ja {
	position: absolute;
	z-index: -1;
	right: -12%;
	bottom: -22%;
	width: min(120%, 52rem);
	height: auto;
	overflow: visible;
	pointer-events: none;
}
.hid-hero__ja-ink { fill: var(--hid-mulberry-soft); }
.hid-hero__kicker { margin-bottom: clamp(1.25rem, 3vw, 2rem); color: var(--hid-brass-light); }
.hid-hero__title {
	margin: 0;
	color: var(--hid-porcelain);
	font: 500 clamp(2.75rem, 1.6rem + 3.2vw, 4.75rem) / 1 var(--hid-serif);
	letter-spacing: -0.02em;
	hyphens: manual;
	text-wrap: balance;
}
.hid-hero__title em { padding-right: 0.06em; color: var(--hid-rose); }
.hid-hero__line { display: block; }
.hid-hero__lead {
	max-width: 34rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	color: var(--hid-rose);
	font-size: var(--wp--preset--font-size--lead, 1.25rem);
	line-height: 1.6;
	text-wrap: pretty;
}
.hid-hero .hid-link { color: var(--hid-porcelain); }
.hid-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	margin: 2.25rem 0 0;
	padding: 1.5rem 0 0;
	list-style: none;
	border-top: 1px solid var(--hid-mulberry-soft);
	color: var(--hid-rose);
	font: 600 0.9375rem/1.4 var(--hid-sans);
}
.hid-hero__facts li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hid-hero__facts li::before {
	content: "";
	width: 0.65rem; height: 0.57rem;
	background: var(--hid-brass-light);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
}
.hid-crumbs { color: var(--hid-rose); }
.hid-crumbs [aria-current] { color: var(--hid-porcelain); }
.hid-crumbs a:hover { color: var(--hid-porcelain); }

.hid-stage {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 2.25rem;
	padding: clamp(3rem, 7vw, 5rem) var(--hid-gutter) clamp(3rem, 6vw, 4.5rem);
}
/* The heart is the composition's full stop: it sits at the phone's lower right. */
.hid-stage__heart {
	position: absolute;
	z-index: 6;
	right: calc(var(--phone-w) * -0.17);
	bottom: calc(var(--phone-w) * 0.07);
	width: calc(var(--phone-w) * 0.13);
	height: auto;
	overflow: visible;
	fill: var(--hid-brass);
	filter: drop-shadow(0 6px 10px rgb(110 81 40 / 0.35));
	transform-origin: 50% 60%;
}
.hid-stage__phone {
	position: relative;
	z-index: 1;
	--phone-w: clamp(14.5rem, 62vw, 17.5rem);
}
.hid-stage__phone .hid-phone__body { animation: hid-float 7s ease-in-out infinite alternate; }
/* Design names as a couture type list (the switch). */
.hid-stage__switch { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
.hid-stage__switch .hid-chip {
	min-height: 2.75rem;
	padding: 0.15rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hid-mulberry);
	font: 500 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1 var(--hid-serif);
	letter-spacing: -0.01em;
	text-decoration: underline 2px transparent;
	text-underline-offset: 0.3em;
	transition: color 200ms linear, text-decoration-color 200ms linear;
}
.hid-stage__switch .hid-chip:hover { text-decoration-color: var(--hid-edge); }
.hid-stage__switch .hid-chip[aria-pressed="true"] { background: transparent; color: var(--hid-mulberry); font-style: italic; text-decoration-color: currentColor; }
.hid-stage__note {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 1.25rem;
	margin: 0;
	color: var(--hid-ink);
	font-size: 0.875rem;
}
.hid-stage__note a { display: inline-block; padding-block: 0.65rem; color: var(--hid-mulberry); font-weight: 700; }

@media (min-width: 64rem) {
	.hid-hero {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		min-height: calc(100svh - var(--hid-header));
		max-height: 64rem;
	}
	.hid-hero__copy { padding-left: max(var(--hid-gutter), calc((100vw - var(--hid-wide)) / 2 + var(--hid-gutter))); padding-right: clamp(2.5rem, 5vw, 5rem); }
	.hid-stage {
		grid-template-columns: auto auto;
		justify-content: center;
		align-items: center;
		column-gap: clamp(2rem, 4vw, 4rem);
		padding-right: max(var(--hid-gutter), calc((100vw - var(--hid-wide)) / 2 + var(--hid-gutter)));
	}
	.hid-stage__switch { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
	.hid-stage__note { grid-column: 1 / -1; }
	.hid-stage__phone { --phone-w: clamp(15.5rem, 19vw, 18.5rem); }
	.hid-stage__phone .hid-phone__body { transform: perspective(1800px) rotateY(var(--tilt-y, -7deg)) rotateX(var(--tilt-x, 3deg)); }
}

@keyframes hid-float {
	from { translate: 0 0; }
	to { translate: 0 -10px; }
}

/* 9 Sections ----------------------------------------------------------- */
.hid-section {
	max-width: var(--hid-wide);
	margin-inline: auto;
	padding: clamp(4rem, 8vw, 7rem) var(--hid-gutter);
}
.hid-section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hid-section__head--center { margin-inline: auto; text-align: center; }
.hid-section__head--center .hid-kicker { justify-content: center; }
.hid-section__head--center .hid-lead { margin-inline: auto; }

/* Colour blocks run edge to edge; their content keeps the wide measure. */
.hid-section--dark, .hid-section--deep, .hid-section--rose, .hid-designs, .hid-pricing {
	max-width: none;
	padding-inline: var(--hid-bleed);
}
.hid-section--rose, .hid-designs, .hid-pricing { background: var(--hid-rose); }
.hid-section--dark, .hid-section--deep {
	position: relative;
	isolation: isolate;
	color: var(--hid-porcelain);
	--hid-heart: var(--hid-brass-light);
}
.hid-section--dark :where(h2, h3), .hid-section--deep :where(h2, h3) { color: var(--hid-porcelain); }
.hid-section--dark .hid-lead, .hid-section--deep .hid-lead, .hid-section--dark .hid-note, .hid-section--deep .hid-note { color: var(--hid-rose); }
.hid-section--dark :where(h2, h3) em, .hid-section--deep :where(h2, h3) em { color: var(--hid-rose); }
.hid-section--dark .hid-link, .hid-section--deep .hid-link { color: var(--hid-porcelain); }
.hid-section--dark { background: var(--hid-mulberry); }
.hid-section--deep { background: var(--hid-mulberry-dark); }
.hid-section--dark .hid-kicker, .hid-section--deep .hid-kicker { color: var(--hid-brass-light); }

/* Moments */
.hid-moments { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.hid-moments__list { position: relative; margin: 0; padding: 0 0 0 2.75rem; list-style: none; }
.hid-moments__list::before {
	content: "";
	position: absolute;
	top: 0.6rem; bottom: 0.6rem; left: 0.55rem;
	width: 1px;
	background: linear-gradient(var(--hid-brass), color-mix(in srgb, var(--hid-brass) 30%, transparent));
	transform-origin: top;
}
.hid-moment { position: relative; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hid-moment:last-child { padding-bottom: 0; }
.hid-moment__node {
	position: absolute;
	top: 0.45rem;
	left: -2.75rem;
	width: 1.15rem;
	height: 1rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
	box-shadow: 0 0 0 6px var(--hid-porcelain);
}
.hid-moment__num { display: block; color: var(--hid-mulberry); font: italic 500 1.125rem/1 var(--hid-serif); letter-spacing: 0.04em; }
.hid-moment__title { margin: 0.5rem 0 0.75rem; font: 500 var(--wp--preset--font-size--h-3, 2rem)/1.1 var(--hid-serif); letter-spacing: -0.015em; }
.hid-moment p { max-width: 34rem; margin: 0; color: var(--hid-smoke); }

@media (min-width: 64rem) {
	.hid-moments { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
	.hid-moments__intro { position: sticky; top: calc(var(--hid-header) + 3rem); }
	.hid-moments__list { padding-top: 0.25rem; }
}

/* Designs */
.hid-designs__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(80%, 20rem);
	gap: 1rem;
	margin: 0 calc(var(--hid-gutter) * -1);
	padding: 0.5rem var(--hid-gutter) 1.5rem;
	list-style: none;
	overflow-x: auto;
	contain: inline-size;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--hid-gutter);
	scrollbar-width: thin;
}
.hid-design {
	position: relative; /* keeps visually hidden labels inside the rail */
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	border-radius: var(--hid-radius);
	background: var(--hid-paper);
	box-shadow: var(--hid-shadow-paper);
	overflow: hidden;
	transition: box-shadow 420ms var(--hid-ease), transform 420ms var(--hid-ease);
}
.hid-design:hover { box-shadow: 0 2px 4px rgb(53 16 32 / 0.06), 0 30px 60px -24px rgb(53 16 32 / 0.32); }
.hid-design__visual {
	display: flex;
	justify-content: center;
	padding: 2rem 1rem 0;
	background: var(--hid-blush);
	max-height: 21rem;
	overflow: hidden;
}
.hid-phone--card { --phone-w: 12.5rem; transition: transform 620ms var(--hid-ease); }
.hid-phone--card .hid-phone__body { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 50px -24px rgb(53 16 32 / 0.55); }
.hid-design:hover .hid-phone--card { transform: translateY(-0.6rem) rotate(-1.5deg); }
.hid-design__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; }
.hid-design__occasions { margin: 0; color: var(--hid-brass-deep); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.hid-design__name { margin: 0.5rem 0 0.4rem; color: var(--hid-mulberry); font: 500 2.25rem/1 var(--hid-serif); letter-spacing: -0.02em; }
.hid-design__line { margin: 0; color: var(--hid-smoke); font-size: 0.9375rem; line-height: 1.5; }
.hid-swatches { display: flex; align-items: center; gap: 0.45rem; margin: 1.1rem 0 1.25rem; }
.hid-swatch {
	width: 1.75rem; height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1.5px rgb(36 25 31 / 0.35);
	cursor: pointer;
	transition: box-shadow 200ms var(--hid-ease), transform 160ms var(--hid-ease);
}
.hid-swatch:hover { transform: scale(1.08); }
.hid-swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px rgb(36 25 31 / 0.35), 0 0 0 3px var(--hid-paper), 0 0 0 5px var(--hid-mulberry); }
.hid-swatches__label { margin-left: 0.35rem; color: var(--hid-smoke); font-size: 0.875rem; }
.hid-design__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.hid-designs__note { text-align: center; }

@media (min-width: 48rem) {
	.hid-designs__grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; overflow: visible; contain: none; }
}
@media (min-width: 80rem) {
	.hid-designs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Nikah */
.hid-nikah__inner { display: grid; gap: clamp(3rem, 7vw, 6rem); max-width: var(--hid-wide); margin-inline: auto; align-items: center; }
.hid-feasts { margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hid-mulberry-soft); }
.hid-feast { border-bottom: 1px solid var(--hid-mulberry-soft); }
.hid-feast a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.15rem 1.5rem;
	padding: 1.4rem 0;
	color: inherit;
	text-decoration: none;
}
.hid-feast__sub { grid-column: 1; color: var(--hid-brass-light); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.hid-feast__name { grid-column: 1; font: 500 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.05 var(--hid-serif); letter-spacing: -0.02em; transition: transform 420ms var(--hid-ease), color 200ms linear; }
.hid-feast__text { grid-column: 1; max-width: 32rem; margin-top: 0.35rem; color: var(--hid-rose); font-size: 0.9375rem; }
.hid-feast__more {
	grid-column: 2; grid-row: 1 / span 3; align-self: center;
	display: inline-flex; align-items: center; gap: 0.5rem;
	color: var(--hid-brass-light); font: 700 0.875rem/1 var(--hid-sans);
	opacity: 0.8; transition: opacity 200ms linear, transform 420ms var(--hid-ease);
}
.hid-feast__more::after {
	content: "";
	width: 0.7rem; height: 0.6rem;
	background: currentColor;
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
}
.hid-feast a:hover .hid-feast__name, .hid-feast a:focus-visible .hid-feast__name { transform: translateX(0.5rem); font-style: italic; color: var(--hid-rose); }
.hid-feast a:hover .hid-feast__more, .hid-feast a:focus-visible .hid-feast__more { opacity: 1; transform: translateX(-0.25rem); }
.hid-nikah__visual { display: grid; justify-items: center; gap: 1.5rem; margin: 0; }
.hid-phone--tilt { --phone-w: clamp(14rem, 56vw, 18rem); transform: rotate(4deg); }
@media (max-width: 40rem) { .hid-feast__more { display: none; } }
@media (min-width: 64rem) {
	.hid-nikah__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}

/* Save the Date */
.hid-std { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.hid-std__visual { position: relative; display: grid; place-items: center end; margin: 0; padding-block: 1rem; }
.hid-std__date {
	position: absolute;
	inset: 0 auto 0 0;
	display: grid;
	place-content: center start;
	color: var(--hid-blush);
	font: italic 500 clamp(6rem, 3rem + 14vw, 12rem)/0.82 var(--hid-serif);
	letter-spacing: -0.04em;
	text-align: left;
	pointer-events: none;
	user-select: none;
}
.hid-std__date span:nth-child(2) { color: var(--hid-mulberry); }
.hid-phone--std { position: relative; --phone-w: clamp(12.5rem, 50vw, 16.5rem); margin-right: clamp(0rem, 6vw, 4rem); transform: rotate(-5deg); }
.hid-credit {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1.25rem;
	align-items: center;
	max-width: 34rem;
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	border: 0;
	border-radius: var(--hid-radius);
	background: var(--hid-rose);
}
.hid-credit__amount { color: var(--hid-mulberry); font: 500 2.5rem/1 var(--hid-serif); font-variant-numeric: lining-nums; }
.hid-credit p { margin: 0; color: var(--hid-smoke); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 64rem) {
	.hid-std { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

/* Packages */
.hid-packages {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hid-package {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--hid-radius);
	background: var(--hid-paper);
	box-shadow: var(--hid-shadow-paper);
}
.hid-package__name { margin: 0; color: var(--hid-mulberry); font: 600 2rem/1 var(--hid-serif); letter-spacing: -0.02em; }
.hid-package__tagline { min-height: 3em; margin: 0.65rem 0 1.5rem; color: var(--hid-smoke); font-size: 0.9375rem; line-height: 1.5; }
.hid-package__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0; }
.hid-package__amount { font: 500 clamp(2.75rem, 2rem + 2vw, 3.5rem)/1 var(--hid-serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.hid-package__vat { color: var(--hid-smoke); font-size: 0.8125rem; }
.hid-package__delivery { margin: 0.6rem 0 0; color: var(--hid-brass-deep); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.hid-package__list { display: grid; gap: 0.6rem; margin: 1.5rem 0 2rem; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--hid-line); font-size: 0.9375rem; line-height: 1.45; }
.hid-package__list li { position: relative; padding-left: 1.4rem; }
.hid-package__list li::before {
	content: "";
	position: absolute;
	top: 0.42em; left: 0;
	width: 0.7rem; height: 0.6rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
}
.hid-package .hid-btn { margin-top: auto; }
.hid-package--atelier {
	background: var(--hid-mulberry);
	color: var(--hid-porcelain);
	--hid-heart: var(--hid-brass-light);
	--hid-focus: var(--hid-brass-light);
}
.hid-package--atelier .hid-package__name { color: var(--hid-rose); font-style: italic; }
.hid-package--atelier :is(.hid-package__tagline, .hid-package__vat) { color: var(--hid-rose); }
.hid-package--atelier .hid-package__delivery { color: var(--hid-brass-light); }
.hid-package--atelier .hid-package__list { border-color: var(--hid-mulberry-soft); }
.hid-package--atelier .hid-btn { --btn-bg: var(--hid-porcelain); --btn-fg: var(--hid-mulberry); --btn-hover: var(--hid-rose); --hid-heart: var(--hid-mulberry); }
.hid-package--atelier .hid-btn--ghost { --btn-bg: transparent; --btn-fg: var(--hid-porcelain); --btn-hover: var(--hid-mulberry-soft); border-color: var(--hid-rose); }
.hid-pricing__more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.25rem; margin: 2.5rem 0 0; color: var(--hid-ink); font-size: 0.875rem; }
.hid-pricing__fallback { text-align: center; }
@media (min-width: 48rem) { .hid-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .hid-packages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

/* Process */
.hid-steps { display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.hid-step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--hid-mulberry); }
.hid-step__num { display: block; color: var(--hid-mulberry); font: italic 500 3.5rem/1 var(--hid-serif); }
.hid-step__title { margin: 0.75rem 0 0.6rem; font: 600 1.6rem/1.1 var(--hid-serif); letter-spacing: -0.01em; }
.hid-step p { margin: 0; color: var(--hid-smoke); font-size: 0.9375rem; }
.hid-process__more { margin: 2.5rem 0 0; }
@media (min-width: 48rem) { .hid-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; } }
@media (min-width: 72rem) { .hid-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* FAQ */
.hid-faq { max-width: 60rem; }
.hid-faq__list { border-top: 1px solid var(--hid-line); }
.hid-faq__item { border-bottom: 1px solid var(--hid-line); interpolate-size: allow-keywords; }
.hid-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.4rem 0;
	font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.25 var(--hid-serif);
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
}
.hid-faq__item summary::-webkit-details-marker { display: none; }
.hid-faq__item summary:hover { color: var(--hid-mulberry); }
.hid-faq__icon { position: relative; flex: none; width: 1rem; height: 1rem; }
.hid-faq__icon::before, .hid-faq__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: var(--hid-mulberry); transition: transform 360ms var(--hid-ease); }
.hid-faq__icon::after { transform: rotate(90deg); }
.hid-faq__item[open] .hid-faq__icon::after { transform: rotate(0deg); }
.hid-faq__item::details-content { height: 0; overflow: clip; transition: height 420ms var(--hid-ease), content-visibility 420ms allow-discrete; }
.hid-faq__item[open]::details-content { height: auto; }
.hid-faq__answer p { max-width: 44rem; margin: 0; padding: 0 0 1.5rem; color: var(--hid-smoke); }
.hid-faq__more { margin: 2rem 0 0; color: var(--hid-smoke); }
.hid-faq__more a { color: var(--hid-mulberry); font-weight: 600; }

/* Final */
.hid-section--deep.hid-final { background: var(--hid-mulberry); }
.hid-final { display: grid; justify-items: center; text-align: center; padding-block: clamp(6rem, 13vw, 11rem); }
.hid-final__mark { width: min(56vw, 17rem); height: auto; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); overflow: visible; }
.hid-final__ja { fill: var(--hid-porcelain); }
.hid-final__heart { fill: var(--hid-brass-light); transform-box: fill-box; transform-origin: 50% 60%; }
.hid-final .hid-h2 { max-width: 15ch; }
.hid-final .hid-lead { margin-inline: auto; }

/* Landing pages ---------------------------------------------------------- */
.hid-hero--page { min-height: 0; }
@media (min-width: 64rem) {
	.hid-hero--page { min-height: min(calc(100svh - var(--hid-header)), 52rem); padding-block: 2rem 5rem; }
}
.hid-hero__title--page { font-size: clamp(2.4rem, 1.2rem + 3.3vw, 4.25rem); line-height: 1.02; text-wrap: balance; }
.hid-hero__title--page em { padding-right: 0.05em; }
.hid-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
	margin: 0 0 1.75rem;
	font: 600 0.875rem/1.3 var(--hid-sans);
	animation: hid-rise 700ms var(--hid-ease-soft) both;
}
.hid-crumbs a { display: inline-block; padding-block: 0.6rem; color: inherit; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--hid-mulberry-soft); }
.hid-hero--page .hid-hero__title { animation: hid-line-in 900ms var(--hid-ease-soft) both; }
.hid-hero--page .hid-write { display: inline-block; animation: hid-write 1.3s 450ms cubic-bezier(0.55, 0.1, 0.25, 1) both; }
.hid-stage--page { padding-top: 0; }
.hid-stage__halo {
	position: absolute;
	z-index: 0;
	top: 44%;
	left: 50%;
	width: min(128%, 34rem, 100vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--hid-blush);
	transform: translate(-50%, -50%);
	pointer-events: none;
	animation: hid-halo 1.4s 150ms var(--hid-ease-soft) both;
}
.hid-stage__halo::after {
	content: "";
	position: absolute;
	inset: 8%;
	border: 1.5px solid var(--hid-brass);
	border-radius: 50%;
}
@keyframes hid-halo { from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } }

/* Prose */
.hid-prose { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.hid-prose__main { max-width: 44rem; }
.hid-prose .hid-section__head { margin-bottom: 1.75rem; }
.hid-prose__text { color: var(--hid-ink); font-size: 1.0625rem; line-height: 1.75; }
.hid-prose__text p { max-width: 64ch; margin: 0 0 1.15rem; }
.hid-prose__text h3 { margin: 2rem 0 0.6rem; font: 600 1.6rem/1.15 var(--hid-serif); letter-spacing: -0.01em; }
.hid-prose__text a { color: var(--hid-mulberry); text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, var(--hid-mulberry) 40%, transparent); }
.hid-prose__text a:hover { text-decoration-color: currentColor; }
.hid-aside {
	align-self: start;
	padding: 1.75rem;
	border-radius: var(--hid-radius);
	background: var(--hid-paper);
	box-shadow: var(--hid-shadow-paper);
}
.hid-aside__title { margin: 0 0 1rem; color: var(--hid-brass-deep); font: 700 0.8125rem/1.3 var(--hid-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.hid-aside ul { display: grid; gap: 0.7rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.5; }
.hid-aside li, .hid-checklist li { position: relative; padding-left: 1.4rem; }
.hid-aside li::before, .hid-checklist li::before {
	content: "";
	position: absolute; top: 0.45em; left: 0;
	width: 0.7rem; height: 0.6rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
}
@media (min-width: 64rem) {
	.hid-prose--aside { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); align-items: start; }
	.hid-prose--aside .hid-aside { position: sticky; top: calc(var(--hid-header) + 2rem); margin-top: 6rem; }
}

/* Features */
.hid-features__inner { max-width: var(--hid-wide); margin-inline: auto; }
.hid-features__grid { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--hid-line); border: 1px solid var(--hid-line); border-radius: var(--hid-radius); overflow: hidden; }
.hid-feature { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--hid-porcelain); transition: background-color 300ms var(--hid-ease); }
.hid-feature:hover { background: var(--hid-paper); }
.hid-feature__mark {
	display: block; width: 1rem; height: 0.88rem; margin-bottom: 1.25rem;
	background: var(--hid-heart);
	-webkit-mask: var(--hid-heart-mask) center / contain no-repeat;
	mask: var(--hid-heart-mask) center / contain no-repeat;
	transition: transform 420ms var(--hid-ease);
}
.hid-feature:hover .hid-feature__mark { transform: scale(1.25); }
.hid-feature.is-in .hid-feature__mark { animation: hid-heart-beat 1.3s calc(300ms + var(--i, 0) * 90ms) ease-in-out 1; }
.hid-feature__title { margin: 0 0 0.5rem; font: 600 1.5rem/1.15 var(--hid-serif); letter-spacing: -0.01em; }
.hid-feature p { margin: 0; color: var(--hid-smoke); font-size: 0.9375rem; line-height: 1.6; }
.hid-features .hid-note { margin-top: 1.5rem; }
.hid-section--dark .hid-features__grid { background: var(--hid-mulberry-soft); border-color: var(--hid-mulberry-soft); }
.hid-section--dark .hid-feature { background: var(--hid-mulberry); }
.hid-section--dark .hid-feature:hover { background: var(--hid-mulberry-dark); }
.hid-section--dark .hid-feature p { color: var(--hid-rose); }
@media (min-width: 40rem) { .hid-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) {
	.hid-features__grid[data-count="3"], .hid-features__grid[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hid-features__grid[data-count="4"], .hid-features__grid[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Compare + ladder tables */
.hid-compare__scroll { position: relative; overflow-x: auto; margin-inline: calc(var(--hid-gutter) * -1); padding-inline: var(--hid-gutter); scrollbar-width: thin; }
.hid-compare__table { width: 100%; min-width: 36rem; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.hid-compare__table caption { padding-bottom: 1rem; text-align: left; font: 600 1.75rem/1.1 var(--hid-serif); }
.hid-compare__table :is(th, td) { padding: 0.95rem 1rem; border-bottom: 1px solid var(--hid-line); text-align: left; vertical-align: top; }
.hid-compare__table thead th { font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hid-brass-deep); vertical-align: bottom; }
.hid-compare__table thead th span { display: block; margin-top: 0.4rem; color: var(--hid-mulberry); font: 600 1.6rem/1 var(--hid-serif); letter-spacing: -0.02em; text-transform: none; }
.hid-compare__table tbody th { width: 34%; font-weight: 600; }
.hid-compare__table td { color: var(--hid-smoke); }
.hid-compare__table .is-ours { background: var(--hid-rose); color: var(--hid-ink); }
.hid-compare__table thead .is-ours { border-radius: 1rem 1rem 0 0; color: var(--hid-mulberry); }
.hid-compare__table tbody tr:last-child .is-ours { border-radius: 0 0 1rem 1rem; }
.hid-yes { display: inline-block; width: 0.95rem; height: 0.83rem; background: var(--hid-heart); -webkit-mask: var(--hid-heart-mask) center / contain no-repeat; mask: var(--hid-heart-mask) center / contain no-repeat; vertical-align: -0.1em; }
.hid-no { color: var(--hid-smoke); }
.hid-extra { color: var(--hid-brass-deep); font-size: 0.8125rem; font-weight: 600; }
.hid-ladder__block + .hid-ladder__block { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Messages (WhatsApp) */
.hid-messages__list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.hid-message { display: grid; gap: 0.85rem; align-content: start; justify-items: start; padding: 1.5rem; border-radius: var(--hid-radius); background: var(--hid-rose); }
.hid-message__label { margin: 0; color: var(--hid-brass-deep); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.hid-message__bubble {
	position: relative;
	max-width: 30rem;
	padding: 0.85rem 1rem 0.95rem;
	border-radius: 0.9rem 0.9rem 0.9rem 0.2rem;
	background: var(--hid-paper);
	box-shadow: 0 1px 1px rgb(36 25 31 / 0.12);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.hid-message__copy[data-copied] { background: var(--hid-ink); color: var(--hid-paper); border-color: var(--hid-ink); }
@media (min-width: 64rem) { .hid-messages__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Checklist */
.hid-checklist__cols { display: grid; gap: 1.25rem; }
.hid-checklist__group { padding: 1.75rem; border-radius: var(--hid-radius); background: var(--hid-paper); box-shadow: var(--hid-shadow-paper); }
.hid-checklist__group h3 { margin: 0 0 1rem; font: 600 1.5rem/1.15 var(--hid-serif); }
.hid-checklist ul { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 48rem) { .hid-checklist__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Add-ons */
.hid-addons__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--hid-line); border-block: 1px solid var(--hid-line); }
.hid-addon { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; padding: 1.25rem 0; background: var(--hid-porcelain); }
.hid-addon__name { font: 600 1.35rem/1.2 var(--hid-serif); }
.hid-addon__text { grid-column: 1; color: var(--hid-smoke); font-size: 0.9375rem; }
.hid-addon__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--hid-brass-deep); font: 500 1.5rem/1 var(--hid-serif); font-variant-numeric: lining-nums; white-space: nowrap; }

/* Related */
.hid-related__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hid-related__list a {
	display: grid; align-content: start; gap: 0.4rem; height: 100%;
	padding: 1.5rem 1.5rem 1.6rem;
	border: 1.5px solid var(--hid-edge);
	border-radius: var(--hid-radius);
	color: inherit; text-decoration: none;
	transition: background-color 300ms var(--hid-ease), border-color 300ms var(--hid-ease), transform 300ms var(--hid-ease), box-shadow 300ms var(--hid-ease);
}
.hid-related__list a:hover, .hid-related__list a:focus-visible { background: var(--hid-paper); border-color: transparent; transform: translateY(-3px); box-shadow: var(--hid-shadow-paper); }
.hid-related__name { font: 600 1.5rem/1.15 var(--hid-serif); }
.hid-related__list a:hover .hid-related__name { font-style: italic; }
.hid-related__name { color: var(--hid-mulberry); }
.hid-related__text { color: var(--hid-smoke); font-size: 0.9375rem; }
@media (min-width: 48rem) { .hid-related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Contact */
.hid-contact__grid { display: grid; gap: 1rem; }
.hid-contact__card {
	display: grid; align-content: start; gap: 0.5rem;
	padding: 1.75rem;
	border-radius: var(--hid-radius);
	background: var(--hid-paper);
	box-shadow: var(--hid-shadow-paper);
	color: inherit; text-decoration: none;
	transition: transform 300ms var(--hid-ease), box-shadow 300ms var(--hid-ease);
}
.hid-contact__card:hover { transform: translateY(-3px); }
.hid-contact__card--main { background: var(--hid-mulberry); color: var(--hid-porcelain); --hid-focus: var(--hid-brass-light); }
.hid-contact__label { color: var(--hid-brass-deep); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.hid-contact__card--main .hid-contact__label { color: var(--hid-brass-light); }
.hid-contact__value { font: 500 clamp(1.4rem, 1rem + 1.6vw, 2.1rem)/1.15 var(--hid-serif); overflow-wrap: anywhere; }
.hid-contact__text { color: var(--hid-smoke); font-size: 0.9375rem; }
.hid-contact__card--main .hid-contact__text { color: var(--hid-rose); }
.hid-contact__more { margin-top: 0.5rem; color: var(--hid-mulberry); font-weight: 600; font-size: 0.875rem; }
@media (min-width: 48rem) { .hid-contact__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Speed (2026-10-25): sections below the first screen are laid out only when they come near the viewport.
   On a mid-range phone this took first paint from ~4 s to the hero alone. Sizes are remembered once rendered. */
.hid-site-main .hid-section, .hid-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hid-footer { contain-intrinsic-size: auto 640px; }

/* 10 Footer ------------------------------------------------------------ */
.hid-footer {
	background: var(--hid-mulberry-dark);
	color: var(--hid-rose);
	--hid-heart: var(--hid-brass-light);
	font-size: 0.9375rem;
}
.hid-footer__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
	max-width: var(--hid-wide);
	margin-inline: auto;
	padding: clamp(3.5rem, 7vw, 5.5rem) var(--hid-gutter) 3rem;
}
.hid-footer__brand { grid-column: 1 / -1; display: grid; justify-items: start; gap: 1.25rem; }
.hid-footer__brand > a:not(.hid-btn) { color: var(--hid-porcelain); line-height: 0; border-radius: 6px; }
.hid-footer__lockup { height: clamp(2.4rem, 1.8rem + 1.6vw, 3rem); }
.hid-footer__claim { margin: 0; color: var(--hid-porcelain); font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--hid-serif); letter-spacing: -0.01em; }
.hid-footer__claim em { color: var(--hid-rose); }
.hid-footer__title { margin: 0 0 1rem; color: var(--hid-brass-light); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.hid-footer__col ul, .hid-footer__legal { margin: 0; padding: 0; list-style: none; }
.hid-footer__col li + li { margin-top: 0.15rem; }
.hid-footer__col a { display: inline-block; padding-block: 0.4rem; }
.hid-footer__legal a { display: inline-block; padding-block: 0.5rem; }
.hid-footer a:not(.hid-btn) { color: inherit; text-decoration: none; transition: color 160ms linear; }
.hid-footer a:not(.hid-btn):hover, .hid-footer a:not(.hid-btn):focus-visible { color: var(--hid-porcelain); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--hid-brass-light); }
.hid-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	max-width: var(--hid-wide);
	margin-inline: auto;
	padding: 1.5rem var(--hid-gutter) max(1.75rem, env(safe-area-inset-bottom));
	border-top: 1px solid var(--hid-mulberry-soft);
	color: var(--hid-rose);
	font-size: 0.875rem;
}
.hid-footer__base p { margin: 0; }
.hid-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
@media (min-width: 64rem) {
	.hid-footer__inner { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
	.hid-footer__brand { grid-column: auto; }
}

/* Generic page content (landing pages, legal) */
.hid-site-main > .wp-block-post-content > :where(:not(.alignfull):not(.alignwide):not(.hid-landing)) { max-width: 44rem; margin-inline: auto; }
.hid-landing { max-width: none; margin: 0; }

/* Documents (legal pages, plain pages) -------------------------------------- */
.hid-doc { max-width: 48rem; margin-inline: auto; padding: clamp(2rem, 5vw, 4rem) var(--hid-gutter) clamp(4rem, 8vw, 6rem); }
.hid-doc__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); padding-bottom: 1.5rem; border-bottom: 2px solid var(--hid-mulberry); }
.hid-doc__title { margin: 0; color: var(--hid-mulberry); font: 500 clamp(2.4rem, 1.4rem + 3vw, 3.75rem) / 1.04 var(--hid-serif); letter-spacing: -0.02em; }
.hid-doc__body { font-size: 1rem; line-height: 1.7; }
.hid-site-main > .hid-doc__body > *, .hid-doc .hid-doc__body > * { max-width: none; margin-inline: 0; }
.hid-doc__body :where(h2) { margin: 2.75rem 0 0.85rem; font: 500 clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem) / 1.15 var(--hid-serif); letter-spacing: -0.01em; scroll-margin-top: calc(var(--hid-header) + 1.5rem); }
.hid-doc__body :where(h3) { margin: 1.75rem 0 0.5rem; font: 700 1.0625rem/1.35 var(--hid-sans); }
.hid-doc__body :where(p, ul, ol) { margin: 0 0 1rem; }
.hid-doc__body :where(ul, ol) { padding-left: 1.25rem; }
.hid-doc__body li + li { margin-top: 0.35rem; }
.hid-doc__body a { color: var(--hid-mulberry); text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.hid-doc__body :where(table) { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.hid-doc__body :where(th, td) { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--hid-line); text-align: left; vertical-align: top; }
.hid-doc__body :where(th) { color: var(--hid-brass-deep); font: 700 0.75rem/1.3 var(--hid-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.hid-doc__body :where(strong) { font-weight: 700; }

/* 11 Motion ------------------------------------------------------------ */
@keyframes hid-ink-draw { to { stroke-dashoffset: 0; } }
@keyframes hid-ink-fill { to { fill-opacity: 1; } }
@keyframes hid-heart-drop {
	0% { opacity: 0; transform: translateY(-160%) scale(0.6); }
	60% { opacity: 1; transform: translateY(6%) scale(1.06); }
	100% { opacity: 1; transform: none; }
}
@keyframes hid-heart-beat {
	0%, 100% { transform: scale(1); }
	14% { transform: scale(1.18); }
	28% { transform: scale(0.96); }
	42% { transform: scale(1.1); }
	60% { transform: scale(1); }
}
@keyframes hid-rise { from { opacity: 0; transform: translateY(1.75rem); } }
@keyframes hid-write { from { clip-path: inset(-0.2em 100% -0.3em -0.1em); } to { clip-path: inset(-0.2em -0.2em -0.3em -0.1em); } }
@keyframes hid-line-in { from { transform: translateY(0.4em); opacity: 0; } }
@keyframes hid-stage-in { from { opacity: 0; transform: translateY(2rem) scale(0.97); } }

/* Hero entrance: lines settle, the italic phrase writes itself, the big „Ja" draws, the heart drops. */
.hid-hero__line { animation: hid-line-in 900ms var(--hid-ease-soft) both; }
.hid-hero__line:nth-child(2) { animation-delay: 90ms; }
.hid-hero__line:nth-child(3) { animation-delay: 180ms; }
.hid-hero .hid-write { display: inline-block; animation: hid-write 1.3s 450ms cubic-bezier(0.55, 0.1, 0.25, 1) both; }
.hid-hero__lead, .hid-hero .hid-actions, .hid-hero__facts { animation: hid-rise 900ms var(--hid-ease-soft) both; }
.hid-hero__lead { animation-delay: 380ms; }
.hid-hero .hid-actions { animation-delay: 480ms; }
.hid-hero__facts { animation-delay: 580ms; }
.hid-stage__phone { animation: hid-stage-in 1.1s 200ms var(--hid-ease-soft) both; }
.hid-stage__switch, .hid-stage__note { animation: hid-rise 900ms 700ms var(--hid-ease-soft) both; }
.hid-hero__ja-ink { opacity: 0; animation: hid-ja-in 1.6s 200ms var(--hid-ease-soft) forwards; }
@keyframes hid-ja-in { from { opacity: 0; transform: translateY(6%) scale(0.97); } to { opacity: 1; transform: none; } }
.hid-stage__heart { opacity: 0; animation: hid-heart-drop 760ms 1.5s var(--hid-ease) forwards, hid-heart-beat 1.4s 2.4s ease-in-out 1; }
[data-live="ready"] .hid-stage__heart { opacity: 1; animation: hid-heart-beat 1.4s ease-in-out 1; }

/* Reveal on scroll (only with JS; content stays visible without it). */
.hid-js [data-hid-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity 900ms var(--hid-ease-soft), transform 900ms var(--hid-ease-soft); transition-delay: calc(var(--i, 0) * 90ms); }
.hid-js [data-hid-reveal].is-in { opacity: 1; transform: none; }
.hid-js .hid-section .hid-write { display: inline-block; clip-path: inset(-0.2em 100% -0.3em -0.1em); }
.hid-js .hid-section .hid-write.is-in { animation: hid-write 1.2s 150ms cubic-bezier(0.55, 0.1, 0.25, 1) forwards; }
.hid-kicker.is-in::after { animation: hid-heart-beat 1.3s 200ms ease-in-out 1; }
.hid-moment.is-in .hid-moment__node { animation: hid-heart-beat 1.3s 250ms ease-in-out 1; }
.hid-final__mark.is-in .hid-final__heart { animation: hid-heart-drop 700ms 300ms var(--hid-ease) both, hid-heart-beat 1.4s 1.1s ease-in-out 1; }
.hid-js .hid-final__mark:not(.is-in) .hid-final__heart { opacity: 0; }

/* On phones the italic phrase stays inline text, so trailing punctuation never drops to its own line. */
@media (max-width: 40rem) {
	.hid-js .hid-section .hid-write, .hid-section .hid-write { display: inline; clip-path: none; animation: none; }
}

/* The brass thread of the moments draws itself with the scroll. */
@supports (animation-timeline: view()) {
	.hid-moments__list::before {
		animation: hid-thread linear both;
		animation-timeline: view();
		animation-range: entry 10% cover 65%;
	}
	@keyframes hid-thread { from { transform: scaleY(0); } }

	.hid-std__date {
		animation: hid-drift linear both;
		animation-timeline: view();
		animation-range: cover;
	}
	@keyframes hid-drift { from { translate: 0 3rem; } to { translate: 0 -3rem; } }
}

/* Cross-document transitions: the header stays, pages fade through. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--hid-ease) both hid-vt-out; }
::view-transition-new(root) { animation: 420ms 60ms var(--hid-ease-soft) both hid-vt-in; }
@keyframes hid-vt-out { to { opacity: 0; } }
@keyframes hid-vt-in { from { opacity: 0; transform: translateY(0.75rem); } }

/* 12 Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 1ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		scroll-behavior: auto !important;
	}
	.hid-js [data-hid-reveal] { opacity: 1; transform: none; }
	.hid-js .hid-section .hid-write { clip-path: none; }
	.hid-stage__phone .hid-phone__body { animation: none; }
	.hid-hero__ja-ink { opacity: 1; }
	.hid-stage__heart, .hid-js .hid-final__mark:not(.is-in) .hid-final__heart { opacity: 1; }
	.hid-loader__ja { stroke-dashoffset: 0; fill-opacity: 1; }
	.hid-loader__heart { opacity: 1; }
	.hid-loader[data-active] .hid-loader__heart { animation: hid-pulse 1.8s ease-in-out infinite !important; animation-duration: 1.8s !important; animation-iteration-count: infinite !important; }
	@keyframes hid-pulse { 50% { opacity: 0.45; } }
	@view-transition { navigation: none; }
}
