/* toiletbowl.sg home page. Media first: every picture and video area is a slot filled from /assets/media.js */
.home .section { padding: 72px 0 0; }
.home .sec-head h2, .home .section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.home .foot { margin-top: 88px; }

/* hero */
.hx { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.hx-media { position: absolute; inset: 0; z-index: -2; border-radius: 0; background: var(--night); }
.hx-media.is-blank { background-image: radial-gradient(90% 80% at 88% 8%, #43281a 0%, rgba(22, 19, 15, 0) 62%), radial-gradient(55% 60% at 100% 100%, rgba(240, 78, 35, 0.3), rgba(22, 19, 15, 0) 70%); }
/* while the hero is blank: the bowl-from-above mark, large and quiet */
.hx-media.is-blank::before { content: ""; position: absolute; right: clamp(-80px, -2vw, 60px); top: 50%; width: clamp(280px, 38vw, 560px); aspect-ratio: 0.88; transform: translateY(-50%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); background: radial-gradient(ellipse 21% 23% at 50% 55%, rgba(240, 78, 35, 0.95) 0 97%, transparent 100%), radial-gradient(ellipse 39% 40% at 50% 50%, rgba(255, 255, 255, 0.06) 0 98%, transparent 100%); }
@media (max-width: 760px) { .hx-media.is-blank::before { top: 4%; right: -110px; width: 250px; transform: none; opacity: 0.55; } }
.hx-media .slot-ph { display: none; }
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 19, 15, 0.86) 0%, rgba(22, 19, 15, 0.5) 52%, rgba(22, 19, 15, 0.08) 100%), linear-gradient(0deg, rgba(22, 19, 15, 0.7) 0%, rgba(22, 19, 15, 0) 45%); }
.hx-in { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(82vh, 760px); padding-top: 96px; padding-bottom: 36px; }
.hx .eyebrow { color: var(--hot); margin-bottom: 18px; }
.hx h1 { font-size: clamp(3.1rem, 10.4vw, 7.6rem); line-height: 0.9; letter-spacing: -0.05em; font-weight: 750; }
.hx-lede { margin-top: 22px; max-width: 29em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.45; color: #e8e1d6; }
.hx-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hx-act .btn { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn.line:hover { background: #fff; color: var(--ink); }
.hx-facts { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 34px; margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); color: var(--night-ink-2); font-size: 0.95rem; }
.hx-facts b { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-right: 6px; }
.hx-facts a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; min-height: 44px; }
.hx-facts a:hover { color: #fff; }
.show-slots .hx-media .slot-id { left: auto; right: 12px; top: 80px; bottom: auto; max-width: 360px; }
@media (max-width: 620px) { .hx-in { min-height: 0; padding-top: 72px; } .hx-act .btn { flex: 1 1 100%; } .hx-facts { margin-top: 32px; gap: 4px 22px; } }

/* types */
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 860px) { .type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.type-card { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.type-media { aspect-ratio: 4 / 5; transition: transform 0.25s ease; }
.type-card:hover .type-media { transform: translateY(-4px); }
.type-card:hover { color: var(--ink); }
.type-txt { display: grid; gap: 2px; }
.type-txt b { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.type-txt span { color: var(--ink-2); font-size: 0.95rem; }
.type-txt small { font-size: 0.82rem; font-weight: 650; color: var(--accent); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .type-media { transition: none; } .type-card:hover .type-media { transform: none; } }

/* dark band + video rail */
.night { margin-top: 72px; padding: 64px 0 56px; background: var(--night); color: #fff; }
.night .eyebrow { color: var(--hot); }
.night .slot { background: var(--night-2); }
.night .slot.is-blank { background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 45%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.022) 22px 23px); }
.night .slot-ph { left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); }
.night .slot-ph svg { width: 26px; height: 26px; margin-left: 3px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--night-line); background: transparent; color: #fff; }
.rail-nav button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.rail-nav svg { width: 20px; height: 20px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-padding: 0 16px; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .rail { margin: 0 -28px; padding: 4px 28px 8px; scroll-padding: 0 28px; gap: 20px; } }
.vcard { flex: 0 0 clamp(250px, 78vw, 400px); scroll-snap-align: start; display: grid; gap: 4px; align-content: start; }
@media (min-width: 720px) { .vcard { flex-basis: clamp(300px, 31vw, 400px); } }
.vcard-media { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.vcard-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-ink-2); }
.vcard h3 { font-size: 1.25rem; line-height: 1.15; }
.vcard h3 a { color: #fff; text-decoration: none; display: inline-block; padding: 4px 0 10px; }
.vcard h3 a:hover { color: var(--hot); }
.blank-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-2); }
.night .blank-note { color: var(--night-ink-2); }

/* real bathrooms */
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.look { position: relative; margin: 0; aspect-ratio: 1; }
.look.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.look.tall { grid-column: span 2; aspect-ratio: 4 / 5; }
.look-media { position: absolute; inset: 0; }
.look figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.82rem; font-weight: 650; }
@media (min-width: 860px) {
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 22vw, 300px); gap: 18px; }
  .look, .look.wide, .look.tall { aspect-ratio: auto; }
  .look.tall { grid-column: auto; grid-row: span 2; }
}

/* three steps */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); counter-reset: st; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps3 li { counter-increment: st; position: relative; display: grid; align-content: start; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.step-media { aspect-ratio: 1; }
.steps3 li::before { content: counter(st); position: absolute; left: 10px; top: 10px; z-index: 4; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--hot); color: var(--ink); font-family: var(--display); font-weight: 750; }
.steps3 .slot-ph { left: auto; right: 10px; top: auto; bottom: 10px; }
.step-txt { display: grid; gap: 6px; align-content: start; }
.step-txt b { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.step-txt span { color: var(--ink-2); }
.step-txt a { font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 860px) { .steps3 li { grid-template-columns: minmax(0, 1fr); } .step-media { aspect-ratio: 4 / 3; } }

/* fit check and models */
.home .start { margin-top: 0; }
.home .finder { margin-top: 18px; }
.home #models .section-head { align-items: flex-end; }

/* planned rewards */
.promo { display: grid; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--night); color: #fff; }
@media (min-width: 860px) { .promo { grid-template-columns: minmax(0, 1fr) auto; } }
.promo .eyebrow { color: var(--hot); }
.promo h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.promo p:not(.eyebrow) { color: var(--night-ink-2); max-width: 44em; margin-top: 12px; }
.promo .btn { justify-self: start; }
.home .biz-line { margin-top: 18px; }
