/* Yawa House: home page sections */

/* hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(106, 63, 85, 0.75), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(201, 162, 126, 0.16), transparent 60%),
    var(--plum);
  min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding-block: 128px 96px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__rings { position: absolute; width: min(900px, 120vw); inset-inline-start: -18%; bottom: -12%; fill: none; stroke: rgba(230, 200, 173, 0.14); stroke-width: 1; pointer-events: none; }
.hero__rings path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ring-draw 2.4s var(--ease-out) forwards; }
.hero__rings path:nth-child(2) { animation-delay: 0.15s; } .hero__rings path:nth-child(3) { animation-delay: 0.3s; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__place { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 16px; border: 1px solid rgba(230, 200, 173, 0.3); border-radius: 999px; font-size: 0.92rem; color: var(--beige); animation: rise 900ms var(--ease-out) both; }
.hero__place .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 126, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(201, 162, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 126, 0); } }
.hero__title { margin: 0; font-weight: 800; line-height: 1.02; font-size: clamp(3.6rem, 2rem + 7vw, 7.4rem); letter-spacing: -0.02em; color: var(--paper); }
html[lang="en"] .hero__title { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(3.8rem, 2rem + 7vw, 7.6rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .word { display: inline-block; animation: word-up 1100ms var(--ease-out) both; animation-delay: calc(150ms + var(--i) * 140ms); }
.hero__title em { font-style: normal; color: var(--gold); position: relative; }
html[lang="en"] .hero__title em { font-style: italic; }
.hero__title em::after { content: ""; position: absolute; inset-inline: 0.05em; bottom: 0.04em; height: 0.06em; border-radius: 999px; background: var(--gold); transform: scaleX(0); transform-origin: var(--origin, right); animation: underline 900ms var(--ease-out) 1100ms forwards; opacity: 0.55; }
html[dir="ltr"] .hero__title em::after { --origin: left; }
@keyframes word-up { from { transform: translateY(105%) rotate(2deg); } }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero__text { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem); color: var(--on-dark-soft); max-width: 44ch; margin: 26px 0 0; animation: rise 900ms var(--ease-out) 500ms both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: rise 900ms var(--ease-out) 650ms both; }
.hero__art { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1040 / 1210; }
.hero__arch { position: absolute; inset: 0; border-radius: var(--arch); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  clip-path: inset(100% 0 0 0 round 999px 999px var(--r) var(--r)); animation: arch-open 1300ms var(--ease-in-out) 200ms forwards; }
.hero__arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(230, 200, 173, 0.35); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: settle 1800ms var(--ease-out) 200ms forwards; }
@keyframes arch-open { to { clip-path: inset(0 0 0 0 round 999px 999px var(--r) var(--r)); } }
@keyframes settle { to { transform: scale(1.04); } }
.hero__spine { position: absolute; height: 92%; width: auto; top: 4%; inset-inline-end: -16%; opacity: 0.85; clip-path: inset(0 0 100% 0); animation: spine-draw 1800ms var(--ease-out) 900ms forwards; }
@keyframes spine-draw { to { clip-path: inset(0 0 0 0); } }
.hero__detail { position: absolute; width: 38%; aspect-ratio: 1; inset-inline-start: -14%; bottom: 10%; border-radius: var(--arch); overflow: hidden; border: 5px solid var(--plum); box-shadow: var(--shadow); animation: pop 900ms var(--ease-out) 1300ms both; }
.hero__detail img { width: 100%; height: 100%; object-fit: cover; }
.hero__hours { position: absolute; inset-inline-end: -6%; bottom: -4%; margin: 0; display: grid; gap: 2px; padding: 14px 20px; border-radius: 22px; background: rgba(255, 250, 244, 0.95); color: var(--plum); font-size: 0.92rem; box-shadow: var(--shadow); animation: pop 900ms var(--ease-out) 1500ms both; }
.hero__hours-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--mauve); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
[data-depth] { will-change: transform; }
.hero__scroll { position: absolute; bottom: 24px; inset-inline-start: 50%; translate: calc(var(--dir) * 50%) 0; width: 28px; height: 46px; border-radius: 999px; border: 1.5px solid rgba(230, 200, 173, 0.45); z-index: 2; }
.hero__scroll span { position: absolute; inset-inline-start: 50%; top: 9px; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 4px; background: var(--gold); animation: scroll-dot 1.8s var(--ease-out) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 900px) {
  .hero { padding-block: 112px 88px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { width: min(78%, 360px); margin-top: 12px; }
  .hero__detail { inset-inline-start: -10%; }
  .hero__spine { inset-inline-end: -18%; }
  .hero__scroll { display: none; }
}
@media (max-width: 480px) { .hero__actions .btn { width: 100%; } .hero__hours { inset-inline-end: -8%; padding: 10px 14px; font-size: 0.82rem; } }

/* marquee */
.marquee { overflow: hidden; padding-block: 22px; color: var(--mauve); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }
.marquee__group span { font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 800; white-space: nowrap; }
html[lang="en"] .marquee__group span { font-family: var(--serif); font-style: italic; font-weight: 500; }
.marquee__group i { width: 10px; height: 14px; border-radius: 999px 999px 3px 3px; background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* start */
.start { background: var(--paper); }
.start__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "intro result" "opts result"; gap: 28px clamp(32px, 5vw, 72px); align-items: start; }
.start__intro { grid-area: intro; }
.start__options { grid-area: opts; border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.option { position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 300ms var(--ease-out), transform 160ms var(--ease-out); }
.option:active { transform: scale(0.985); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; transition: background-color 200ms ease; }
.option__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform 250ms var(--ease-out); }
.option__text { flex: 1; font-weight: 500; line-height: 1.5; }
.option .icon { color: var(--gold); opacity: 0; transform: translateX(calc(var(--dir) * -6px)); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
[dir="rtl"] .option .icon { transform: scaleX(-1) translateX(-6px); }
.option:has(input:checked) { background: var(--plum); border-color: var(--plum); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.option:has(input:checked) .option__mark { background: var(--gold); }
.option:has(input:checked) .option__mark::after { transform: scale(1); }
.option:has(input:checked) .icon { opacity: 1; transform: none; }
[dir="rtl"] .option:has(input:checked) .icon { transform: scaleX(-1); }
.option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .option:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); } }
.start__result { grid-area: result; position: sticky; top: 100px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px; align-items: center; min-height: 480px; padding: 28px; border-radius: var(--r-lg); background: var(--plum); color: var(--on-dark); overflow: hidden;
  background-image: radial-gradient(500px 360px at 0% 0%, rgba(106, 63, 85, 0.8), transparent 70%); }
.start__visual { position: relative; height: 100%; min-height: 380px; display: grid; place-items: center; }
.start__arch { position: absolute; inset: 6% 4%; width: 92%; height: 88%; fill: none; stroke: rgba(230, 200, 173, 0.25); stroke-width: 1; }
.start__spine { position: relative; height: 340px; }
.start__spine img { height: 100%; width: auto; opacity: 0.35; }
.start__spine .start__spine-lit { position: absolute; inset: 0; opacity: 1; filter: drop-shadow(0 0 10px rgba(201, 162, 126, 0.8)) brightness(1.15);
  clip-path: inset(var(--lit-top, 50%) 0 var(--lit-bottom, 50%) 0 round 20px); transition: clip-path 580ms var(--ease-in-out); }
.start__glow { position: absolute; inset-inline: -40%; top: var(--lit-top, 50%); bottom: var(--lit-bottom, 50%); border-radius: 999px; background: radial-gradient(closest-side, rgba(201, 162, 126, 0.45), transparent); transition: top 580ms var(--ease-in-out), bottom 580ms var(--ease-in-out); }
.start__result[data-path="1"] { --lit-top: 2%; --lit-bottom: 52%; }
.start__result[data-path="2"] { --lit-top: 0%; --lit-bottom: 0%; }
.start__result[data-path="3"] { --lit-top: 48%; --lit-bottom: 6%; }
.start__result[data-path="4"] { --lit-top: 26%; --lit-bottom: 30%; }
.start__result[data-path="5"] { --lit-top: 12%; --lit-bottom: 12%; }
.start__answer { padding: 8px; }
.start__hint { color: var(--on-dark-soft); font-size: 1.05rem; margin: 0; }
.start__card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; line-height: 1.25; margin: 0 0 10px; color: var(--paper); }
html[lang="en"] .start__card h3 { font-family: var(--serif); font-weight: 600; }
.start__card p { color: var(--on-dark-soft); margin: 0 0 14px; }
.start__card .price-line { color: var(--beige); font-size: 0.98rem; }
.start__card .price-line strong { font-size: 1.4rem; color: var(--gold); }
.start__card:not([hidden]) { animation: card-in 400ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
@media (max-width: 900px) {
  .start__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "opts" "result"; }
  .start__result { position: relative; top: 0; grid-template-columns: 110px 1fr; min-height: 0; padding: 22px; }
  .start__visual { min-height: 260px; }
  .start__spine { height: 240px; }
}
@media (max-width: 520px) {
  .start__result { grid-template-columns: 1fr; text-align: center; }
  .start__visual { min-height: 200px; }
  .start__spine { height: 190px; }
  .start__card .row-actions, .start__card > .btn { justify-content: center; }
  .option { border-radius: 26px; }
}
