/* =========================================================
   Three hero designs for home-1/2/3.html (Oct 21)
   1  light editorial: centered type between rounded photo cards (Lila Ray reference)
   2  espresso + mockup: rings texture, phone over taped photos (old MBW hero)
   3  photo mosaic: drifting tilted album photos behind the type (new MBW hero)
   ========================================================= */

/* reset the old hero rules for every new hero */
html body .hero.hn {
  position: relative; isolation: isolate; overflow: hidden;
  height: auto !important; min-height: calc(100svh - var(--bar-h, 0px));
  display: grid; align-items: center; padding: 0;
}
html body .hero.hn .hero__copy { position: static; }
html body .hn .h1 { font-size: var(--fs-mega) !important; line-height: .98 !important; }
html body .hn .h1__line { display: block; white-space: normal; }
html body .hn .hero__kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; }
.ph { margin: 0; overflow: hidden; border-radius: 22px; box-shadow: 0 40px 70px -46px rgba(21, 12, 12, .55); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* handwritten line + hand-drawn circle (shared by 2 and 3) */
.hn__script { margin: -4px 0 4px; font-family: var(--script); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; color: var(--peach); rotate: -3deg; transform-origin: left center; }
.hn__circled { position: relative; }
.hn__circle { position: absolute; left: -8%; top: 2%; width: 116%; height: 104%; overflow: visible; pointer-events: none; }
.hn__circle path { fill: none; stroke: var(--terracotta); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; animation: hnDraw 1.4s cubic-bezier(.32, .72, 0, 1) 1.2s forwards; }
@keyframes hnDraw { to { stroke-dashoffset: 0; } }

/* ---------- 1: light editorial ---------- */
html body .hn--1 { background: var(--lines-light), var(--cream); color: var(--espresso); }
.hn1 { position: relative; width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(120px, 15vh, 160px) 0 clamp(60px, 9vh, 100px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.hn1__left { aspect-ratio: 3 / 4; align-self: end; margin-bottom: 4%; }
.hn1__center { display: grid; justify-items: center; text-align: center; gap: 18px; }
.hn1__mark { width: 34px; height: 31px; fill: var(--terracotta); }
html body .hn--1 .hero__kicker { color: var(--espresso) !important; }
.hn1__rule { width: 1px; height: 48px; background: var(--terracotta); }
html body .hn--1 .h1 { color: var(--espresso) !important; text-align: center; max-width: 11em; }
html body .hn--1 .btn-row { justify-content: center; margin-top: 6px; }
html body .hn--1 .btn--secondary { color: var(--espresso) !important; border-color: var(--espresso) !important; }
.hn1__right { position: relative; align-self: start; padding-bottom: 32%; }
.hn1__tall { aspect-ratio: 3 / 4.1; }
.hn1__small { position: absolute; left: -22%; bottom: 0; width: 58%; aspect-ratio: 4 / 5; border: 6px solid var(--cream); }
.hn1__script { position: absolute; right: -4%; bottom: 6%; width: 52%; height: 2.4em; margin: 0; font-family: var(--script); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; color: var(--sienna); }
.hn1__script span { position: absolute; inset: 0; opacity: 0; animation: hnSwap 8s cubic-bezier(.32, .72, 0, 1) infinite; }
.hn1__script span:nth-child(2) { animation-delay: 4s; }
@keyframes hnSwap { 0%, 6% { opacity: 0; transform: translateY(8px); } 12%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 1000px) {
  .hn1 { grid-template-columns: 1fr; padding-top: 120px; }
  .hn1__left { display: none; }
  .hn1__right { width: min(78%, 360px); justify-self: center; margin-left: 14%; }
}

/* ---------- 2: espresso + mockup ---------- */
html body .hn--2 { background: var(--rings-hero), var(--espresso); color: var(--cream); }
html body .hn--2::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(42% 60% at 78% 58%, rgba(140, 52, 32, .45), transparent 70%); }
.hn2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: min(1280px, calc(100% - 2 * var(--gutter))); max-width: none; padding: clamp(130px, 16vh, 170px) 0 clamp(70px, 9vh, 110px); }
.hn2__copy { display: grid; gap: 20px; justify-items: start; }
html body .hn--2 .hero__kicker { color: var(--peach) !important; }
html body .hn--2 .h1 { color: var(--cream) !important; max-width: 9.5em; }
html body .hn--2 .btn--secondary { color: var(--cream) !important; }
.hn2__visual { position: relative; aspect-ratio: 1 / .95; width: 100%; max-width: 580px; justify-self: end; }
.hn2__snap1 { left: 0; top: 4%; width: 52%; height: 70%; rotate: -6deg; }
.hn2__snap2 { right: 0; bottom: 0; width: 44%; height: 50%; rotate: 5deg; }
.hn2__snap2 .snap__tape { background: rgba(140, 105, 97, .8); rotate: 4deg; }
.hn2__phone { position: absolute; left: 50%; top: 50%; height: 104%; width: auto; translate: -46% -52%; rotate: 4deg; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .55)); z-index: 3; }
@media (max-width: 900px) {
  .hn2 { grid-template-columns: 1fr; padding-top: 120px; }
  .hn2__visual { justify-self: center; max-width: 420px; }
}

/* ---------- 3: photo mosaic ---------- */
html body .hn--3 { background: var(--espresso); color: var(--cream); }
.hn3__mosaic { position: absolute; inset: -20% -10%; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; rotate: -8deg; }
.hn3__col { display: grid; gap: 18px; align-content: start; animation: hnUp 70s linear infinite; }
.hn3__col:nth-child(even) { animation-name: hnDown; }
.hn3__col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
@keyframes hnUp { to { transform: translateY(-50%); } }
@keyframes hnDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
html body .hn--3::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(21, 12, 12, .96) 18%, rgba(21, 12, 12, .82) 48%, rgba(21, 12, 12, .55) 100%); }
.hn3__copy { display: grid; gap: 20px; justify-items: start; width: min(1280px, calc(100% - 2 * var(--gutter))); max-width: none; padding: clamp(130px, 16vh, 170px) 0 clamp(70px, 9vh, 110px); }
html body .hn--3 .hero__kicker { color: var(--peach) !important; }
html body .hn--3 .h1 { color: var(--cream) !important; max-width: 9em; }
html body .hn--3 .btn--secondary { color: var(--cream) !important; }

@media (prefers-reduced-motion: reduce) {
  .hn3__col, .hn1__script span { animation: none; }
  .hn1__script span:first-child { opacity: 1; }
  .hn__circle path { animation: none; stroke-dashoffset: 0; }
}

/* fixes after first look */
.hn__script { margin-top: 10px; }
.hn1__script { right: auto; left: 40%; bottom: -2%; width: 70%; color: var(--sienna); }
.hn3__mosaic { inset: -30% -6% -30% 30%; grid-template-columns: repeat(6, 1fr); gap: 14px; rotate: -10deg; }
.hn3__col { gap: 14px; }
.hn3__col img { border-radius: 10px; }
html body .hn--3::before { background: linear-gradient(95deg, rgba(21, 12, 12, 1) 30%, rgba(21, 12, 12, .78) 55%, rgba(21, 12, 12, .45) 100%); }

/* one page, three heroes: only the chosen one shows */
html:not([data-hn="1"]) .hn--1, html:not([data-hn="2"]) .hn--2, html:not([data-hn="3"]) .hn--3 { display: none !important; }
.hntoggle { position: fixed; z-index: 40; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--cream); color: var(--espresso); box-shadow: 0 14px 30px -14px rgba(21, 12, 12, .5); font: 600 12px/1 var(--body); }
.hntoggle span { margin-right: 6px; }
.hntoggle button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color .3s cubic-bezier(.32, .72, 0, 1), color .3s cubic-bezier(.32, .72, 0, 1); }
.hntoggle button:hover { background: var(--beige); }
.hntoggle button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }
.hntoggle button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Oct 21: hero 1 goes dark (espresso + rings) */
html body .hn--1 { background: var(--rings-hero), var(--espresso); color: var(--cream); }
html body .hn--1::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 55% at 50% 60%, rgba(140, 52, 32, .32), transparent 70%); }
html body .hn--1 .hero__kicker { color: var(--peach) !important; }
html body .hn--1 .h1 { color: var(--cream) !important; }
html body .hn--1 .btn--secondary { color: var(--cream) !important; border-color: var(--cream) !important; }
.hn1__mark { fill: var(--peach); }
.hn1__rule { background: var(--peach); }
.hn1__small { border-color: var(--espresso); }
.hn1__script { color: var(--peach) !important; }
.ph { box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }

/* Oct 21: dark heroes on Balsamico, glow removed */
html body .hn--1, html body .hn--2 { background: var(--rings-hero), var(--balsamico); }
html body .hn--3 { background: var(--balsamico); }
html body .hn--1::after, html body .hn--2::after { content: none; }
html body .hn--3::before { background: linear-gradient(95deg, rgba(36, 16, 11, 1) 30%, rgba(36, 16, 11, .78) 55%, rgba(36, 16, 11, .45) 100%); }
.hn1__small { border-color: var(--balsamico); }
html body .hn .h1 { line-height: 1.06 !important; }

/* Oct 21: MBW-style hero wash, darkest on the left fading lighter to the right,
   rings texture showing through mostly on the light side */
html body .hn--1, html body .hn--2 {
  background:
    linear-gradient(100deg, rgba(21, 12, 12, .97) 26%, rgba(36, 16, 11, .82) 52%, rgba(140, 52, 32, .42) 100%),
    var(--rings-hero), var(--mahogany);
}

/* ---------- 4: MBW-style, big left-aligned type + photo pair on the right ---------- */
html:not([data-hn="4"]) .hn--4 { display: none !important; }
html body .hn--4 {
  background:
    linear-gradient(100deg, rgba(21, 12, 12, .97) 26%, rgba(36, 16, 11, .82) 52%, rgba(140, 52, 32, .42) 100%),
    var(--rings-hero), var(--mahogany);
  color: var(--cream);
}
.hn4 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: min(1280px, calc(100% - 2 * var(--gutter))); max-width: none; padding: clamp(130px, 16vh, 170px) 0 clamp(70px, 9vh, 110px); }
.hn4__copy { display: grid; gap: 26px; justify-items: start; text-align: left; }
html body .hn--4 .hero__kicker { color: var(--peach) !important; }
html body .hn--4 .h1 { color: var(--cream) !important; font-size: clamp(3.2rem, 6.8vw, 6.6rem) !important; line-height: 1 !important; max-width: 8.5em; text-align: left; }
html body .hn--4 .btn--secondary { color: var(--cream) !important; border-color: var(--cream) !important; }
.hn4__visual { position: relative; width: 100%; max-width: 480px; justify-self: end; padding-bottom: 18%; }
.hn4__tall { aspect-ratio: 3 / 4; }
.hn4__small { position: absolute; left: -18%; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 6px solid var(--mahogany); }
@media (max-width: 900px) {
  .hn4 { grid-template-columns: 1fr; padding-top: 120px; }
  .hn4__visual { justify-self: center; max-width: 360px; margin-left: 12%; }
}
.hn4__visual { max-width: min(420px, 52vh); padding-bottom: 12%; }
.hn4__small { width: 42%; }

/* Oct 21: hero 4 keeps its photo layout, adds hero 2's tape + "come as you are" script */
.hn4__tall, .hn4__small { overflow: visible; }
.hn4__tall img, .hn4__small img { border-radius: 22px; }
.hn4__small img { border-radius: 16px; }
.hn4__tall .snap__tape { rotate: -3deg; }
.hn4__small .snap__tape { width: 84px; background: rgba(140, 105, 97, .8); rotate: 4deg; }
html body .hn--4 .hn__script { margin: -10px 0 0; }

/* gradient a touch lighter on heroes 1, 2 and 4 */
html body .hn--1, html body .hn--2, html body .hn--4 {
  background:
    linear-gradient(100deg, rgba(21, 12, 12, .82) 22%, rgba(36, 16, 11, .62) 52%, rgba(140, 52, 32, .32) 100%),
    var(--rings-hero), var(--mahogany);
}
.hn4__tall img { object-position: 45% 50%; }
.hn4__small img { object-position: 50% 20%; }
.hn4__small { border: 0; }
.hn4__small img { object-position: 45% 18%; }
.hn4__small img { object-position: 50% 15%; }

/* ---------- 3 (Oct 21, replaces the mosaic): cinematic ----------
   the sunset portrait fills the right side and melts into Rich Mahogany on the left,
   big left-aligned type in the dark, one slow push-in on load */
html body .hn--3.hn3c { background: var(--mahogany); color: var(--cream); align-items: end; }
html body .hn--3.hn3c::before { content: none; }
.hn3c__photo { position: absolute; inset: 0 0 0 auto; width: min(64%, 980px); margin: 0; z-index: -2; overflow: hidden; }
.hn3c__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: hn3cPush 2.8s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes hn3cPush { from { transform: scale(1.08); } to { transform: none; } }
.hn3c__photo::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #24100B 0%, rgba(36, 16, 11, .85) 18%, rgba(36, 16, 11, 0) 55%),
    linear-gradient(0deg, rgba(36, 16, 11, .9) 0%, rgba(36, 16, 11, 0) 32%); }
.hn3c__copy { position: relative; display: grid; gap: 22px; justify-items: start; width: min(1280px, calc(100% - 2 * var(--gutter))); max-width: none; padding: clamp(150px, 20vh, 220px) 0 clamp(70px, 11vh, 120px); }
html body .hn--3.hn3c .hero__kicker { color: var(--peach) !important; }
html body .hn--3.hn3c .h1 { color: var(--cream) !important; font-size: clamp(3.2rem, 6.8vw, 6.6rem) !important; line-height: 1 !important; max-width: 8.5em; }
html body .hn--3.hn3c .btn--secondary { color: var(--cream) !important; border-color: var(--cream) !important; }
html body .hn--3.hn3c .hn__script { margin: -10px 0 0; }
@media (max-width: 900px) {
  .hn3c__photo { width: 100%; }
  .hn3c__photo img { object-position: 60% 20%; }
  .hn3c__photo::after { background: linear-gradient(0deg, #24100B 8%, rgba(36, 16, 11, .75) 45%, rgba(36, 16, 11, .15) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hn3c__photo img { animation: none; } }
.hntoggle button.hntoggle__word { width: auto; padding: 0 12px; border-radius: 999px; }
.hn--2 .hn__circle path, .hn--3 .hn__circle path { stroke: var(--peach); }

/* Oct 22: option pickers live inside their sections so they're seen while scrolling */
.optpick { position: absolute; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--cream); color: var(--coffee); box-shadow: 0 14px 30px -14px rgba(21, 12, 12, .5); font: 600 12px/1 var(--body); }
.optpick span { margin-right: 6px; }
.optpick button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color .3s cubic-bezier(.32, .72, 0, 1), color .3s cubic-bezier(.32, .72, 0, 1); }
.optpick button.optpick__word { width: auto; padding: 0 12px; border-radius: 999px; }
.optpick button:hover { background: rgba(21, 12, 12, .08); }
.optpick button[aria-pressed="true"] { background: var(--mahogany); color: var(--cream); }
.optpick button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.optpick__sep { margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(21, 12, 12, .15); }
.optpick--hero { right: 24px; bottom: 24px; }
.optpick--derian { right: 24px; top: 24px; }
html body .feature--derian, html body .derian2 { position: relative; }
@media (max-width: 700px) {
  .optpick { font-size: 11px; padding-left: 10px; flex-wrap: wrap; max-width: calc(100% - 24px); border-radius: 18px; }
  .optpick--hero, .optpick--derian { right: 12px; }
}

/* Oct 22: hero 2 removed; heroes 1, 3 and 4 are all exactly one window tall */
html body .hero.hn { height: calc(100svh - var(--bar-h, 0px)) !important; min-height: 0 !important; }
.hn1, .hn4 { padding-top: clamp(96px, 12vh, 130px); padding-bottom: clamp(56px, 8vh, 90px); }
.hn3c__copy { padding-top: clamp(110px, 14vh, 160px); padding-bottom: clamp(60px, 9vh, 100px); }
.hn4 { padding-top: clamp(84px, 10vh, 116px); padding-bottom: clamp(48px, 7vh, 80px); }

/* Oct 23: hero 3 uses hero 4's text layout (vertically centered, same spacing and column) */
html body .hn--3.hn3c { align-items: center; }
.hn3c__copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 26px; justify-items: start; align-content: center; padding-top: clamp(84px, 10vh, 116px); padding-bottom: clamp(48px, 7vh, 80px); }
.hn3c__copy > * { grid-column: 1; }

/* Oct 24: copy direction 5 */
html body .hn--3.hn3c .h1 { font-size: clamp(2.8rem, 5vw, 5rem) !important; max-width: 11em; }
.hn3c__sub { max-width: 32em; color: rgba(251, 245, 239, .84); font-size: 16px; line-height: 1.7; }
