/* ielena editorial: styles for the two trial homepages ("New Home One" and "New Home Two"). */

/* ---------- Shared ---------- */
.nh .site-main { overflow-x: clip; }
.nh-cta a { border: 1px solid currentColor; padding: 14px 20px !important; }
.nh-cta a::after { display: none; }
[data-par-box] { overflow: hidden; position: relative; }
[data-par-box] > [data-par] { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; }
[data-par] { will-change: transform; }
.nh .g { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- New Home One: centred logo, three photo tiles, wide photo, carousel ---------- */
.nh1-header { background: rgba(255,255,255,.96); }
.nh1-header .brand { display: inline-flex; align-items: center; }
.nh1-header .brand img { height: 58px; width: auto; display: block; }
@media (min-width: 861px) {
	.nh1-header .wrap { display: grid; grid-template-columns: auto auto 1fr auto 1fr auto auto; column-gap: 38px; align-items: center; min-height: 96px; }
	.nh1-header .primary-nav, .nh1-header .primary-nav .menu { display: contents; }
	.nh1-header .brand { grid-column: 4; grid-row: 1; }
	.nh1-header .menu li:nth-child(1) { grid-column: 1; grid-row: 1; }
	.nh1-header .menu li:nth-child(2) { grid-column: 2; grid-row: 1; }
	.nh1-header .menu li:nth-child(3) { grid-column: 6; grid-row: 1; }
	.nh1-header .menu li:nth-child(4) { grid-column: 7; grid-row: 1; }
}
@media (max-width: 860px) { .nh1-header .brand img { height: 44px; } .nh-cta a { border: 0; padding: 20px 0 !important; } }

.nh1-hero { padding-top: clamp(40px, 6vw, 84px); }
.nh1-hero .wrap { text-align: center; max-width: 1100px; }
.nh1-hero h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.12; margin: 0 auto clamp(32px, 5vw, 64px); max-width: 21ch; }
.nh1-tiles .ed-tile .t { font-size: clamp(28px, 2.8vw, 40px); }

.nh1-wide { margin: 4px 4px 0; aspect-ratio: 16 / 7.4; background: var(--bg-3); }
.nh1-wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) { .nh1-wide { aspect-ratio: 4 / 3; } .nh1-wide img { object-position: 42% 40%; } }

.nh1-sold { background: var(--bg-2); padding-bottom: clamp(56px, 8vw, 110px); }
.nh1-sold-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.nh1-sold-lead { max-width: 640px; color: var(--muted); }
.nh-arrows { display: flex; gap: 8px; }
.nh-arrows button { width: 52px; height: 52px; border: 1px solid var(--text); background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.nh-arrows button:hover { background: var(--text); color: #FFFFFF; }
.nh-slider { list-style: none; margin: 32px 0 0; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nh-slider::-webkit-scrollbar { display: none; }
.nh-slider li { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; background: #FFFFFF; padding: 40px 36px; min-height: 300px; display: flex; flex-direction: column; margin: 0; }
.nh-slider .n { font-size: 12px; letter-spacing: .18em; color: var(--dim); margin-bottom: auto; }
.nh-slider b { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin-top: 40px; }
.nh-slider .p { color: var(--muted); margin-top: 8px; }
.nh-slider .s { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.nh-slider li.more { background: #111111; color: #FFFFFF; justify-content: flex-end; }
.nh-slider li.more b { margin-top: 0; }
.nh-slider li.more .p { color: #E6E6E6; }
.nh-slider li.more a { color: #FFFFFF; margin-top: 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
@media (max-width: 700px) { .nh-arrows { display: none; } }

.nh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; margin-top: 40px; }
.nh-card { display: block; color: var(--text); text-decoration: none; }
.nh-card figure { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.nh-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transition: transform 1.2s var(--ease); }
.nh-card:hover img { transform: scale(1.04); }
.nh-card h3 { font-size: 23px; margin: 0 0 8px; }
.nh-card p { color: var(--muted); margin: 0 0 12px; }
.nh-card .g { color: var(--accent); }
@media (max-width: 900px) { .nh-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nh-cards { grid-template-columns: 1fr; } }

.nh1-work { position: relative; min-height: clamp(520px, 52vw, 760px); display: flex; align-items: center; background: #EDE9E2; overflow: hidden; }
.nh1-work figure { position: absolute; inset: 0; margin: 0; }
.nh1-work figure img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.nh1-work .wrap { position: relative; width: 100%; }
.nh1-work .box { background: #FFFFFF; max-width: 480px; padding: clamp(28px, 4vw, 52px); }
.nh1-work .box h2 { font-size: clamp(26px, 2.6vw, 36px); }
@media (max-width: 800px) { .nh1-work { display: block; min-height: 0; } .nh1-work figure { position: static; aspect-ratio: 4 / 3; } .nh1-work .wrap { padding: 0; } .nh1-work .box { max-width: none; } }

.nh1-contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.nh1-contact span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.nh1-contact p { margin: 0 0 22px; }
.nh1-contact a:not(.btn) { font-family: var(--font-head); font-size: 22px; text-decoration: none; display: inline-block; padding: 8px 0; }
@media (max-width: 800px) { .nh1-contact .wrap { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- New Home Two: scroll story. Cream ground, black ink. ---------- */
.nh-two { --bg: #F7F2E8; --bg-2: #EFE8DA; --bg-3: #E4DCCB; --line: #D8CFBC; background: var(--bg); }
.nh2-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
.admin-bar .nh2-header { top: 32px; }
.nh2-header .brand, .nh2-header .primary-nav .menu a, .nh2-header .menu-toggle { color: #FFFFFF; }
.nh2-header .menu-toggle { border-color: #FFFFFF; }
.nh2-header .primary-nav .menu a::after { background: currentColor; }
.nh2-header.scrolled { background: rgba(247,242,232,.96); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nh2-header.scrolled .brand, .nh2-header.scrolled .primary-nav .menu a, .nh2-header.scrolled .menu-toggle { color: var(--text); }
.nh2-header.scrolled .menu-toggle { border-color: var(--line-2); }
@media (max-width: 860px) { .nh2-header .primary-nav .menu a { color: var(--text); } .nh-two .primary-nav { background: #F7F2E8; } }

/* Hero: static layout first (phones, tablets, no JavaScript, reduced motion) */
.nh2-hero { background: #111111; color: #FFFFFF; }
.nh2-hero .stage { display: grid; grid-template-columns: 1fr 1fr; }
.nh2-hero .cell { display: contents; }
.nh2-hero .pic { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #2A2A2A; order: 1; }
.nh2-hero .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.nh2-hero .hero-head { order: 2; grid-column: 1 / -1; padding: 36px var(--gutter) 44px; }
.nh2-hero .kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.nh2-hero h1 { color: #FFFFFF; font-size: clamp(40px, 7vw, 108px); letter-spacing: .05em; text-transform: uppercase; line-height: 1; margin: 0 0 18px; }
.nh2-hero .lead { max-width: 560px; font-size: 18px; margin: 0; color: #FFFFFF; }
.nh2-hero .cue { display: none; }
.nh2-hero .copy { order: 3; grid-column: 1 / -1; background: var(--bg); color: var(--text); padding: 40px var(--gutter); border-bottom: 1px solid var(--line); }
.nh2-hero .copy h2 { font-size: clamp(28px, 3.4vw, 50px); max-width: 14ch; }
.nh2-hero .copy p { max-width: 440px; }

/* Hero: pinned scene, only with the engine running on wide screens */
@media (min-width: 992px) {
	.nh2-on .nh2-hero { height: 320vh; }
	.nh2-on .nh2-hero .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
	.nh2-on .nh2-hero .cell { display: block; position: relative; height: 100vh; overflow: hidden; }
	.nh2-on .nh2-hero .pic { position: absolute; inset: 0; aspect-ratio: auto; will-change: clip-path; }
	.nh2-on .nh2-hero .pic-day { clip-path: inset(0 0 calc(var(--b, 0) * 100%) 0); }
	.nh2-on .nh2-hero .pic-night { clip-path: inset(0 0 calc(var(--n, 0) * 100%) 0); }
	.nh2-on .nh2-hero .pic img { transform: scale(calc(1.06 + var(--p, 0) * .08)); transform-origin: 50% 30%; }
	.nh2-on .nh2-hero .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.62) 100%); opacity: calc(1 - var(--a, 0)); }
	.nh2-on .nh2-hero .copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(40px, 7vw, 120px); border: 0; }
	.nh2-on .nh2-hero .cell-r .copy > * { transform: translateY(calc((1 - var(--a, 0)) * 60px)); opacity: var(--a, 0); }
	.nh2-on .nh2-hero .cell-l .copy > * { transform: translateY(calc((1 - var(--b, 0)) * 60px)); opacity: var(--b, 0); }
	.nh2-on .nh2-hero .hero-head { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 clamp(24px, 4vw, 64px) clamp(40px, 7vh, 84px); opacity: calc(1 - var(--a, 0) * 2.4); transform: translateY(calc(var(--a, 0) * -40px)); pointer-events: none; }
	.nh2-on .nh2-hero .cue { display: block; position: absolute; right: clamp(24px, 4vw, 64px); bottom: clamp(40px, 7vh, 84px); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
}

.nh2-strip { background: #111111; color: #FFFFFF; padding: 72px 0 0; }
.nh2-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nh2-strip h3 { font-size: 26px; margin: 0 0 8px; color: #FFFFFF; }
.nh2-strip p { color: #D8D8D8; margin: 0; max-width: 300px; }
@media (max-width: 800px) { .nh2-strip .wrap { grid-template-columns: 1fr; gap: 28px; } }
.nh-ticker { overflow: hidden; margin-top: 64px; border-top: 1px solid #333333; padding: 22px 0; }
.nh-ticker > div { display: flex; width: max-content; animation: nh-ticker 60s linear infinite; }
.nh-ticker span { font-family: var(--font-head); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding: 0 28px; }
.nh-ticker span::after { content: '+'; margin-left: 56px; color: #8FB3AC; }
@keyframes nh-ticker { to { transform: translateX(-50%); } }

.nh2-intro .big { font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 62px); line-height: 1.12; max-width: 20ch; margin: 0 0 clamp(40px, 6vw, 84px); }
.nh2-intro h2 { font-size: 13px; font-family: var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.nh2-three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nh2-three li { background: #FFFFFF; padding: 36px 32px 40px; margin: 0; }
.nh2-three span { font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.nh2-three h3 { margin: 48px 0 10px; font-size: 26px; }
.nh2-three p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .nh2-three { grid-template-columns: 1fr; } .nh2-three h3 { margin-top: 24px; } }

/* Steps: swipe sideways by default; pinned sideways travel with the engine */
.nh2-steps { background: #111111; color: #FFFFFF; }
.nh2-steps .pin { padding: 72px 0; }
.nh2-steps .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.nh2-steps .eyebrow { color: #8FB3AC; }
.nh2-steps h2 { color: #FFFFFF; margin: 0; }
.nh2-steps .cue { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0; white-space: nowrap; }
.nh2-steps .track { list-style: none; margin: 0; padding: 0 var(--gutter) 8px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nh2-steps .track::-webkit-scrollbar { display: none; }
.nh2-steps .track li { flex: 0 0 78vw; max-width: 420px; scroll-snap-align: center; margin: 0; }
.nh2-steps figure { margin: 0 0 18px; aspect-ratio: 3 / 4; overflow: hidden; background: #2A2A2A; }
.nh2-steps figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.nh2-steps li span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8FB3AC; }
.nh2-steps li h3 { color: #FFFFFF; font-size: 28px; margin: 6px 0 8px; }
.nh2-steps li p { color: #D8D8D8; margin: 0; }
@media (min-width: 992px) {
	.nh2-on .nh2-steps .pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 84px 0 32px; }
	.nh2-on .nh2-steps .track { overflow: visible; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; gap: 28px; }
	.nh2-on .nh2-steps .track li { flex: 0 0 auto; width: calc((100vh - 330px) * .75); min-width: 260px; max-width: none; }
}

.nh2-areas { text-align: center; padding-bottom: 0; }
.nh2-areas .wrap { max-width: 900px; }
.nh2-areas .list { color: var(--muted); }
.nh2-wide { margin: clamp(40px, 6vw, 80px) 0 0; aspect-ratio: 16 / 7.4; background: var(--bg-3); }
.nh2-wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) { .nh2-wide { aspect-ratio: 4 / 3; } .nh2-wide img { object-position: 42% 40%; } }

.nh2-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 40px; }
.nh2-tiers article { background: #FFFFFF; padding: 0 0 36px; display: flex; flex-direction: column; }
.nh2-tiers figure { margin: 0 0 28px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.nh2-tiers img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.nh2-tiers h3, .nh2-tiers .sub, .nh2-tiers ul, .nh2-tiers .btn { margin-left: 32px; margin-right: 32px; }
.nh2-tiers h3 { font-size: 30px; margin-bottom: 4px; }
.nh2-tiers .sub { color: var(--accent); margin-top: 0; }
.nh2-tiers ul { padding-left: 18px; color: var(--muted); margin-bottom: 28px; }
.nh2-tiers .btn { margin-top: auto; text-align: center; }
@media (max-width: 900px) { .nh2-tiers { grid-template-columns: 1fr; gap: 24px; } }

.nh2-mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: clamp(40px, 7vw, 110px) 4px; overflow: hidden; }
.nh2-mosaic figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.nh2-mosaic figure:nth-child(even) { margin-top: 12%; }
.nh2-mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
@media (max-width: 991px) { .nh2-mosaic { grid-template-columns: 1fr 1fr; } .nh2-mosaic figure:nth-child(even) { margin-top: 0; } .nh2-mosaic figure:last-child { display: none; } }

.nh2-sold { background: #111111; color: #FFFFFF; }
.nh2-sold h2 { color: #FFFFFF; }
.nh2-sold .eyebrow { color: #8FB3AC; }
.nh2-sold ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #333333; }
.nh2-sold li { padding: 32px 28px 8px 0; margin: 0; }
.nh2-sold li + li { padding-left: 28px; border-left: 1px solid #333333; }
.nh2-sold span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8FB3AC; }
.nh2-sold b { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); margin: 10px 0 6px; }
.nh2-sold em { font-style: normal; color: #D8D8D8; }
@media (max-width: 800px) { .nh2-sold ul { grid-template-columns: 1fr; } .nh2-sold li + li { padding-left: 0; border-left: 0; border-top: 1px solid #333333; } }

.nh2-close { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #FFFFFF; background: #1B1B1B; overflow: hidden; }
.nh2-close figure { position: absolute; inset: 0; margin: 0; }
.nh2-close figure img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.nh2-close::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.66) 100%); }
.nh2-close .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 8vh, 96px); text-align: right; }
.nh2-close h2 { color: #FFFFFF; font-size: clamp(32px, 4.6vw, 68px); max-width: 14ch; margin-left: auto; }
.nh2-close p { color: #FFFFFF; }
.nh2-close .actions { justify-content: flex-end; display: flex; flex-wrap: wrap; gap: 12px; }
.nh2-close .btn-primary { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
.nh2-close .btn-primary:hover { background: transparent; color: #FFFFFF; }
.nh2-close .btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.nh2-close .btn-ghost:hover { background: #FFFFFF; color: #111111; }
@media (max-width: 700px) { .nh2-close .wrap { text-align: left; } .nh2-close h2 { margin-left: 0; } .nh2-close .actions { justify-content: flex-start; } }

html.nh2-on { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { .nh-ticker > div { animation: none; } .nh-card img { transition: none; } }

/* v2.3: New Home One is the homepage, so cancel the old homepage's see-through header */
.home.nh-one .site-header.nh1-header { position: sticky; top: 0; background: rgba(255,255,255,.96); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.home.nh-one .nh1-header .wrap { padding-top: 0; }
.home.nh-one .nh1-header .brand, .home.nh-one .nh1-header .primary-nav .menu a, .home.nh-one .nh1-header .menu-toggle { color: var(--text); }
.home.nh-one .nh1-header .menu-toggle { border-color: var(--line-2); }
.home.nh-one .nh1-header .primary-nav .menu a::after { background: var(--text); }
