/* ==========================================================================
   hx/the-ritual.css — The Ritual page (/the-ritual/, page-the-ritual.php +
   template-parts/hx/the-ritual/*), whole-site rebuild 16 Oct 2026. Prefix hxrt-.
   Loads after hx/system.css (dependency cos-hx-system); tokens and utilities from there.
   Sections (clarify pass, 23 Oct 2026; hero a full-bleed plate since 24 Oct): hero · sticky section bar ·
   part 1 at a glance · part 2 step by step (4 chapters) · part 3 the Complete Ritual.
   Grounds alternate so each part reads as its own room: pearl (hero, step by step) /
   stone (at a glance, the Complete Ritual). Clean edges between grounds, no hairlines.
   ========================================================================== */

.hxrt{
	--hxrt-nav:var(--cos-nav-h,80px);
	--hxrt-bar:var(--hx-bar-h,52px);
	--hxrt-room:var(--hx-ground-stone,#EDE9E1);
	--hxrt-mono:grayscale(1) sepia(.07) contrast(1.05) brightness(.98);   /* warm silver print */
	display:block;
	background:var(--hx-ivory);
	color:var(--hx-text);
	overflow-x:clip;
	font-family:var(--hx-sans);
}
.hxrt :where(h1,h2,h3,p,ol,ul,dl,dt,dd,blockquote,figure){margin:0;padding:0}
.hxrt :where(ol,ul){list-style:none}
.hxrt :where(img){max-width:100%}
.hxrt ::selection{background:var(--hx-selection-bg);color:var(--hx-selection-fg)}
.hxrt :where(h1,h2,h3){font-style:normal}
/* anchors clear the header + section bar via html scroll-padding (system.css); chapters get 32px more */
.hxrt [id^="step-"]:not(#step-by-step){scroll-margin-top:32px}

/* Reveals on this page (critic r1): opacity only, 600ms, no stagger delays; images carry no
   reveal at all, so nothing is ever held back behind its text. hx-motion.js is unchanged. */
html.hx-motion .hxrt [data-hx-reveal]{transition-duration:600ms!important;transition-delay:0ms!important;transition-timing-function:var(--hx-ease-soft)!important}
html.hx-motion .hxrt [data-hx-reveal]:not(.is-in):not([data-hx-reveal^="mask"]){transform:none}

/* inline text link inside reading copy (dark circles / fine lines) */
.hxrt .hxrt-inline{
	color:var(--hx-fg);
	text-decoration:underline;
	text-decoration-thickness:1px;
	text-underline-offset:.22em;
	text-decoration-color:var(--hx-line-strong);
	transition:text-decoration-color var(--hx-dur-ui) var(--hx-ease-soft);
}
.hxrt .hxrt-inline:hover{text-decoration-color:currentColor}

/* ── Hero: one full-bleed plate (24 Oct 2026) ────────────────────
   The photograph fills the first screen from under the header to the fold, where the sticky
   section bar takes over; the h1 and one line sit on the photograph, lower left, in ink
   (the grey under the copy is #A8–#B6 on the wide tray, #9A9896 on phones: ink 5.6–7:1).
   Phones and portrait tablets: the 4:5 crop dissolves into that grey and the copy follows
   on it. Landscape from 700px: the wide tray, products right, copy over the open left. */
.hxrt-hero{
	--hxrt-plate:#9A9896;   /* the photograph's own grey, sampled at its lower left */
	position:relative;
	display:flex;
	flex-direction:column;
	background:var(--hxrt-plate);
	color:var(--hx-ink);
}
/* the photograph starts at the top of the page, under the transparent header (24 Oct 2026) */
.hxrt-hero__media{position:relative;overflow:hidden;height:calc(min(125vw,66svh) + var(--hxrt-nav));background:var(--hxrt-plate)}
.hxrt-hero__pic,.hxrt-hero__pic img{display:block;width:100%;height:100%}
.hxrt-hero__pic img{
	object-fit:cover;
	object-position:50% 64%;
	-webkit-mask-image:linear-gradient(to bottom,#000 74%,transparent);
	mask-image:linear-gradient(to bottom,#000 74%,transparent);
}
.hxrt-hero__copy{
	position:relative;
	box-sizing:border-box;
	margin-top:calc(-1 * var(--hx-s-6));
	padding:0 var(--hx-margin) var(--hx-s-8);
}
.hxrt-hero__line{display:block}
html body:not(.cos-h26) #cos-main-content .hxrt-hero__title em{color:var(--hx-ink)}
/* each title line stays on one line: phones scale with the width (28px at 390) */
html body:not(.cos-h26) #cos-main-content .hxrt-hero .hxrt-hero__title{font-size:min(var(--ts-h1),7.2vw)}
.hxrt-hero__lede{max-width:30em;margin-top:var(--hx-s-4);color:var(--hx-ink)}
.hxrt-hero ::selection{background:var(--hx-ink);color:var(--hxrt-plate)}

@media (min-width:700px) and (orientation:landscape){
	.hxrt-hero{
		--hxrt-plate:#B0AFAD;
		display:grid;
		grid-template:minmax(0,1fr) / minmax(0,1fr);
		box-sizing:border-box;
		height:calc(100svh - var(--hxrt-bar));
		min-height:520px;
		max-height:1240px;
	}
	.hxrt-hero__media,.hxrt-hero__copy{grid-area:1 / 1}
	.hxrt-hero__media{height:auto}
	/* where the plate is narrower than 16:9 the crop comes off the open left, keeping the tray
	   clear of the title; the title steps down with the width (48px at 1440, 34px at 1024) */
	.hxrt-hero__pic img{object-position:0 50%;-webkit-mask-image:none;mask-image:none}
	html body:not(.cos-h26) #cos-main-content .hxrt-hero .hxrt-hero__title{font-size:min(var(--ts-h1),3.3vw)}
	.hxrt-hero__copy{
		align-self:end;
		margin:0;
		padding:0 var(--hx-margin) clamp(40px,7svh,88px);
	}
	.hxrt-hero__copy > *{max-width:min(36rem,46vw)}
}
/* the hero photograph (owner, 25 Oct 2026: June 2026 shoot, CAV59741): the ground is its wall
   tone, so the phone crop's soft lower edge dissolves into it; landscape holds the face at the
   right and the open wall under the lower-left type */
.hxrt-hero{--hxrt-plate:#CAC4C4!important}   /* measured on the wall */
.hxrt-hero__pic img{object-position:0 38%}   /* phones: the portrait as shot, face at the left edge */
@media (min-width:700px) and (orientation:landscape){
	.hxrt-hero__pic img{object-position:72% 45%}
}

@media (min-width:1540px) and (orientation:landscape){
	/* align the copy with the page container's left edge on very wide screens */
	.hxrt-hero__copy{padding-left:max(var(--hx-margin),calc(50vw - var(--hx-max) / 2))}
}

/* Section bar: the sitewide .hx-bar (system.css, 31 Oct 2026). */

/* ── Part heads (at a glance, step by step) ─────────────────────── */
.hxrt-part__head{max-width:40em}
.hxrt-part__lede{margin-top:var(--hx-stack)}

/* ── The four steps ─────────────────────────────────────────────── */
.hxrt-steps{background:var(--hx-ivory);padding-block:var(--hx-section-sm)}
.hxrt-steps__head{margin-bottom:var(--hx-s-8)}
.hxrt-steps__more{display:flex;flex-direction:column;gap:var(--hx-s-4);margin-top:var(--hx-section-sm);padding-top:var(--hx-s-6);border-top:1px solid var(--hx-line)}
.hxrt-steps__note{max-width:34em;font-family:var(--hx-serif);font-size:1.375rem;font-weight:300;line-height:1.4;color:var(--hx-ink)}
.hxrt-steps__note i{font-style:italic}
.hxrt-steps__links{display:flex;flex-wrap:wrap;gap:0 var(--hx-s-6)}
@media (min-width:1100px){
	.hxrt-steps__more{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:var(--hx-s-8)}
}
.hxrt-step{display:flex;flex-direction:column}
.hxrt-step + .hxrt-step{margin-top:var(--hx-s-9)}
.hxrt-step__frame{aspect-ratio:4/5;background:var(--hx-stone)}
.hxrt-step__pic img{object-fit:cover;object-position:50% 40%}

.hxrt-step__body{box-sizing:border-box;padding:var(--hx-s-6) var(--hx-margin) 0}
.hxrt-step__num{
	font-family:var(--hx-serif);
	font-size:var(--hx-fs-numeral);
	font-weight:300;
	line-height:var(--hx-lh-numeral);
	letter-spacing:var(--hx-tr-numeral);
	font-variant-numeric:lining-nums;
	font-feature-settings:"lnum" 1;
	color:#8A8E94;   /* audit 8 Nov 2026: 3.1:1 on #F8F8F8; typeset-site.css:134 sets the same and wins */
}
.hxrt-step__title{margin-top:var(--hx-s-4)}
.hxrt-step__product{margin-top:var(--hx-s-2);font-family:var(--hx-serif);font-size:var(--hx-fs-title);font-style:normal;font-weight:400;line-height:var(--hx-lh-title);color:var(--hx-accent);text-wrap:balance}
.hxrt-step__what{max-width:32em;margin-top:var(--hx-s-5)}

.hxrt-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--hx-s-4);max-width:28em;margin-top:var(--hx-s-6);padding-top:var(--hx-s-4);border-top:1px solid var(--hx-line)}
.hxrt-facts__row{min-width:0}
.hxrt-facts dt,.hxrt-sub{font-family:var(--hx-sans);font-size:var(--hx-fs-label);font-weight:500;line-height:var(--hx-lh-label);letter-spacing:.16em;text-transform:uppercase;color:var(--hx-muted)}
.hxrt-facts dd{margin-top:6px;font-family:var(--hx-serif);font-size:1.1875rem;font-weight:400;line-height:1.3;color:var(--hx-ink);text-wrap:balance}

.hxrt-more{max-width:34em;margin-top:var(--hx-s-5);border-bottom:1px solid var(--hx-line)}
.hxrt-more + .hxrt-more{margin-top:0}
.hxrt-more__sum{display:flex;align-items:center;justify-content:space-between;min-height:52px;list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hxrt-more__sum::-webkit-details-marker{display:none}
.hxrt-more__sum::marker{content:""}
.hxrt-more__sum:focus{outline:none}
.hxrt-more__sum:focus-visible{outline:var(--hx-focus-width) solid var(--hx-focus-color);outline-offset:2px}
.hxrt-more__sum .hxrt-sub{color:var(--hx-ink)}
.hxrt-more__icon{position:relative;width:11px;height:11px;flex:none}
.hxrt-more__icon::before,.hxrt-more__icon::after{content:"";position:absolute;left:0;right:0;top:5px;height:1px;background:var(--hx-ink);transition:transform var(--hx-dur-ui) var(--hx-ease-soft)}
.hxrt-more__icon::after{transform:rotate(90deg)}
.hxrt-more[open] .hxrt-more__icon::after{transform:rotate(0deg)}
.hxrt-more > :not(summary){padding-bottom:var(--hx-s-4)}
.hxrt-how{counter-reset:hxrt-how;border-top:1px solid var(--hx-line)}
.hxrt-how li{
	counter-increment:hxrt-how;
	display:grid;
	grid-template-columns:2rem minmax(0,1fr);
	padding:var(--hx-s-3) 0;
	font-size:.96875rem;
	line-height:1.6;
	color:var(--hx-text);
	text-wrap:pretty;
}
.hxrt-how li + li{border-top:1px solid var(--hx-line)}
.hxrt-how li::before{content:counter(hxrt-how);font-family:var(--hx-serif);font-size:1.125rem;line-height:1.4;color:var(--hx-accent);font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.hxrt-step__suits-text{font-size:.96875rem;line-height:1.6;color:var(--hx-text);text-wrap:pretty}
.hxrt-step__shop{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hx-s-1) var(--hx-s-5);margin-top:var(--hx-s-6)}
.hxrt-step__price{font-size:var(--hx-fs-detail);color:var(--hx-muted);font-variant-numeric:tabular-nums;white-space:nowrap}

@media (max-width:599.98px){
	.hxrt-step + .hxrt-step{margin-top:var(--hx-s-8)}
	.hxrt-step__num{font-size:3rem}
	.hxrt-glance__list{gap:var(--hx-s-6)}
}
@media (min-width:600px) and (max-width:899.98px){
	.hxrt-step__media{padding-inline:var(--hx-margin)}
}
@media (min-width:900px){
	.hxrt-step{
		box-sizing:border-box;
		display:grid;
		grid-template-columns:minmax(0,1fr) minmax(0,1fr);
		align-items:center;
		gap:0 clamp(48px,6vw,112px);
		max-width:calc(var(--hx-max) + 2 * var(--hx-margin));
		margin-inline:auto;
		padding-inline:var(--hx-margin);
	}
	.hxrt-step + .hxrt-step{margin-top:var(--hx-section-sm)}
	.hxrt-step__body{padding:0}
	.hxrt-step--flip .hxrt-step__media{order:2}
	.hxrt-step--flip .hxrt-step__body{order:1;justify-self:end}
	.hxrt-step__body{max-width:34em}
}

/* ── Part 1 · the ritual at a glance ───────────────────────────── */
.hxrt-glance{background:var(--hxrt-room);padding-block:var(--hx-section-sm)}

.hxrt-scale{display:flex;align-items:center;gap:var(--hx-s-4);margin-top:var(--hx-s-8)}
.hxrt-scale__end{flex:none;font-size:var(--hx-fs-label);font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--hx-muted)}
.hxrt-scale__line{flex:1;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;gap:6px}
.hxrt-scale__line span{display:block;background:var(--hx-ink)}
.hxrt-scale__line span:nth-child(1){height:1px;opacity:.35}
.hxrt-scale__line span:nth-child(2){height:2px;opacity:.55}
.hxrt-scale__line span:nth-child(3){height:3px;opacity:.75}
.hxrt-scale__line span:nth-child(4){height:4px;opacity:1}

.hxrt-glance__list{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--hx-s-7) var(--hx-gap);margin-top:var(--hx-s-6)}
.hxrt-glance__item{display:flex;flex-direction:column}
.hxrt-glance__meta{display:flex;align-items:baseline;gap:var(--hx-s-3)}
.hxrt-glance__verb{font-size:var(--hx-fs-detail);font-weight:500;letter-spacing:.02em;color:var(--hx-ink)}
.hxrt-glance__texture{margin-left:auto;font-size:var(--hx-fs-detail);color:var(--hx-muted)}
.hxrt-glance__name{margin-top:var(--hx-s-3);text-wrap:balance}
.hxrt-glance__text{max-width:24em;margin-top:var(--hx-s-3);font-size:1rem;line-height:1.6;color:var(--hx-text);text-wrap:pretty}
.hxrt .hxrt-glance__go{
	display:inline-flex;align-items:center;align-self:flex-start;gap:10px;min-height:44px;margin-top:var(--hx-s-3);
	font-size:var(--ts-action,.78125rem);font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--hx-ink);
	text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.5em;text-decoration-color:var(--hx-line-strong);
	transition:text-decoration-color var(--hx-dur-ui) var(--hx-ease-soft);
}
.hxrt .hxrt-glance__go:hover{text-decoration-color:currentColor}
.hxrt-glance__down{position:relative;width:9px;height:12px;flex:none}
.hxrt-glance__down::before{content:"";position:absolute;left:4px;top:0;bottom:1px;width:1px;background:currentColor}
.hxrt-glance__down::after{content:"";position:absolute;left:1px;bottom:1px;width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}

@media (max-width:599.98px){
	.hxrt-scale{margin-top:var(--hx-s-7)}
}
@media (min-width:600px){
	.hxrt-glance__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1100px){
	.hxrt-glance__list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ── The Complete Ritual offer ──────────────────────────────────── */
.hxrt-offer{background:var(--hxrt-room);padding-block:var(--hx-section)}
.hxrt-offer__inner{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--hx-s-8)}
.hxrt-offer__objects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:var(--hx-s-2)}
.hxrt-offer__object{display:flex;flex-direction:column;align-items:center;min-width:0}
.hxrt-offer__pic{display:block;width:150%;margin-inline:-25%;pointer-events:none}   /* packshots carry wide transparent margins */
.hxrt-offer__pic img{display:block;width:100%;height:auto}
.hxrt-offer__cap{margin-top:var(--hx-s-3);font-size:.8125rem;font-weight:500;letter-spacing:.02em;color:var(--hx-ink);white-space:nowrap}
.hxrt-offer__num{font-family:var(--hx-serif);font-size:1rem;font-weight:400;color:var(--hx-accent);font-variant-numeric:lining-nums;margin-right:2px}
.hxrt-offer__lede{max-width:30em;margin-top:var(--hx-stack)}
.hxrt-offer__price{display:flex;flex-direction:column;gap:var(--hx-s-2);margin-top:var(--hx-s-6)}
.hxrt-offer__amount{font-family:var(--hx-serif);font-size:clamp(2.25rem,1.9rem + 1.2vw,3rem);font-weight:300;line-height:1;letter-spacing:-.01em;color:var(--hx-ink);font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.hxrt-offer__compare{font-size:var(--hx-fs-detail);color:var(--hx-muted);font-variant-numeric:tabular-nums}
.hxrt-offer__act{margin-top:var(--hx-s-6)}
.hxrt-offer__assure{display:flex;flex-wrap:wrap;gap:var(--hx-s-1) var(--hx-s-5);margin-top:var(--hx-s-4);font-size:var(--hx-fs-detail);color:var(--hx-muted)}
.hxrt-offer__assure li{display:flex;align-items:center;gap:var(--hx-s-5)}
.hxrt-offer__assure li + li::before{content:"";width:1px;height:11px;margin-left:calc(-1 * var(--hx-s-5) / 2 - .5px);margin-right:calc(var(--hx-s-5) / -2);background:var(--hx-line-strong)}

@media (max-width:599.98px){
	.hxrt-offer__btn{display:flex;width:100%;white-space:normal}
}
@media (min-width:900px){
	.hxrt-offer__inner{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center;gap:var(--hx-s-9)}
	.hxrt-offer__objects{gap:var(--hx-s-4)}
	.hxrt-offer__cap{font-size:var(--hx-fs-detail)}
}

@media (prefers-reduced-motion:reduce){
	.hxrt .hxrt-inline{transition:none}
}

/* ── Phones: tighter overall length (critic r1: ~13.5k → ~9k) ─────── */
@media (max-width:599.98px){
	.hxrt-step__frame{aspect-ratio:1/1}
	.hxrt-step__body{padding-top:var(--hx-s-5)}
	.hxrt-step__what{margin-top:var(--hx-s-4)}
	.hxrt-facts{margin-top:var(--hx-s-5)}
	.hxrt-steps,.hxrt-glance,.hxrt-offer{padding-block:var(--hx-s-8)}
	.hxrt-steps__head{margin-bottom:var(--hx-s-6)}
	.hxrt-steps__more{margin-top:var(--hx-s-8)}
	.hxrt-offer__inner{gap:var(--hx-s-6)}
}
