/* v12: Ripple hero + Letters band + Room designer + carousel gallery. Theme from .t-ripple (v10.css). */
.t-combo .sec-head h2 { font-size: clamp(32px, 4.6vw, 58px); }

/* ---- Letters band ---- */
.letters-band { background: #0b1f28; color: #b9d0d6; padding: 18px 0 26px; border-top: 1px solid #16394a; }
.letters-band canvas { display: block; width: 100%; height: clamp(200px, 30vh, 320px); cursor: pointer; touch-action: pan-y; }
.band-note { text-align: center; margin: 10px 16px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #7fa7b2; }

/* ---- Room designer ---- */
.designer { background: linear-gradient(180deg, #eef4f5, #e3eef0); }
.room-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.room-tab { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.room-tab:hover { border-color: var(--accent); }
.room-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.designer-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .designer-grid { grid-template-columns: 1.45fr 1fr; gap: 36px; } }

.stage { position: relative; background: radial-gradient(120% 90% at 50% 20%, #ffffff, #dbe7ea); border-radius: 18px; overflow: hidden; overflow: clip; box-shadow: inset 0 0 0 1px var(--line); min-height: 280px; }
.scene { position: absolute; left: 0; top: 0; width: 560px; height: 470px; transform-origin: 0 0; perspective: 1500px; perspective-origin: 50% 35%; }
.cam { position: absolute; left: 50%; top: 47%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-36deg); }
.cam .face, .cam .glass, .cam .box, .cam .bf { position: absolute; left: 0; top: 0; transform-style: preserve-3d; backface-visibility: hidden; }
.cam .face { background: #e8762f; overflow: hidden; }
.cam .face.paint { background: #e7e1d7; }
.cam .face.left.paint { background: #ddd6ca; }
.cam .face.back.paint::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #f6f3ee; box-shadow: 0 -1px 0 rgba(0,0,0,.08); }
.cam .face.left::after { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 40, .14); pointer-events: none; }
.cam .face.floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(255,255,255,.08)); pointer-events: none; }
.tiled { position: absolute; display: block; }
.tiled .t, .tiled rect:not(.membrane):not(.grout), .tiled polygon, .tiled path { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-5px) scale(1.18); transition: opacity .22s, transform .32s cubic-bezier(.3, 1.4, .5, 1); }
.tiled .on { opacity: 1 !important; transform: none !important; }
.tiled .grout { opacity: 0; transition: opacity .6s; }
.tiled .grout.on { opacity: 1; }

/* fixtures */
.niche { position: absolute; left: 58%; top: 34%; width: 56px; height: 74px; background: rgba(0,0,0,.18); box-shadow: inset 6px 6px 12px rgba(0,0,0,.35); border-radius: 2px; }
.pipe { position: absolute; left: 46%; top: 16%; width: 6px; height: 40px; background: linear-gradient(90deg, #555, #bbb, #555); border-radius: 3px; }
.pipe::after { content: ""; position: absolute; left: -15px; top: 36px; width: 36px; height: 10px; border-radius: 50%; background: radial-gradient(#ddd, #777); }
.valve { position: absolute; left: 44%; top: 52%; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #eee, #666); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.drain { position: absolute; left: 46%; top: 46%; width: 26px; height: 26px; background: repeating-linear-gradient(90deg, #888 0 2px, #444 2px 4px); border: 2px solid #999; }
.glass { background: linear-gradient(115deg, rgba(220,240,245,.18), rgba(255,255,255,.34) 40%, rgba(200,230,240,.12)); border: 2px solid rgba(150, 170, 175, .8); border-radius: 2px; }
.mirror { position: absolute; left: 50%; top: 18%; width: 120px; height: 84px; background: linear-gradient(135deg, #cfe3ea, #f6fbfc 45%, #b9d3dc); border: 5px solid #2d2d2d; border-radius: 4px; }
.window { position: absolute; left: 55%; top: 10%; width: 90px; height: 70px; background: linear-gradient(180deg, #bfe3f2, #e9f6fb); border: 6px solid #fff; box-shadow: inset 0 0 0 1px #ccc; }
.door { position: absolute; left: 50%; margin-left: -46px; bottom: 0; width: 92px; height: 196px; background: linear-gradient(90deg, #6d4a30, #8a6040); border: 6px solid #f4f1ec; border-bottom: 0; }
.door::after { content: ""; position: absolute; right: 10px; top: 52%; width: 8px; height: 8px; border-radius: 50%; background: #d8b45a; }
.art { position: absolute; left: 35%; top: 22%; width: 96px; height: 70px; border: 5px solid #2d2d2d; background: linear-gradient(135deg, #1b8aa0, #7fe0f0 50%, #ec7a3c); }
.firebox { position: absolute; left: 50%; margin-left: -62px; bottom: 0; width: 124px; height: 92px; background: radial-gradient(120% 90% at 50% 100%, #3a1d0e, #120806 70%); border-radius: 6px 6px 0 0; overflow: hidden; box-shadow: inset 0 0 0 6px #1a1a1a; }
.firebox i { position: absolute; bottom: 6px; width: 30px; height: 46px; border-radius: 50% 50% 20% 20%; background: radial-gradient(circle at 50% 80%, #ffe08a, #ff8a2a 45%, rgba(255,60,0,0) 70%); animation: flame 1.1s ease-in-out infinite alternate; transform-origin: bottom center; }
.firebox i:nth-child(1) { left: 26px; } .firebox i:nth-child(2) { left: 48px; height: 58px; animation-delay: .3s; } .firebox i:nth-child(3) { left: 70px; animation-delay: .6s; }
@keyframes flame { from { transform: scaleY(.85) skewX(-4deg); opacity: .85; } to { transform: scaleY(1.12) skewX(5deg); opacity: 1; } }

/* boxes (cabinets etc.): front, side, top */
.bf { background: #ddd; }
.box.vanity .front { background: linear-gradient(90deg, #6e4f35 0 49%, #5e432c 49% 51%, #6e4f35 51%); }
.box.vanity .side { background: #5c412b; } .box.vanity .top { background: #f2efe9; }
.box.tub .front { background: linear-gradient(180deg, #ffffff, #e9e9e9); } .box.tub .side { background: #dcdcdc; }
.box.tub .top { background: radial-gradient(ellipse 42% 40% at 50% 50%, #cfe6ee 0 70%, #fff 72%); }
.box.cabinet .front { background: repeating-linear-gradient(90deg, #f3f1ec 0 92px, #d9d5cc 92px 94px); }
.box.cabinet .side { background: #dedad2; } .box.cabinet .top { background: #ccc; }
.box.counter .front, .box.counter .side { background: #2f2f32; } .box.counter .top { background: linear-gradient(135deg, #3a3a3d, #2a2a2c); }
.box.upper .front { background: repeating-linear-gradient(90deg, #f3f1ec 0 70px, #d9d5cc 70px 72px); } .box.upper .side { background: #dedad2; } .box.upper .top { background: #e9e6df; }
.box.bench .front { background: #3d2d22; } .box.bench .side { background: #33261d; } .box.bench .top { background: #6b4e37; }
.box.mantel .front, .box.mantel .side { background: #5a3d27; } .box.mantel .top { background: #6c4a31; }
.box.hearth .front, .box.hearth .side { background: #3a3a3c; } .box.hearth .top { background: #4a4a4d; }

.stage-label { position: absolute; left: 12px; bottom: 12px; right: 12px; margin: 0; width: max-content; max-width: calc(100% - 24px); background: rgba(13, 38, 48, .86); color: #fff; padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; }

.controls .ctl { margin-bottom: 18px; }
.controls h3 { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.style-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) and (max-width: 979px) { .style-opts { grid-template-columns: repeat(4, 1fr); } }
.style-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.style-opt .ico { width: 34px; height: 34px; border-radius: 6px; flex: none; }
.style-opt .ico .t, .style-opt .ico rect, .style-opt .ico polygon, .style-opt .ico path { opacity: 1; transform: none; }
.style-opt:hover { border-color: var(--accent); }
.style-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ctl.two { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.sws { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 34px; height: 34px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: none; }
.sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sw.on { border-color: var(--ink); }
.sw .c0 { background: #ece8e1; } .sw .c1 { background: #efe2cc; } .sw .c2 { background: #9db5a0; } .sw .c3 { background: #2f7f86; }
.sw .c4 { background: #22344f; } .sw .c5 { background: #c8613f; } .sw .c6 { background: #3a3a3c; }
.sw .gr0 { background: #fbfbf8; } .sw .gr1 { background: #a7a097; } .sw .gr2 { background: #2b2b2b; }
.controls .btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }

.examples { margin-top: 28px; }
.ex-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.ex-head h3 { font-size: 22px; margin: 0; }
.ex-head p { margin: 0; color: var(--muted); font-size: 15px; }
.ex-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 980px) { .ex-track { grid-auto-columns: calc((100% - 7 * 12px) / 8); overflow: visible; } }
.ex-card { position: relative; padding: 0; border: 0; background: #fff; border-radius: 12px; overflow: hidden; text-align: left; scroll-snap-align: start; box-shadow: 0 10px 24px -18px rgba(0,0,0,.5); animation: exIn .5s cubic-bezier(.2, .9, .25, 1.15) both; }
.ex-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .5s; }
.ex-card:hover img { transform: scale(1.06); }
.ex-card span { display: block; padding: 8px 10px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ex-card em { position: absolute; z-index: 1; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 700; background: #ec7a3c; color: #fff; padding: 3px 8px; border-radius: 99px; }
.ex-card.match { box-shadow: 0 0 0 2px #ec7a3c, 0 10px 24px -18px rgba(0,0,0,.5); }
@keyframes exIn { from { opacity: 0; transform: perspective(500px) rotateY(-50deg) translateX(-10px); } }

/* ---- Carousels ---- */
.t-combo .sec-head.row { align-items: end; }
.car-hint { color: var(--muted); margin: 0; font-size: 15px; }
.carousel { margin-bottom: 34px; }
.car-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.car-head h3 { font-size: 22px; margin: 0; }
.car-head h3 span { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.car-btns { display: flex; gap: 6px; }
.car-btns button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; line-height: 1; }
.car-btns button:hover { border-color: var(--ink); }
.car-viewport { overflow: hidden; overflow: clip; margin: 0 -16px; padding: 6px 16px 10px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.car-viewport.dragging { cursor: grabbing; }
.car-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.c-card { flex: none; width: clamp(170px, 18vw, 240px); margin: 0; position: relative; }
.c-card .g-open { border-radius: 14px; overflow: hidden; display: block; width: 100%; }
.c-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.c-card:hover img { transform: scale(1.07); }
.car-viewport:hover .c-card:not(:hover) img { filter: saturate(.6) brightness(.92); }
.c-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px; margin: 0; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(transparent, rgba(5, 20, 26, .78)); border-radius: 0 0 14px 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.c-card:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .c-card figcaption { opacity: 1; transform: none; } }
@media (max-width: 700px) { .stage-label { font-size: 12px; padding: 6px 11px; } }
/* phones: the letters get one word per line, so give the band more height */
@media (max-width: 700px) {
  .letters-band canvas, .letters-band.bottom canvas { height: clamp(300px, 56vh, 440px); }
}
