/* ============================================================
   DEZACT home — front-page composition (loads only on the
   front page, after site.css). Uses tokens.css vocabulary.
   Class map in README.md → "Front page v2".
   ============================================================ */

/* header floats over the hero */
.home .dz-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 30;
	margin: 22px var(--dz-gutter) 0;
	background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(243,241,236,.9));
	backdrop-filter: blur(8px);
}

/* ---- HERO (Cover block, className dzh-hero, dimRatio 0) ---- */
.dzh-hero {
	min-height: 100svh;
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* definite track so the inner container's width:100% resolves (core cover flex is overridden here) */
	align-items: center;
	padding: 140px var(--dz-gutter) 110px;
	color: var(--dz-ink);
}
.dzh-hero .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin: 0 auto; }
/* core makes the inner container position:relative, so the corner captions anchor
   to it — reserve a band under the copy so they never collide with the buttons */
.dzh-hero-copy { max-width: 540px; margin-left: auto; padding-bottom: 84px; }
.dzh-hero-copy .dz-kicker { color: #6e5637; }
.dzh-hero h1 {
	font-size: clamp(2.6rem, 5.6vw, 4.5rem);
	line-height: .98;
	margin: 0;
	color: var(--dz-ink);
}
.dzh-hero .dz-indent-1 { margin-left: clamp(18px, 2.5vw, 44px) !important; }
.dzh-hero .dz-indent-2 { margin-left: clamp(40px, 6vw, 104px) !important; }
.dzh-hero-sub { max-width: 400px; color: #2c2a26; font-size: 16.5px; line-height: 1.6; }
/* mono captions pinned to the hero's bottom corners */
.dzh-hero-caption, .dzh-hero-cue {
	position: absolute;
	bottom: 26px;
	margin: 0;
	font-family: var(--dz-font-mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
	line-height: 1.8;
}
/* FUP: caption sits over mixed dark/lit city — dark glass chip guarantees AA
   for the white mono; cue sits over the bright sunset sky, so it runs in ink */
.dzh-hero-caption {
	left: var(--dz-gutter);
	max-width: 46ch;
	padding: 12px 16px;
	background: rgba(20, 19, 23, .42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-radius: 0 14px 0 0;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.dzh-hero-caption { background: rgba(20, 19, 23, .72); } /* no blur to average out bright specks — carry AA on the plate alone */
}
.dzh-hero-cue { right: var(--dz-gutter); letter-spacing: .18em; color: var(--dz-ink); text-shadow: 0 1px 12px rgba(255, 255, 255, .55); }
.dzh-hero-cue .dz-live { color: var(--dz-ink); }

/* ---- RISING SHELL (Group, alignfull, className dzh-rise) ---- */
.dzh-rise {
	position: relative;
	z-index: 2;
	margin-top: -96px;
	background: var(--dz-surface-shell);
	border-radius: 220px 0 0 0;
	box-shadow: 0 -34px 70px -50px rgba(20, 19, 23, .55), var(--dz-sheen);
	padding: clamp(64px, 8vw, 100px) var(--dz-gutter) 0;
}

/* ---- STATEMENT (Group, className dzh-statement) ---- */
.dzh-statement { display: flex; flex-wrap: wrap; gap: 28px 70px; align-items: flex-end; }
.dzh-statement h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.04; margin: 0; }
.dzh-statement p { max-width: 360px; color: var(--dz-grey); font-size: 15px; line-height: 1.75; margin: 0; }

/* ---- FIELDS — asymmetric editorial grids ---- */
.dzh-field {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;
	position: relative;
	margin-top: clamp(56px, 7.5vw, 96px);
}
.dzh-field figure.wp-block-image, .dzh-field .wp-block-image { margin: 0; }
.dzh-field img { width: 100%; height: auto; display: block; }

/* field A: tall figure left, small study right, staggered */
.dzh-a-main { grid-column: 1 / 7; max-width: 520px; }
.dzh-a-side { grid-column: 9 / 13; max-width: 320px; }
/* the stagger needs to outrank the `.dzh-field .wp-block-image { margin: 0 }` reset */
.dzh-field .wp-block-image.dzh-a-side { margin-top: clamp(60px, 10vw, 150px); }

/* field B: caption column left, wide figure right, plinth band behind */
.dzh-field-b { padding-bottom: 64px; }
.dzh-field-b::before {
	content: "";
	position: absolute;
	left: calc(-1 * var(--dz-gutter));
	right: calc(-1 * var(--dz-gutter));
	top: 120px; bottom: 0;
	background: #eceae4;
	border-radius: var(--dz-r-plinth);
}
.dzh-b-caption { grid-column: 1 / 4; align-self: end; position: relative; padding-bottom: 10px; }
.dzh-b-caption p { font-size: 14px; line-height: 1.7; color: var(--dz-grey); margin: 12px 0 0; }
.dzh-b-caption .dz-kicker, .dzh-b-caption .dzh-fig { margin: 0; }
.dzh-b-main { grid-column: 4 / 13; position: relative; }

/* field C: wide figure + overlapping strip */
.dzh-field-c { margin-bottom: clamp(120px, 14vw, 170px); }
.dzh-c-main { grid-column: 1 / 9; grid-row: 1; }
.dzh-c-side { grid-column: 7 / 13; grid-row: 1; align-self: end; transform: translateY(84px); z-index: 2; }
.dzh-c-side img { box-shadow: 0 40px 60px -36px rgba(20, 19, 23, .65); }
.dzh-c-side figcaption { text-align: right; }

/* mono figure labels (paragraph class dzh-fig) */
.dzh-fig {
	font-family: var(--dz-font-mono) !important;
	font-size: 11px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dz-grey-soft);
}

/* swept-corner variants for single Image blocks (hover sweeps the corner) */
.dzh-sweep-tr img { border-radius: 0 var(--dz-r-sweep-size) 0 0; transition: border-radius .6s var(--dz-ease); }
.dzh-sweep-tr:hover img { border-radius: 0 0 0 var(--dz-r-sweep-size); }
.dzh-sweep-br img { border-radius: 0 0 var(--dz-r-sweep-size) 0; transition: border-radius .6s var(--dz-ease); }
.dzh-sweep-br:hover img { border-radius: var(--dz-r-sweep-size) 0 0 0; }
.dzh-sweep-bl img { border-radius: 0 0 0 90px; transition: border-radius .6s var(--dz-ease); }
.dzh-sweep-bl:hover img { border-radius: 0 90px 0 0; }
.dzh-sweep-tl img { border-radius: 90px 0 0 0; transition: border-radius .6s var(--dz-ease); }
.dzh-sweep-tl:hover img { border-radius: 0 0 90px 0; }

/* ---- DIVIDER (Group, className dzh-divider) ---- */
.dzh-divider {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px solid var(--dz-hairline-strong);
	padding-top: 16px;
	margin-top: clamp(70px, 9vw, 110px);
}
.dzh-divider p { margin: 0; font-family: var(--dz-font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dz-grey); }
.dzh-divider p:last-child { color: var(--dz-oak-deep); }

/* ---- scroll reveals: hero caption + fields join the theme's view() system ---- */
@supports (animation-timeline: view()) {
	.dzh-a-side { animation-range: entry 10% entry 90%; }
	.dzh-c-side { animation-range: entry 14% entry 90%; }
}

/* ---- responsive collapse ---- */
@media (max-width: 900px) {
	.home .dz-header { position: relative; margin: 12px 12px 0; background: var(--dz-surface-gloss); }
	.dzh-hero { min-height: 72svh; padding: 60px var(--dz-gutter) 60px; }
	.dzh-hero-copy { margin-left: 0; padding-bottom: 0; }
	/* the copy sits over the tower at narrow widths — veil the top of the
	   photo in plaster so ink type stays AA, letting the render emerge below */
	.dzh-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(244, 242, 238, .92) 0%, rgba(244, 242, 238, .78) 48%, rgba(244, 242, 238, .12) 82%, rgba(244, 242, 238, 0) 100%) !important;
		opacity: 1 !important;
	}
	/* caption flows under the buttons as a chip; the scroll cue goes quiet */
	.dzh-hero-caption { position: static; display: inline-block; margin-top: 30px; max-width: none; }
	.dzh-hero-cue { display: none; }
	.dzh-rise { margin-top: -60px; border-radius: 90px 0 0 0; }
	.dzh-field { display: block; }
	.dzh-a-main, .dzh-a-side, .dzh-b-main, .dzh-b-caption, .dzh-c-main, .dzh-c-side { max-width: none; margin-top: 0; transform: none; }
	.dzh-a-side, .dzh-b-caption, .dzh-c-side { margin-top: 28px; }
	.dzh-field-b { padding-bottom: 0; }
	.dzh-field-b::before { display: none; }
	.dzh-field-c { margin-bottom: clamp(56px, 7vw, 90px); }
	.dzh-c-side figcaption { text-align: left; }
}

/* ---- origami is the front page's motion language ----
   every content block folds in as plates (dezact.js arms them site-wide) —
   these soft-unfold rules only serve blocks the paperfold skips. */
@supports (animation-timeline: view()) {
	.dzh-statement:not(:has(.dz-paperfold)), .dzh-field .wp-block-image:not(.dz-paperfold) {
		position: relative;
		transform-origin: 50% 100%;
		animation: dz-unfold linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 85%;
	}
	.dzh-field .wp-block-image:not(.dz-paperfold)::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		border-radius: inherit;
		background: linear-gradient(to top, rgba(20, 19, 23, .28), rgba(20, 19, 23, 0) 55%, rgba(255, 255, 255, .3));
		animation: dz-unfold-shade linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 85%;
	}
	/* the overlapping strip keeps its translate — settle, don't fold */
	.dzh-c-side:not(.dz-paperfold) { animation-name: dz-rise; }
	.dzh-c-side::after { display: none; }
}
