/* Home: a full-screen stepper. Without JS the steps simply stack as one long page. */
body.home { background: #041013; }
.step { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #eef6f4; }
.step .bg { position: absolute; inset: 0; }
.step .bg img { object-position: var(--pos, 50% 50%); }

html.js body.home { overflow: hidden; height: 100svh; overscroll-behavior: none; }
html.js body.home .site-footer { display: none; }
html.js .step { position: fixed; inset: 0; height: 100svh; visibility: hidden; opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1), visibility 0s .9s; }
html.js .step.on { visibility: visible; opacity: 1; transition: opacity .9s cubic-bezier(.2,.7,.2,1), visibility 0s; z-index: 2; }
html.js .step .bg img { transform: scale(1.07); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
html.js .step.on .bg img { transform: scale(1); }
html.js .step .copy > * { opacity: 0; transform: translateY(var(--dy, 22px)); transition: opacity .8s, transform 1s cubic-bezier(.16,1,.3,1); }
html.js .step.on .copy > * { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .08s); }
.copy > :nth-child(2) { --i: 1; } .copy > :nth-child(3) { --i: 2; } .copy > :nth-child(4) { --i: 3; } .copy > :nth-child(5) { --i: 4; } .copy > :nth-child(6) { --i: 5; }
html.js body.back .step .copy > * { --dy: -22px; }

.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,16,19,.88) 0%, rgba(4,16,19,.6) 38%, rgba(4,16,19,.1) 72%), linear-gradient(180deg, rgba(4,16,19,.45), transparent 26%, transparent 70%, rgba(4,16,19,.7)); }
.copy { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; max-width: min(760px, 58vw); padding-top: 90px; padding-bottom: 110px; }
.home h1 { font-size: clamp(56px, 6.6vw, 124px); margin: 0 0 clamp(28px, 4.4vh, 48px); }
.home h2 { font-size: clamp(46px, 5.4vw, 100px); margin: 0 0 24px; }
.home .lede { color: rgba(238,246,244,.84); max-width: 44ch; margin: 0; }
.home .eyebrow { color: rgba(238,246,244,.78); margin-bottom: 20px; }
.tag { font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; display: inline-flex; gap: 12px; align-items: center; }
.tag span { font-variant-numeric: tabular-nums; padding: 6px 8px; border-radius: 4px; background: rgba(143,224,214,.14); letter-spacing: .08em; }

.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.facts li { border-top: 1px solid rgba(238,246,244,.25); padding-top: 12px; min-width: 110px; }
.facts b { display: block; font: 400 clamp(30px, 3vw, 48px)/1 var(--display); letter-spacing: -.02em; }
.facts span { font-size: 13px; color: rgba(238,246,244,.7); }

/* Add to my quote */
.add { align-self: flex-start; margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 26px 0 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(238,246,244,.12); color: #eef6f4; box-shadow: inset 0 0 0 1px rgba(238,246,244,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 15px var(--body); transition: background .35s, color .35s, box-shadow .35s; }
.add:hover { background: rgba(238,246,244,.2); }
.add i { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); position: relative; flex: none; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.add i::before, .add i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: #041013; transform: translate(-50%,-50%); transition: transform .4s, width .4s; }
.add i::after { transform: translate(-50%,-50%) rotate(90deg); }
.add[aria-pressed="true"] { background: var(--accent); color: #041013; box-shadow: none; }
.add[aria-pressed="true"] i { background: #041013; transform: rotate(360deg); }
.add[aria-pressed="true"] i::before { background: var(--accent); width: 7px; transform: translate(-90%, 1px) rotate(45deg); }
.add[aria-pressed="true"] i::after { background: var(--accent); width: 13px; transform: translate(-30%, -1px) rotate(-50deg); }
.add:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.link-btn { background: none; border: 0; color: rgba(238,246,244,.85); font: 600 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }

/* ---------- 01 The style clock ---------- */
.frames .bg { opacity: 0; transition: opacity 1s; }
.frames .bg.on { opacity: 1; }
.clock-shade { background: linear-gradient(90deg, rgba(4,16,19,.9) 0%, rgba(4,16,19,.6) 38%, rgba(4,16,19,.2) 66%, rgba(4,16,19,.4) 100%), linear-gradient(180deg, rgba(4,16,19,.45), transparent 26%); }
.clock-copy { max-width: min(640px, 44vw); }
.style-now { border-top: 1px solid rgba(238,246,244,.25); padding-top: 18px; max-width: 440px; }
.style-when { margin: 0 0 8px; font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.style-name { margin: 0 0 8px; font: 400 clamp(36px, 3.4vw, 58px)/1 var(--display); letter-spacing: -.02em; }
.style-line { margin: 0; color: rgba(238,246,244,.84); font-size: 16px; min-height: 3em; }
.style-now.swap .style-name, .style-now.swap .style-line { animation: swapIn .6s cubic-bezier(.16,1,.3,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }
.style-act { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.style-act .add { margin-top: 22px; }
.style-act .link-btn { margin-top: 22px; }
.hint { margin: 26px 0 0; font-size: 13px; color: rgba(238,246,244,.6); max-width: 40ch; }

.clock { position: absolute; z-index: 3; right: clamp(24px, 4.5vw, 80px); top: 50%; transform: translateY(-46%); width: min(72vh, 48vw); aspect-ratio: 1; }
.clock svg { width: 100%; height: 100%; overflow: visible; }
.clock .rim { fill: rgba(4,16,19,.34); stroke: rgba(238,246,244,.75); stroke-width: 1.5; }
.clock .rim.thin { fill: none; stroke: rgba(238,246,244,.25); stroke-width: 1; pointer-events: none; }
.clock .wedge { fill: transparent; stroke: none; cursor: pointer; transition: fill .4s; outline: none; }
.clock .wedge.now { fill: rgba(143,224,214,.1); }
.clock .wedge:hover, .clock .wedge.on, .clock .wedge:focus-visible { fill: rgba(143,224,214,.2); }
.clock .wedge:focus-visible { stroke: var(--accent); stroke-width: 2; }
.clock .sep { stroke: rgba(238,246,244,.18); stroke-width: 1; pointer-events: none; }
.clock .tick { stroke: rgba(238,246,244,.45); stroke-width: 1.5; pointer-events: none; }
.clock .tick.major { stroke: rgba(238,246,244,.95); stroke-width: 3; }
.clock .num { fill: rgba(238,246,244,.9); font: 400 44px var(--display); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.clock .lab { fill: rgba(238,246,244,.6); font: 600 19px var(--body); letter-spacing: .16em; text-transform: uppercase; text-anchor: middle; dominant-baseline: middle; transition: fill .4s; pointer-events: none; }
.clock .lab.on { fill: var(--accent); }
.clock .hands { pointer-events: none; }
.clock .hand { stroke-linecap: round; }
.clock .hour { stroke: #eef6f4; stroke-width: 10; }
.clock .minute { stroke: #eef6f4; stroke-width: 5; }
.clock .second { stroke: var(--accent); stroke-width: 2; }
.clock .hand { transition: transform .6s cubic-bezier(.4,2.2,.5,1); }
.clock .hand.jump { transition: none; }
.clock .pin { fill: var(--accent); }
.clock .pin-in { fill: #041013; }

/* ---------- 03 The finish ---------- */
.finish-step { background: #06222a; }
.finish-fill { position: absolute; inset: 0; }
.finish-bands { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); transition: opacity .8s; }
.finish-bands i { background: var(--c); position: relative; overflow: hidden; }
.finish-bands i::before, .finish-solid::before { content: ""; position: absolute; inset: -30%; background:
  radial-gradient(closest-side, rgba(255,255,255,.5), transparent 70%) 20% 30% / 70% 30% no-repeat,
  radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%) 70% 70% / 60% 25% no-repeat;
  mix-blend-mode: soft-light; animation: caustic 7s ease-in-out infinite alternate; }
.finish-bands i:nth-child(even)::before { animation-duration: 9s; animation-direction: alternate-reverse; }
@keyframes caustic { to { transform: translate(6%, 4%) rotate(4deg) scale(1.1); } }
.finish-solid { position: absolute; inset: 0; background: var(--fill, #2595b4); clip-path: circle(0% at var(--x, 50%) var(--y, 60%)); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1), background .6s; overflow: hidden; }
.finish-step.filled .finish-solid { clip-path: circle(150% at var(--x, 50%) var(--y, 60%)); }
.finish-step .shade { background: linear-gradient(90deg, rgba(4,16,19,.85) 0%, rgba(4,16,19,.55) 40%, rgba(4,16,19,0) 75%); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.swatches button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(4,16,19,.55); color: #eef6f4; backdrop-filter: blur(8px); font: 500 14px var(--body); box-shadow: inset 0 0 0 1px rgba(238,246,244,.2); transition: box-shadow .3s, background .3s; }
.swatches button::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.swatches button:hover { box-shadow: inset 0 0 0 1px rgba(238,246,244,.6); }
.swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(4,16,19,.8); }

/* ---------- 09 Your castle ---------- */
html.js .step.castle { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.castle { background: var(--bg); }
.castle > .wrap { padding-top: clamp(110px, 15vh, 150px); padding-bottom: 130px; }
.castle-head { max-width: 980px; margin-bottom: clamp(32px, 5vh, 56px); }
.castle-head h2 { font-size: clamp(44px, 5.6vw, 96px); }
.castle-head .lede { color: var(--ink-2); max-width: 52ch; }
.elements { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.elements button { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; background: var(--bg-2); border: 0; border-radius: 6px; padding: 0 0 16px; cursor: pointer; overflow: hidden; position: relative; color: var(--ink); transition: background .3s, box-shadow .3s; font: inherit; }
.elements button img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 14px; filter: saturate(.7) brightness(.75); transition: filter .5s, transform 1s cubic-bezier(.16,1,.3,1); }
.elements button:hover img { filter: none; transform: scale(1.04); }
.elements b { display: block; padding: 0 14px; font: 400 22px/1.1 var(--display); }
.elements span { display: block; padding: 6px 14px 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.elements button::after { content: ""; position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(4,16,19,.55) no-repeat center / 14px; box-shadow: inset 0 0 0 1.5px rgba(238,246,244,.7); backdrop-filter: blur(6px); }
.elements button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); background: var(--bg-3); }
.elements button[aria-pressed="true"] img { filter: none; }
.elements button[aria-pressed="true"]::after { background-color: var(--accent); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' stroke='%23041013' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.elements button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.castle-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.castle-foot p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 70ch; }
.castle-foot p b { color: var(--ink); font-weight: 600; }
.castle-contact { margin: 28px 0 0; color: var(--ink-3); font-size: 14px; }
.castle-contact a { color: var(--ink-2); }

/* ---------- Bottom step bar ---------- */
.stepbar { display: none; }
html.js .stepbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 68px; align-items: center; gap: 8px; padding: 0 clamp(12px, 2.4vw, 40px);
  background: linear-gradient(180deg, rgba(4,16,19,0), rgba(4,16,19,.78) 45%); color: #eef6f4; }
.sb-progress { position: absolute; left: 0; top: 14px; height: 1px; width: 100%; background: rgba(238,246,244,.14); }
.sb-progress::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: var(--p, 0%); background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width .8s cubic-bezier(.16,1,.3,1); }
.sb-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(238,246,244,.1); color: #eef6f4; cursor: pointer; display: grid; place-items: center; transition: background .3s, opacity .3s; }
.sb-arrow:hover { background: rgba(238,246,244,.22); }
.sb-arrow:disabled { opacity: .3; cursor: default; }
.sb-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-list { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sb-list::-webkit-scrollbar { display: none; }
.sb-list a { display: flex; align-items: baseline; gap: 6px; padding: 10px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; color: rgba(238,246,244,.55); transition: color .3s, background .3s; }
.sb-list a b { font-size: 11px; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.sb-list a:hover { color: #eef6f4; }
.sb-list a[aria-current="step"] { color: #041013; background: var(--accent); }
.sb-list a.added::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: center; }
.sb-list a[aria-current="step"].added::after { background: #041013; }
.sb-now { display: none; margin: 0; flex: 1; text-align: center; font-size: 14px; font-weight: 500; }
.sb-now b { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 8px; }
.sb-quote { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(238,246,244,.1); font-size: 14px; font-weight: 600; margin-left: 6px; transition: background .3s; }
.sb-quote:hover { background: rgba(238,246,244,.2); }
.sb-quote b { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: rgba(238,246,244,.2); display: grid; place-items: center; font-size: 13px; transition: background .3s, color .3s, transform .4s cubic-bezier(.3,2,.5,1); }
.sb-quote.has b { background: var(--accent); color: #041013; }
.sb-quote.bump b { transform: scale(1.3); }
.castle-on .stepbar { background: linear-gradient(180deg, rgba(6,21,25,.6), var(--bg) 40%); }

@media (max-width: 1100px) { .sb-list a span { display: none; } .sb-list a[aria-current="step"] span { display: inline; } .elements { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .sb-list { display: none; }
  .sb-now { display: block; }
  .sb-quote span { display: none; }
  .sb-quote { padding: 0 7px; }
  .copy, .clock-copy { max-width: none; justify-content: flex-end; padding-bottom: 92px; }
  .shade { background: linear-gradient(180deg, rgba(4,16,19,.35) 0%, rgba(4,16,19,.15) 30%, rgba(4,16,19,.75) 58%, rgba(4,16,19,.95) 100%); }
  .finish-step .shade { background: linear-gradient(180deg, rgba(4,16,19,0) 20%, rgba(4,16,19,.85) 60%); }
  .home h1 { font-size: clamp(42px, 11vw, 64px); margin-bottom: 18px; }
  .home h2 { font-size: clamp(38px, 10vw, 60px); margin-bottom: 14px; }
  .home .lede { font-size: 16px; }
  .facts { margin-top: 20px; gap: 18px; } .facts li { min-width: 0; } .facts li:nth-child(3) { display: none; } .facts b { font-size: 26px; }
  .add { margin-top: 22px; height: 50px; font-size: 14px; }
  .swatches { margin-top: 18px; gap: 6px; } .swatches button { height: 38px; padding: 0 12px 0 6px; font-size: 13px; } .swatches button::before { width: 24px; height: 24px; }
  .clock { right: 50%; top: 84px; transform: translateX(50%); width: min(78vw, 38vh); }
  .clock .lab { font-size: 26px; }
  .clock-copy .eyebrow, .hint { display: none; }
  .clock-shade { background: linear-gradient(180deg, rgba(4,16,19,.35), rgba(4,16,19,.45) 40%, rgba(4,16,19,.94) 66%); }
  .style-line { font-size: 14px; min-height: 0; }
  .style-name { font-size: 34px; }
  .style-act .add, .style-act .link-btn { margin-top: 14px; }
  .elements { grid-template-columns: 1fr 1fr; }
  .elements b { font-size: 18px; padding: 0 10px; } .elements span { padding: 4px 10px 0; font-size: 12px; }
  .castle-foot .btn { width: 100%; justify-content: center; }
}
@media (max-height: 760px) and (min-width: 901px) { .home h1 { font-size: clamp(48px, 5.4vw, 96px); } .facts { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .step, html.js .step .copy > *, html.js .step .bg img { transition: none !important; transform: none !important; }
  .finish-solid { transition: none; }
}

/* ---------- 03 Finish stages: colour → depths → waterline tile → coping → decking ---------- */
.fs-stage, .finish-step .swatches, .fs-dots { display: none; }
.finish-step[data-stage="1"] .fs-stage[data-s="1"], .finish-step[data-stage="2"] .fs-stage[data-s="2"], .finish-step[data-stage="3"] .fs-stage[data-s="3"],
.finish-step[data-stage="4"] .fs-stage[data-s="4"], .finish-step[data-stage="5"] .fs-stage[data-s="5"] { display: block; animation: swapIn .7s cubic-bezier(.16,1,.3,1); }
.finish-step[data-stage="1"] #sw-finish, .finish-step[data-stage="2"] #sw-finish { display: flex; }
.finish-step[data-stage="3"] #sw-tile, .finish-step[data-stage="4"] #sw-coping, .finish-step[data-stage="5"] #sw-deck { display: flex; animation: swapIn .7s cubic-bezier(.16,1,.3,1); }
.finish-step:not([data-stage="1"]) .fs-dots { display: flex; }
.finish-step[data-stage="2"] #sw-finish button { height: 36px; font-size: 13px; padding: 0 12px 0 5px; }
.finish-step[data-stage="2"] #sw-finish button::before { width: 24px; height: 24px; }
.fs-count { font-style: normal; color: rgba(238,246,244,.6); letter-spacing: .14em; }
.fs-dots { list-style: none; padding: 0; margin: 0 0 22px; gap: 6px; flex-wrap: wrap; }
.fs-dots button { background: none; border: 0; cursor: pointer; color: rgba(238,246,244,.5); font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px 6px 0; display: inline-flex; align-items: center; gap: 8px; }
.fs-dots button::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.fs-dots button.done { color: rgba(238,246,244,.85); }
.fs-dots button[aria-current="step"] { color: var(--accent); }
.fs-acts { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 30px; }
.fs-acts .add { margin-top: 0; }
.finish-step[data-stage="1"] .fs-back { display: none; }
.fs-next { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 26px; border-radius: 999px; border: 0; cursor: pointer; background: #eef6f4; color: #041013; font: 600 15px var(--body); transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s; }
.fs-next:hover { transform: translateX(3px); }
.fs-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fs-next[hidden] { display: none; }
.finish-step:not(.filled)[data-stage="1"] .fs-next { display: none; }

/* stage 2+: the whole screen is the pool (owner, V13 v2). Bands come in from the screen's edges,
   outside in: deck, coping, waterline tile, then water. Header, words and bar sit inside the perimeter. */
.finish-fill { transition: opacity .8s; }
.finish-step:not([data-stage="1"]) .finish-fill { opacity: 0; }
/* coping about a foot wide (owner, V13 v3: "about twice" the first band); the tile is an even band seen at an angle,
   like looking down into the pool: --tt is the tile band, mitred and foreshortened */
body { --rmax: calc(clamp(12px, 1.6vw, 26px) + clamp(32px, 4.8vw, 78px) + clamp(9px, 1vw, 16px)); --rd: 0px; --rc: 0px; --tt: 0px; --ox: calc(var(--rd) + var(--rc)); --rx: calc(var(--ox) + var(--tt)); --ry: var(--rx); }
body.rim-on.rim-deck { --rd: clamp(12px, 1.6vw, 26px); }
body.rim-on.rim-coping { --rc: clamp(32px, 4.8vw, 78px); }
body.rim-on.rim-tile { --tt: clamp(9px, 1vw, 16px); }
.pool-plan { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: scale(1.05); transition: opacity .9s, transform 1.4s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.finish-step:not([data-stage="1"]) .pool-plan { opacity: 1; transform: none; }
.pp-deck, .pp-coping, .pp-tile, .pp-water { position: absolute; transition: inset 1s cubic-bezier(.65,0,.35,1), background-color .6s, opacity .6s; }
.pp-deck { inset: 0; z-index: 0; background-color: #0b2a31; }
.pp-coping { inset: var(--rd); z-index: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
/* each wall is an even band, mitred at the corners; the tile is drawn 2.4x deep and squashed into it, so it reads as seen at an angle */
.pp-tile { inset: var(--ox); z-index: 3; overflow: hidden; }
.pp-tile i { position: absolute; transition: width 1s cubic-bezier(.65,0,.35,1), height 1s cubic-bezier(.65,0,.35,1); }
.pp-tile i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--g), rgba(0,0,0,.42), rgba(0,0,0,.08) 22%, transparent 45%, color-mix(in srgb, var(--c, #2595b4) 55%, transparent) 100%); }
.pp-tile i { --d: calc(var(--tt) * 2.4); --m: calc(var(--tt) * 2.4); }
.pp-tile [data-w="t"] { left: 0; right: 0; top: 0; height: var(--d); transform-origin: top; transform: scaleY(.4167); --g: 180deg; clip-path: polygon(0 0, 100% 0, calc(100% - var(--tt)) 100%, var(--tt) 100%); }
.pp-tile [data-w="b"] { left: 0; right: 0; bottom: 0; height: var(--d); transform-origin: bottom; transform: scaleY(.4167); --g: 0deg; filter: brightness(1.06); clip-path: polygon(var(--tt) 0, calc(100% - var(--tt)) 0, 100% 100%, 0 100%); }
.pp-tile [data-w="l"] { top: 0; bottom: 0; left: 0; width: var(--d); transform-origin: left; transform: scaleX(.4167); --g: 90deg; filter: brightness(.9); clip-path: polygon(0 0, 100% var(--tt), 100% calc(100% - var(--tt)), 0 100%); }
.pp-tile [data-w="r"] { top: 0; bottom: 0; right: 0; width: var(--d); transform-origin: right; transform: scaleX(.4167); --g: 270deg; filter: brightness(.96); clip-path: polygon(0 var(--tt), 100% 0, 100% 100%, 0 calc(100% - var(--tt))); }
.pp-water { inset: var(--ox); z-index: 2; overflow: hidden; display: grid; grid-template-columns: 1fr 22%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 14px 34px rgba(0,0,0,.28); }
/* a band waiting for its choice: a faint dashed lane */
.finish-step[data-stage="3"]:not(.has-tile) .pp-tile i, .finish-step[data-stage="4"]:not(.has-coping) .pp-coping, .finish-step[data-stage="5"]:not(.has-deck) .pp-deck {
  background: repeating-linear-gradient(45deg, rgba(238,246,244,.07) 0 6px, transparent 6px 12px), #0d3540; outline: 1.5px dashed rgba(238,246,244,.45); outline-offset: -5px; }
/* water: deep end where the words sit, a gradient to the shallow end, the sun shelf lightest */
.pp-body { background: linear-gradient(90deg, color-mix(in srgb, var(--c, #2595b4) 52%, #000) 0%, color-mix(in srgb, var(--c, #2595b4) 70%, #000) 30%, var(--c, #2595b4) 66%, color-mix(in srgb, var(--c, #2595b4) 80%, #fff) 100%); transition: background .6s; }
.pp-shelf { order: 2; background: color-mix(in srgb, var(--c, #2595b4) 52%, #fff); box-shadow: inset 4px 0 0 rgba(255,255,255,.35), inset 10px 0 24px rgba(0,0,0,.12); transition: background .6s; }
.pp-caustic { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: soft-light; opacity: .32; filter: blur(6px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .016' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 7 -3.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 640px 640px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='1' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 6 -3.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 420px 420px;
  animation: ripple 46s linear infinite; }
@keyframes ripple { to { background-position: 640px 320px, -420px 840px; } }
.pp-lab { position: absolute; top: 50%; font: 600 11px var(--body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.4); opacity: 0; transition: opacity .6s .5s; }
.finish-step[data-stage="2"] .pp-lab { opacity: 1; }
.pp-lab.l1 { right: 11%; transform: translateX(50%); } .pp-lab.l2 { left: 66%; } .pp-lab.l3 { left: 48%; }
/* the header and step bar move inside the perimeter */
.site-header, html.js .stepbar { transition: top 1s cubic-bezier(.65,0,.35,1), left 1s cubic-bezier(.65,0,.35,1), right 1s cubic-bezier(.65,0,.35,1), bottom 1s cubic-bezier(.65,0,.35,1), background .4s, height .4s, color .4s, transform .5s; }
body.rim-on .site-header { top: var(--ry); left: var(--rx); right: var(--rx); width: auto; }
body.rim-on .stepbar { left: var(--rx); right: var(--rx); bottom: var(--ry); }
.finish-step .shade { z-index: 2; transition: inset 1s cubic-bezier(.65,0,.35,1); }
.finish-step:not([data-stage="1"]) .shade { inset: var(--ry) var(--rx); background: linear-gradient(90deg, rgba(4,16,19,.5) 0%, rgba(4,16,19,.25) 38%, rgba(4,16,19,0) 60%); }
.finish-step .copy { transition: padding 1s cubic-bezier(.65,0,.35,1); }
body.rim-on .finish-step .copy { padding-left: calc(var(--rmax) + clamp(16px, 2.6vw, 44px)); padding-top: calc(74px + var(--rmax)); padding-bottom: calc(92px + var(--rmax)); max-width: min(820px, 64vw); }
body.rim-on .finish-step h2 { font-size: clamp(34px, 4vw, 62px); }
body.rim-on .finish-step .swatches { margin-top: 22px; } body.rim-on .finish-step .fs-acts { margin-top: 22px; }
.finish-step:not([data-stage="1"]) .lede { display: none; }
@media (prefers-reduced-motion: reduce) { .pp-caustic { animation: none; } }

/* material patterns: drawn stand-ins until real material photos exist */
.mats button::before { background-size: auto; }
.m-glass, .mats button[data-mat="glass"]::before { background-color: #2a86ab; background-image: linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), conic-gradient(#1f6f92 25%, #3aa6c8 0 50%, #2f8fb0 0 75%, #57bfd8 0); background-size: 7px 7px, 7px 7px, 14px 14px; }
.m-porcelain, .mats button[data-mat="porcelain"]::before { background-color: #f1f0ec; background-image: linear-gradient(90deg, rgba(0,0,0,.16) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.16) 1px, transparent 1px); background-size: 14px 14px; }
.m-stonemos, .mats button[data-mat="stonemos"]::before { background-color: #8b8d8a; background-image: linear-gradient(90deg, rgba(40,40,40,.4) 1px, transparent 1px), linear-gradient(rgba(40,40,40,.4) 1px, transparent 1px), conic-gradient(#7c7f7c 25%, #a2a4a0 0 50%, #8f918d 0 75%, #6f726f 0); background-size: 8px 8px, 8px 8px, 16px 16px; }
.m-irid, .mats button[data-mat="irid"]::before { background-image: linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, #138f8a, #4fd1c5, #2b7fb8, #6ad6c9, #138f8a); background-size: 8px 8px, 8px 8px, 80px 100%; }
.m-trav, .mats button[data-mat="trav"]::before { background-color: #e4d6ba; background-image: linear-gradient(90deg, rgba(110,85,50,.22) 1px, transparent 1px), repeating-linear-gradient(100deg, rgba(150,120,80,.1) 0 2px, transparent 2px 9px); background-size: 44px 100%, auto; }
.m-shell, .mats button[data-mat="shell"]::before { background-color: #ebe2cb; background-image: linear-gradient(90deg, rgba(110,90,60,.2) 1px, transparent 1px), radial-gradient(rgba(120,100,70,.35) 1px, transparent 1.6px), radial-gradient(rgba(150,130,95,.3) 1px, transparent 1.5px); background-size: 44px 100%, 7px 7px, 11px 11px; background-position: 0 0, 0 0, 3px 4px; }
.m-blue, .mats button[data-mat="blue"]::before { background-color: #5b6a72; background-image: linear-gradient(90deg, rgba(0,0,0,.25) 1px, transparent 1px), repeating-linear-gradient(80deg, rgba(255,255,255,.05) 0 3px, transparent 3px 11px); background-size: 52px 100%, auto; }
.m-char, .mats button[data-mat="char"]::before { background-color: #3b4043; background-image: linear-gradient(90deg, rgba(0,0,0,.35) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px); background-size: 80px 100%, 5px 5px; }
.m-travp, .mats button[data-mat="travp"]::before { background-color: #d6c4a0; background-image: linear-gradient(90deg, rgba(90,70,40,.2) 1.5px, transparent 1.5px), linear-gradient(rgba(90,70,40,.2) 1.5px, transparent 1.5px), repeating-linear-gradient(115deg, rgba(150,120,80,.08) 0 3px, transparent 3px 12px); background-size: 96px 64px, 96px 64px, auto; }
.m-coral, .mats button[data-mat="coral"]::before { background-color: #e3d8bf; background-image: linear-gradient(90deg, rgba(100,80,50,.18) 1.5px, transparent 1.5px), linear-gradient(rgba(100,80,50,.18) 1.5px, transparent 1.5px), radial-gradient(rgba(130,110,75,.4) 1.2px, transparent 2px), radial-gradient(rgba(160,140,100,.35) 2px, transparent 3px); background-size: 120px 120px, 120px 120px, 9px 9px, 23px 23px; }
.m-wood, .mats button[data-mat="wood"]::before { background-color: #8a6a4c; background-image: repeating-linear-gradient(0deg, #8a6a4c 0 22px, #5f4430 22px 24px, #957452 24px 46px, #6a4d35 46px 48px, #80623f 48px 70px, #5f4430 70px 72px), repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 7px); background-blend-mode: multiply; }
.m-conc, .mats button[data-mat="conc"]::before { background-color: #b8b4ac; background-image: linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px), radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.5px); background-size: 160px 160px, 160px 160px, 4px 4px; }
.mats button::before { border-radius: 6px; }

@media (max-width: 900px) {
  body { --rmax: 37px; }
  body.rim-on.rim-deck { --rd: 8px; } body.rim-on.rim-coping { --rc: 22px; } body.rim-on.rim-tile { --tt: 7px; }
  /* phone: every stage puts its choices in the same two-column grid, and Back / Next / Add in the same place */
  .finish-step[data-stage="1"] #sw-finish, .finish-step[data-stage="2"] #sw-finish, .finish-step[data-stage="3"] #sw-tile, .finish-step[data-stage="4"] #sw-coping, .finish-step[data-stage="5"] #sw-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .finish-step .swatches button, .finish-step[data-stage="2"] #sw-finish button { width: 100%; min-width: 0; height: 44px; font-size: 14px; padding: 0 10px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .finish-step[data-stage="2"] #sw-finish button::before { width: 28px; height: 28px; flex: none; }
  .finish-step .swatches button::before { flex: none; }
  .fs-acts { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 18px; }
  .fs-acts .fs-next { justify-content: center; width: 100%; }
  .finish-step[data-stage="1"] .fs-acts .fs-next { grid-column: 1 / -1; }
  .fs-acts .add { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .finish-step:not([data-stage="1"]) .fs-dots { display: none; }
  .pp-water { grid-template-columns: none; grid-template-rows: 18% 1fr; }
  .pp-shelf { order: 0; box-shadow: inset 0 -4px 0 rgba(255,255,255,.35); }
  .pp-body { background: linear-gradient(180deg, color-mix(in srgb, var(--c, #2595b4) 80%, #fff) 0%, var(--c, #2595b4) 30%, color-mix(in srgb, var(--c, #2595b4) 70%, #000) 60%, color-mix(in srgb, var(--c, #2595b4) 52%, #000) 100%); }
  .pp-lab { font-size: 9px; letter-spacing: .12em; top: auto; left: auto !important; right: calc(var(--rx) + 14px) !important; transform: none !important; }
  .pp-lab.l1 { top: 11%; } .pp-lab.l2 { top: 26%; } .pp-lab.l3 { top: 46%; }
  .finish-step:not([data-stage="1"]) .shade { background: linear-gradient(180deg, rgba(4,16,19,0) 35%, rgba(4,16,19,.55) 70%); }
  body.rim-on .finish-step .copy { padding-left: calc(var(--rmax) + 12px); padding-right: calc(var(--rmax) + 12px); padding-top: calc(150px + var(--rmax)); padding-bottom: calc(92px + var(--rmax)); max-width: none; justify-content: flex-end; }
  body.rim-on .finish-step h2 { font-size: 34px; }
  .finish-step:not([data-stage="1"]) .lede { display: none; }
  .fs-dots { margin-bottom: 12px; } .fs-dots button { font-size: 10px; padding-right: 4px; } .fs-dots button::before { width: 10px; }
  .fs-acts { margin-top: 18px; gap: 10px 16px; } .fs-next { height: 50px; font-size: 14px; }
}
