/* ============================================================================================================
   home.css — the Shubh Muhrat homepage (PM "shubhmuhrat-homepage (1).html", 2026-10-11) on the brand tokens
   (/static/css/brand.css = design.md). Layout + motion follow the PM file; colours/type follow design.md (palette sheet).
   Background rhythm (design.md §4.3): ivory hero → paper strip → ivory products → blush closing → paper footer.
   ============================================================================================================ */
html { scroll-padding-top: 84px; }
/* smooth only for in-page jumps (the product strip, "See everything"): a link has focus then. Programmatic scrolls stay instant — a
   global smooth scroll made scripted scrolling (guards, scroll restoration) lag behind and skip the reveal of the product rows */
html:focus-within { scroll-behavior: smooth; }
body.sm { margin: 0; overflow-x: hidden; }
.sm img { display: block; max-width: 100%; }
:where(.sm) a { color: inherit; }
:where(.home) p, :where(.home) ul, :where(.home) figure { margin: 0; }   /* zero specificity: component margins below always win */

/* ── hero: the courtyard scene, text on the left (phone: text first, scene below) ── */
.home-hero { position: relative; overflow: hidden; background: #F6E9DD; min-height: clamp(540px, 46vw, 720px); display: flex; align-items: center; }
.home-hero .scene { position: absolute; inset: 0; }
.home-hero .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 236, 224, .62), rgba(248, 236, 224, 0) 48%); }
.home-hero .scene img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.home-hero .wrap { position: relative; width: 100%; box-sizing: border-box; padding: 64px clamp(20px, 5vw, 96px); }
.home-hero .htext { max-width: min(30vw, 470px); }
.home-hero .sm-eyebrow { color: #9C3F3C; }   /* --sm-rose-text is 4.1:1 on the hero's peach; this deeper rose is 5.2:1 */   /* the hero image's soft left third; the cards start at ~35% */
.home-hero h1 { font: 600 clamp(42px, 4.3vw, 74px)/1.03 var(--sm-serif); color: var(--sm-wine); margin-top: 24px; letter-spacing: -.005em; }
.home-hero h1 i { display: block; font-weight: 500; }
.home-hero .sub { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; margin-top: 24px; color: #5D4A4E; }
.home-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-orn { display: flex; align-items: center; gap: 14px; color: var(--sm-champagne); margin-top: 34px; max-width: 390px; }
.home-orn::before, .home-orn::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .7; }
@media (max-width: 900px) {
  .home-hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .home-hero .scene { position: relative; height: clamp(260px, 62vw, 380px); }
  .home-hero .scene::after { background: linear-gradient(180deg, #F6E9DD, rgba(246, 233, 221, 0) 32%); }
  .home-hero .scene img { object-position: 60% center; }
  .home-hero .htext { max-width: none; }
  .home-hero .wrap { padding: 40px var(--sm-gutter) 18px; }
  .home-hero h1 { font-size: clamp(40px, 10.5vw, 56px); margin-top: 18px; }
  .home-orn { margin-top: 26px; }
}
@media (max-width: 479px) { .home-hero .ctas .sm-btn { width: 100%; } }

/* ── quick strip: jump to a product ── */
.home-strip { background: var(--sm-surface); border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); }
.home-strip .wrap { display: flex; justify-content: space-between; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.home-strip .wrap::-webkit-scrollbar { display: none; }
.home-strip a { display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; white-space: nowrap; text-decoration: none;
  color: var(--sm-ink); font-size: 15.5px; padding: 8px 16px; border-radius: var(--sm-r-pill); transition: background-color .3s, color .3s; }
.home-strip a svg { color: var(--sm-rose); flex: none; }
.home-strip a:hover { background: var(--sm-bg-alt); color: var(--sm-wine); }
@media (max-width: 900px) { .home-strip .wrap { justify-content: flex-start; padding-left: var(--sm-gutter); padding-right: var(--sm-gutter); } }

/* ── products: six rows, image/text zigzag, the diamond hairline between rows ── */
.home-products { padding: var(--sm-section) 0 clamp(56px, 6vw, 90px); }
.home-shead { text-align: center; max-width: 880px; margin: 0 auto clamp(44px, 5vw, 72px); }
.home-shead .sm-orn { max-width: 300px; margin: 0 auto 18px; }
.home-shead p { font-size: 18px; margin-top: 14px; }
.home h2 { font: 600 clamp(38px, 4.2vw, 58px)/1.06 var(--sm-serif); color: var(--sm-wine); }
.home h2 i { font-weight: 500; }
.home-rows { display: grid; }
.home-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5.5vw, 88px);
  align-items: center; max-width: 1240px; margin: 0 auto; width: 100%; }
.home-row.flip { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.home-row.flip .frame { order: 2; }
.home-rows .home-row + .home-row { margin-top: clamp(44px, 5vw, 70px); padding-top: clamp(44px, 5vw, 70px); }
.home-rows .home-row + .home-row::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 115, 122, .42) 30%, rgba(184, 115, 122, .42) 70%, transparent); }
.home-rows .home-row + .home-row::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  background: var(--sm-bg); border: 1px solid rgba(184, 115, 122, .6); transform: rotate(45deg); }
.home-row[hidden] { display: none !important; }
.frame { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-r-card); padding: 14px 14px 0;
  box-shadow: 0 2px 4px rgba(90, 40, 30, .04), 0 34px 60px -40px rgba(90, 40, 30, .38); }
.frame > a { display: block; border-radius: 14px; }
.ph { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid rgba(191, 162, 122, .3); container-type: inline-size; }
.ph > img { width: 100%; height: auto; transform-origin: center; transition: transform 1.2s var(--sm-ease); }
.frame a:hover .ph > img { transform: scale(1.025); }
.frame figcaption { display: flex; align-items: baseline; gap: 14px; padding: 14px 6px 16px; font-size: 15px; color: var(--sm-muted); }
.frame figcaption i { font: italic 500 19px var(--sm-serif); color: var(--sm-rose-text); white-space: nowrap; padding-right: 14px; border-right: 1px solid var(--sm-line); }
.rtext h3 { font: 600 clamp(38px, 3.6vw, 56px)/1.02 var(--sm-serif); color: var(--sm-wine); margin-top: 14px; }
.rdesc { font-size: 18px; line-height: 1.6; margin-top: 14px; max-width: 28em; color: var(--sm-text); }
.ben { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.ben li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 16px; color: var(--sm-text); }
.ben b { font-weight: 500; color: var(--sm-ink); }
.ben .sm-ic svg { width: 19px; height: 19px; }
.leaf { position: absolute; width: 150px; color: rgba(184, 115, 122, .3); pointer-events: none; }
.home-row .leaf { right: -70px; top: -30px; transform: scaleX(-1); }
.home-row.flip .leaf { left: -70px; right: auto; transform: none; }
@media (max-width: 1100px) { .home-row .leaf { display: none; } }
/* the leaves hang 70px outside the rows: clip them to the full-width section so a 1101–1240px screen (iPad landscape) never scrolls sideways */
.home-products { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 900px) {
  .home-row, .home-row.flip { grid-template-columns: 1fr; gap: 26px; }
  .home-row.flip .frame { order: 0; }
  .rtext h3 { font-size: clamp(36px, 9vw, 46px); }
  .rdesc { font-size: 17px; }
  .frame { padding: 10px 10px 0; }
  .frame figcaption { padding: 12px 4px 14px; font-size: 14px; }
}
@media (max-width: 479px) { .rtext .sm-btn { width: 100%; } }

/* ── closing: blush band, florals at the foot, one wine CTA ── */
.home-closing { position: relative; overflow: hidden; background: linear-gradient(180deg, #F6EAE5, #F2E1DA); padding: clamp(80px, 9vw, 120px) 0 clamp(150px, 14vw, 200px); text-align: center; }
.home-closing::before, .home-closing::after { content: ""; position: absolute; bottom: 0; width: min(50%, 720px); height: 160px; background-repeat: no-repeat; background-size: contain; opacity: .85; pointer-events: none; }
.home-closing::before { left: 0; background-image: url(/static/assets/home/closing-left.webp); background-position: left bottom; }
.home-closing::after { right: 0; background-image: url(/static/assets/home/closing-right.webp); background-position: right bottom; }
.home-closing .sm-orn { max-width: 300px; margin: 0 auto 18px; }
.home-closing h2 { font-size: clamp(42px, 5vw, 72px); }
.home-closing p { font-size: 18px; margin: 18px auto 0; max-width: 34em; }
.home-closing .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; position: relative; z-index: 1; }
@media (max-width: 600px) { .home-closing::before, .home-closing::after { width: 70%; height: 110px; opacity: .6; } .home-closing::after { display: none; } }
@media (max-width: 479px) { .home-closing .ctas .sm-btn { width: 100%; } }

/* ── motion: plays once, calm, only when motion is allowed (design.md §6) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .home-hero .scene { opacity: 0; transition: opacity 1.6s var(--sm-ease); }
  .js .home-hero .scene img { transform: scale(1.05); transition: transform 2.6s var(--sm-ease); }
  .js .htext > * { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--sm-ease), transform 1s var(--sm-ease); }
  .js .htext .home-orn::before, .js .htext .home-orn::after { transform: scaleX(0); transition: transform 1.2s var(--sm-ease) .9s; }
  .js .home-hero.in .scene { opacity: 1; } .js .home-hero.in .scene img { transform: none; }
  .js .home-hero.in .htext > * { opacity: 1; transform: none; }
  .js .home-hero.in .htext > :nth-child(2) { transition-delay: .12s; } .js .home-hero.in .htext > :nth-child(3) { transition-delay: .24s; }
  .js .home-hero.in .htext > :nth-child(4) { transition-delay: .36s; } .js .home-hero.in .htext > :nth-child(5) { transition-delay: .48s; }
  .js .home-hero.in .htext .home-orn::before, .js .home-hero.in .htext .home-orn::after { transform: scaleX(1); }
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--sm-ease), transform .9s var(--sm-ease); }
  .js .frame.rv { transform: translateY(24px); }
  .js .frame.rv .ph > img { transform: scale(1.05); transition: transform 1.8s var(--sm-ease); }
  .js .in .rv, .js .rv.in { opacity: 1; transform: none; }
  .js .in .frame.rv .ph > img { transform: none; }
  .js .in .rtext .rv:nth-child(2) { transition-delay: .08s; } .js .in .rtext .rv:nth-child(3) { transition-delay: .16s; }
  .js .in .ben li:nth-child(1) { transition-delay: .26s; } .js .in .ben li:nth-child(2) { transition-delay: .36s; } .js .in .ben li:nth-child(3) { transition-delay: .46s; }
  .js .in .rtext .sm-btn.rv { transition-delay: .58s, .58s, 0s, 0s; }
  .js .home-rows .home-row + .home-row::before { transform: scaleX(0); transition: transform 1.4s var(--sm-ease); }
  .js .home-rows .home-row + .home-row::after { opacity: 0; transition: opacity .8s var(--sm-ease) .7s; }
  .js .home-rows .home-row + .home-row.in::before { transform: scaleX(1); }
  .js .home-rows .home-row + .home-row.in::after { opacity: 1; }
  .js .leaf { opacity: 0; transition: opacity 1.6s var(--sm-ease) .4s; } .js .in .leaf { opacity: 1; }
}

/* ── in-image motion (plays once when a row enters view; never with reduced motion) ── */
.fx { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .fx { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .fx img { display: block; max-width: none; }
  .fx .win { position: absolute; overflow: hidden; }
  .fx .strip { width: 100%; height: 200%; display: block; }
  .in .fx .strip { animation: smScrollUp 4.2s cubic-bezier(.45, 0, .2, 1) 1.2s both; }
  .in .fx .site .strip { animation-duration: 5s; animation-delay: 2.2s; }
  @keyframes smScrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
  .fx .ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(125, 46, 62, .45); transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  .in .fx .ring { animation: smRing 2.6s var(--sm-ease) var(--d, 0s) both; }
  @keyframes smRing { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 20% { opacity: .75; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); } }
  .fx-bio .sheen { position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%; transform: skewX(-14deg);
    background: linear-gradient(100deg, transparent, rgba(255, 250, 240, .38) 45%, rgba(255, 250, 240, .5) 50%, rgba(255, 250, 240, .38) 55%, transparent); }
  .in .fx-bio .sheen { animation: smSheen 2.8s cubic-bezier(.4, 0, .2, 1) 1s both; }
  @keyframes smSheen { from { left: -40%; } to { left: 120%; } }
  .fx-match { background: #F4E9E1; }
  .fx-match .half, .fx-match .heart { position: absolute; }
  .fx-match .half.l { transform: translateX(-9%); opacity: 0; } .fx-match .half.r { transform: translateX(9%); opacity: 0; }
  .fx-match .heart { border-radius: 50%; opacity: 0; transform: scale(.7); }
  .in .fx-match .half { animation: smMeet 1.9s var(--sm-ease) .5s forwards; }
  .in .fx-match .heart { animation: smHeart 1.1s var(--sm-ease) 1.9s forwards; }
  @keyframes smMeet { to { transform: none; opacity: 1; } }
  @keyframes smHeart { to { transform: none; opacity: 1; } }
  .fx-kundli .chart { position: absolute; overflow: visible; }
  .fx-kundli .chart path { fill: none; stroke: #8C2A3D; stroke-width: .9; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .in .fx-kundli .chart path { animation: smDraw 2.2s cubic-bezier(.4, 0, .2, 1) .9s forwards, smFadeOut 1.4s ease 3.6s forwards; }
  .in .fx-kundli .chart path:nth-child(2) { animation-delay: 1.3s, 3.6s; } .in .fx-kundli .chart path:nth-child(3) { animation-delay: 1.5s, 3.6s; }
  .in .fx-kundli .chart path:nth-child(4) { animation-delay: 1.8s, 3.6s; }
  @keyframes smDraw { to { stroke-dashoffset: 0; } }
  @keyframes smFadeOut { to { opacity: 0; } }
  .fx-kundli .glow { position: absolute; background: radial-gradient(closest-side, rgba(255, 236, 214, .55), transparent); opacity: 0; }
  .in .fx-kundli .glow { animation: smGlow 2.6s ease 3s both; }
  @keyframes smGlow { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }
  .fx-invite .vid { position: absolute; overflow: hidden; border-radius: 6% / 3%; }
  .fx-invite .vid img { width: 100%; height: 100%; transform-origin: 50% 40%; }
  .in .fx-invite .vid img { animation: smPlay 9s cubic-bezier(.25, .1, .25, 1) 1s both; }
  @keyframes smPlay { from { transform: scale(1); } to { transform: scale(1.09) translateY(-1.5%); } }
  .fx-invite .play { position: absolute; border-radius: 50%; }
  .in .fx-invite .play { animation: smFadeOut 1.2s ease 2.6s forwards; }
  .fx-guests .num { position: absolute; display: flex; align-items: center; font: 600 1.45cqw/1 var(--sm-sans); color: #1d1b1b; letter-spacing: -.01em; }
  .fx-bazaar .fav { position: absolute; display: grid; place-items: center; opacity: 0; transform: scale(.7); }
  .fx-bazaar .fav svg { width: 46%; fill: #8C2A3D; }
  .in .fx-bazaar .fav { animation: smHeart 1s var(--sm-ease) 4.8s forwards; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .home *, .home *::before, .home *::after { transition: none !important; animation: none !important; } }
