/* NORDHAUS — landing sections (Group blocks on the Home page carry these classes) */

.nh-landing-content > .wp-block-group,
.nh-section { position: relative; padding: var(--nh-section) var(--nh-gutter); }
.nh-landing-content > .wp-block-group > *,
.nh-section > * { max-width: var(--nh-max); margin-left: auto; margin-right: auto; }
.nh-landing-content .wp-block-image { margin: 0; }
.nh-landing-content figure img { width: 100%; object-fit: cover; }

.nh-eyebrow {
	font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
	color: var(--nh-clay-2); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .9rem;
}
.nh-eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: var(--nh-clay); }
.nh-lead { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.5; color: var(--nh-ink-2); max-width: 36ch; }
.nh-muted { color: var(--nh-mute); }
.nh-note { font-size: .82rem; color: var(--nh-mute); letter-spacing: .02em; }

/* Section head */
.nh-section__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.nh-section__head h2 { margin: 0; max-width: 14ch; font-size: clamp(2.4rem, 5.2vw, 5rem); }
.nh-benefits__layout h2, .nh-contact__layout h2 { font-size: clamp(2.4rem, 5.2vw, 5rem); }
.nh-section__head .nh-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.nh-section__head p:not(.nh-eyebrow) { margin: 0; max-width: 42ch; color: var(--nh-ink-2); }
.nh-section__head p:not(.nh-eyebrow):last-child { padding-bottom: .6rem; }

/* ---------- Hero ---------- */
.nh-hero { min-height: 100svh; padding: 0 !important; display: grid; grid-template-rows: 1fr auto; align-items: end; background: var(--nh-ink); color: var(--nh-bone); overflow: hidden; isolation: isolate; }
.nh-landing-content > .nh-hero > *, .nh-hero > * { max-width: none; }
.nh-hero .nh-hero__image { position: absolute; inset: 0; z-index: 0; margin: 0; max-width: none; }
.nh-hero .nh-hero__image img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform-origin: 55% 45%; }
html.nh-js .nh-hero .nh-hero__image img { animation: nh-kenburns 26s ease-in-out infinite alternate; }
@keyframes nh-kenburns { from { scale: 1.06; } to { scale: 1.16; } }
.nh-hero .nh-hero__image::before {
	content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/></svg>");
}
.nh-hero .nh-hero__image::after {
	content: ''; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(180deg, rgba(31,29,26,.38) 0%, rgba(31,29,26,.06) 32%, rgba(31,29,26,.18) 58%, rgba(31,29,26,.80) 100%),
		radial-gradient(120% 90% at 10% 100%, rgba(31,29,26,.55) 0%, rgba(31,29,26,0) 60%);
}
.nh-hero__veil { position: absolute; inset: 0; z-index: 3; background: var(--nh-ink); pointer-events: none; transform-origin: top; }
.nh-hero__veil.is-done { transform: scaleY(0) !important; transition: transform .8s cubic-bezier(.76,0,.24,1); }
.nh-hero__content {
	position: relative; z-index: 4; width: 100%; max-width: var(--nh-max); margin: 0 auto;
	padding: 9.5rem var(--nh-gutter) clamp(2.5rem, 5vw, 4rem);
	display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: 2rem 4rem; align-items: end;
}
.nh-hero__content > * { max-width: none; margin-left: 0; margin-right: 0; }
.nh-hero__content > .nh-eyebrow { grid-column: 1 / -1; align-self: start; }
.nh-hero__content > h1 { grid-column: 1; grid-row: 2 / span 2; }
.nh-hero__content > .nh-lead { grid-column: 2; grid-row: 2; align-self: end; }
.nh-hero__content > .wp-block-buttons { grid-column: 2; grid-row: 3; align-self: end; }
.nh-hero .nh-eyebrow { color: rgba(244,241,235,.85); margin-bottom: clamp(2rem, 6vh, 5rem); }
.nh-hero .nh-eyebrow::before { background: rgba(244,241,235,.6); }
.nh-hero h1 { color: var(--nh-bone); max-width: 11ch; margin: 0; font-size: clamp(3.2rem, 8.4vw, 8.4rem); line-height: .98; }
.nh-hero h1 em { color: var(--nh-sand); }
.nh-hero h1 .nh-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.nh-hero h1 .nh-line > span { display: block; }
.nh-hero .nh-lead { color: rgba(244,241,235,.86); margin-bottom: 0; max-width: 34ch; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
.nh-hero__scroll {
	position: absolute; z-index: 4; left: var(--nh-gutter); bottom: 7.5rem;
	display: flex; align-items: center; gap: .8rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,235,.7);
	writing-mode: vertical-rl; transform: rotate(180deg);
}
.nh-hero__scroll::before { content: ''; width: 1px; height: 3.5rem; background: linear-gradient(0deg, rgba(244,241,235,.9), rgba(244,241,235,0)); background-size: 100% 200%; animation: nh-scrollline 2.2s var(--nh-ease) infinite; }
@keyframes nh-scrollline { 0% { background-position: 0 200%; opacity: 0; } 30% { opacity: 1; } 100% { background-position: 0 -100%; opacity: 0; } }
.nh-hero__meta { position: absolute; z-index: 4; right: var(--nh-gutter); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(244,241,235,.55); white-space: nowrap; }
.nh-hero .wp-block-button__link { border-color: rgba(244,241,235,.7); color: var(--nh-bone); }
.nh-hero .wp-block-button__link:hover { background: var(--nh-bone); color: var(--nh-ink); border-color: var(--nh-bone); }
.nh-hero .is-style-nh-primary .wp-block-button__link { background: var(--nh-bone); color: var(--nh-ink); border-color: var(--nh-bone); }
.nh-hero .is-style-nh-primary .wp-block-button__link:hover { background: var(--nh-sand); border-color: var(--nh-sand); }
.nh-hero__facts {
	position: relative; z-index: 4; width: 100%; max-width: var(--nh-max); margin: 0 auto;
	padding: 1.5rem var(--nh-gutter) 2rem; border-top: 1px solid rgba(244,241,235,.2);
	display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.nh-hero__facts .wp-block-column p { margin: 0; font-size: .82rem; letter-spacing: .06em; color: rgba(244,241,235,.75); }
.nh-hero__facts .wp-block-column p strong { display: block; font-family: var(--nh-font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: 0; color: var(--nh-bone); line-height: 1.1; }

/* ---------- Homes ---------- */
.nh-homes { background: var(--nh-bone); }
.nh-homes__grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.nh-homes__grid .wp-block-column { display: flex; flex-direction: column; }
.nh-homes__grid figure { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 1.5rem; background: var(--nh-sand); }
.nh-homes__grid figure img { height: 100%; transition: transform 1.2s var(--nh-ease); }
.nh-homes__grid .wp-block-column:hover figure img { transform: scale(1.04); }
.nh-homes__grid h3 { margin-bottom: .35rem; }
.nh-homes__grid .nh-spec { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nh-mute); margin-bottom: 1rem; }
.nh-homes__grid p { color: var(--nh-ink-2); }
.nh-homes__grid .nh-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--nh-line); font-weight: 400; color: var(--nh-ink); }
.nh-homes__grid .nh-price small { display: block; font-size: .74rem; color: var(--nh-mute); letter-spacing: .04em; margin-top: .25rem; font-weight: 300; }
.nh-homes__grid .wp-block-column:nth-child(2) { transform: translateY(clamp(0px, 4vw, 4rem)); }

/* ---------- Benefits ---------- */
.nh-benefits { background: var(--nh-sand); }
.nh-benefits__layout { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
.nh-benefits__layout > .wp-block-column:first-child { position: sticky; top: 7rem; }
.nh-benefits__layout > .wp-block-column:first-child figure { aspect-ratio: 3 / 4; overflow: hidden; margin-top: 2.5rem; }
.nh-benefits__list { counter-reset: nh; }
.nh-benefits__list > .wp-block-group { counter-increment: nh; padding: 2.25rem 0; border-top: 1px solid rgba(31,29,26,.18); display: grid; grid-template-columns: 4rem 1fr; gap: 1rem 2rem; align-items: start; }
.nh-benefits__list > .wp-block-group:last-child { border-bottom: 1px solid rgba(31,29,26,.18); }
.nh-benefits__list > .wp-block-group::before { content: counter(nh, decimal-leading-zero); font-family: var(--nh-font-display); font-size: 1.6rem; color: var(--nh-clay-2); line-height: 1; padding-top: .35rem; }
.nh-benefits__list > .wp-block-group > * { grid-column: 2; margin-left: 0; margin-right: 0; }
.nh-benefits__list h3 { margin-bottom: .5rem; font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.nh-benefits__list p { margin: 0; color: var(--nh-ink-2); max-width: 52ch; }

/* ---------- Image band ---------- */
.nh-band { padding: 0 !important; }
.nh-band > * { max-width: none; }
.nh-band figure { height: clamp(360px, 70vh, 820px); overflow: hidden; }
.nh-band figure img { height: 120%; will-change: transform; }
.nh-band figcaption { position: absolute; left: var(--nh-gutter); bottom: 1.5rem; margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,235,.85); }

/* ---------- Process ---------- */
.nh-process { background: var(--nh-bone); }
.nh-process__grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.nh-process__grid .wp-block-column { border-top: 1px solid var(--nh-ink); padding-top: 1.5rem; }
.nh-process__grid .nh-step__num { font-family: var(--nh-font-display); font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--nh-clay); margin-bottom: 2.5rem; }
.nh-process__grid h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); margin-bottom: .6rem; }
.nh-process__grid p { color: var(--nh-ink-2); margin: 0; }
.nh-process__grid .nh-step__time { margin-top: 1.25rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nh-mute); }

/* ---------- Estimator section ---------- */
.nh-estimator-section { background: var(--nh-ink); color: var(--nh-bone); }
.nh-estimator-section h2, .nh-estimator-section h3 { color: var(--nh-bone); }
.nh-estimator-section .nh-section__head p:not(.nh-eyebrow) { color: rgba(244,241,235,.72); }
.nh-estimator-section .nh-eyebrow { color: var(--nh-clay); }

/* ---------- FAQ ---------- */
.nh-faq { background: var(--nh-bone-2); }
.nh-faq__list { max-width: 880px !important; }
.nh-faq .wp-block-details { border-top: 1px solid rgba(31,29,26,.18); padding: 0; margin: 0; }
.nh-faq .wp-block-details:last-child { border-bottom: 1px solid rgba(31,29,26,.18); }
.nh-faq summary { list-style: none; cursor: pointer; padding: 1.6rem 3rem 1.6rem 0; font-family: var(--nh-font-display); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.2; position: relative; }
.nh-faq summary::-webkit-details-marker { display: none; }
.nh-faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--nh-font-text); font-weight: 300; font-size: 1.6rem; color: var(--nh-clay-2); transition: transform .35s var(--nh-ease); }
.nh-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.nh-faq details > *:not(summary) { max-width: 60ch; color: var(--nh-ink-2); margin-bottom: 1.75rem; }

/* ---------- Contact ---------- */
.nh-contact { background: var(--nh-bone); }
.nh-contact__layout { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 5rem; align-items: start; }
.nh-contact__layout h2 { max-width: 12ch; }
.nh-contact__layout .wp-block-buttons { margin-top: 2rem; }
.nh-contact-card { background: var(--nh-ink); color: var(--nh-bone); padding: clamp(2rem, 4vw, 3.5rem); }
.nh-contact-list { margin: 0; display: grid; gap: 1.6rem; }
.nh-contact-list div { display: grid; gap: .3rem; }
.nh-contact-list dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--nh-clay); }
.nh-contact-list dd { margin: 0; font-family: var(--nh-font-display); font-size: 1.4rem; line-height: 1.3; }
.nh-contact-list dd a:hover { color: var(--nh-sand); }

/* ---------- Marquee (paragraph with class nh-marquee on the Home page) ---------- */
.nh-marquee { padding: 0 !important; background: var(--nh-ink); color: var(--nh-bone); overflow: hidden; }
.nh-marquee > p, .nh-marquee > * { max-width: none; margin: 0; }
.nh-marquee__track { display: flex; width: max-content; white-space: nowrap; padding: 1.3rem 0; will-change: transform; }
.nh-marquee__item { font-family: var(--nh-font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 1.4rem; color: rgba(244,241,235,.9); }
.nh-marquee__item::after { content: ''; width: 7px; height: 7px; background: var(--nh-clay); transform: rotate(45deg); flex: none; }
.nh-marquee p { font-family: var(--nh-font-display); }

/* ---------- Scroll progress ---------- */
.nh-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--nh-ink); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .3s; pointer-events: none; }
.nh-header.is-scrolled .nh-progress { opacity: .55; }

/* ---------- Image reveals & hover ---------- */
html.nh-js .nh-img-reveal { clip-path: inset(0 0 100% 0); }
html.nh-js .nh-img-reveal img { scale: 1.18; }
html.nh-js .nh-img-reveal.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--nh-ease); }
html.nh-js .nh-img-reveal.is-in img { scale: 1; transition: scale 1.6s var(--nh-ease); }
.nh-homes__grid .wp-block-column { transition: transform .6s var(--nh-ease); }
.nh-homes__grid figure { position: relative; }
.nh-homes__grid figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(31,29,26,.28)); opacity: 0; transition: opacity .6s; }
.nh-homes__grid .wp-block-column:hover figure::after { opacity: 1; }
.nh-process__grid .wp-block-column { border-top-color: transparent; position: relative; }
.nh-process__grid .wp-block-column::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--nh-ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--nh-ease); }
.nh-process__grid .wp-block-column.is-in::before { transform: scaleX(1); }
.nh-benefits__list > .wp-block-group::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--nh-ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--nh-ease) .1s; }
.nh-benefits__list > .wp-block-group { position: relative; }
.nh-benefits__list > .wp-block-group.is-in::after { transform: scaleX(1); }
.nh-faq details .nh-faq__body { overflow: hidden; }
.nh-mag { transition: transform .5s var(--nh-ease); }

/* ---------- Motion ---------- */
html.nh-js .nh-reveal { opacity: 0; transform: translateY(28px); }
html.nh-js .nh-reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--nh-ease), transform .9s var(--nh-ease); }
.nh-hero .nh-reveal { transform: translateY(34px); }
html.nh-js .nh-words .nh-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
html.nh-js .nh-words .nh-w > span { display: inline-block; transform: translateY(110%); }
html.nh-js .nh-words.is-in .nh-w > span { transform: none; transition: transform 1s var(--nh-ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nh-benefits__layout { grid-template-columns: 1fr; }
	.nh-benefits__layout > .wp-block-column:first-child { position: static; }
	.nh-benefits__layout > .wp-block-column:first-child figure { max-height: 420px; aspect-ratio: 16 / 10; }
	.nh-process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
}
@media (max-width: 900px) {
	.nh-section__head { grid-template-columns: 1fr; }
	.nh-section__head p:not(.nh-eyebrow):last-child { padding-bottom: 0; }
	.nh-homes__grid { grid-template-columns: 1fr; gap: 3rem; }
	.nh-homes__grid .wp-block-column:nth-child(2) { transform: none; }
	.nh-homes__grid figure { aspect-ratio: 4 / 3; }
	.nh-contact__layout { grid-template-columns: 1fr; }
	.nh-hero__content { padding-top: 7rem; grid-template-columns: 1fr; gap: 1.5rem; }
	.nh-hero__content > h1 { grid-column: 1; grid-row: auto; }
	.nh-hero__content > .nh-lead, .nh-hero__content > .wp-block-buttons { grid-column: 1; grid-row: auto; }
	.nh-hero h1 { max-width: none; font-size: clamp(3rem, 12vw, 6rem); }
	.nh-hero .nh-lead { margin-top: .5rem; }
	.nh-hero__scroll, .nh-hero__meta { display: none; }
	.nh-hero .nh-hero__image::after { background: linear-gradient(180deg, rgba(31,29,26,.45) 0%, rgba(31,29,26,.22) 30%, rgba(31,29,26,.55) 60%, rgba(31,29,26,.88) 100%); }
}
@media (max-width: 600px) {
	.nh-process__grid { grid-template-columns: 1fr; }
	.nh-hero__facts { grid-template-columns: 1fr; gap: 1rem; }
	.nh-hero__facts .wp-block-column p { display: flex; align-items: baseline; gap: .6rem; }
	.nh-hero__facts .wp-block-column p strong { font-size: 1.4rem; }
	.nh-benefits__list > .wp-block-group { grid-template-columns: 2.5rem 1fr; gap: .5rem 1rem; }
	.wp-block-buttons .wp-block-button { width: 100%; }
	.wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
}
