/* NextWave epoxy designer + epoxy page sections. Scoped under .nwx / .nwd so it cannot affect other pages.
   Layout: desktop = 3D stage left, configuration panel right (sticky); phone = stage on top, panel below, fixed price bar. */
.nwx, .nwd {
  --o: #ff6205; --o-deep: #d94f00; --o-soft: #fff1e8; --ink: #241f1a; --ink-2: #5d554d; --line: #e6e0d9;
  --paper: #ffffff; --paper-2: #f7f4f0; --night: #14110e; --night-2: #1e1a16; --night-line: #3a332c; --good: #237a46; --warn: #a24d00;
  --fd: Archivo, "Arial Black", "Helvetica Neue", Arial, sans-serif; --fb: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 14px; color: var(--ink); font-family: var(--fb);
}
.nwx *, .nwd * { box-sizing: border-box; }
.nwx h2, .nwd h2 { font-family: var(--fd); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; text-wrap: balance; }
.nwx h3, .nwd h3 { font-family: var(--fd); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.nwx p { line-height: 1.6; }
.nwx-band { padding-block: clamp(56px, 8vw, 96px); }
.nwx-band.alt { background: var(--paper-2); }
.nwx-band.dark { background: var(--night); color: #f4efe9; }
.nwx-in { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.nwx-eyebrow { font: 800 .78rem/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--o); display: inline-flex; gap: 8px; align-items: center; }
.nwx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--o); }
.nwx-lead { max-width: 62ch; color: var(--ink-2); font-size: 1.06rem; margin: 14px 0 0; }
.dark .nwx-lead { color: #c9c0b6; }
.nwx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 6px; font: 800 .92rem/1.1 var(--fd); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid var(--o); background: var(--o); color: #fff; transition: background .15s, border-color .15s, transform .15s; }
.nwx-btn:hover { background: var(--o-deep); border-color: var(--o-deep); }
.nwx-btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.nwx-btn.ghost:hover { background: rgba(255, 98, 5, .1); border-color: var(--o); }
.nwx-btn:focus-visible, .nwd :focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }

/* ---------- Designer ---------- */
.nwd { background: var(--night); color: #f4efe9; padding-block: clamp(48px, 7vw, 88px); scroll-margin-top: 70px; }
.nwd-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.nwd-head p { margin: 10px 0 0; color: #c9c0b6; max-width: 60ch; line-height: 1.55; }
.nwd-app { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .nwd-app { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); align-items: start; } .nwd-stagecol { position: sticky; top: 84px; } }
.nwd-stage { position: relative; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #2b241d 0%, #110e0b 70%); border: 1px solid var(--night-line); aspect-ratio: 4 / 3; max-width: 100%; }
@media (max-width: 999px) { .nwd-stage { aspect-ratio: auto; height: clamp(280px, 62vw, 480px); } }
.nwd-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.nwd-stage canvas:active { cursor: grabbing; }
.nwd-cam { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.nwd-cam button, .nwd-tool { pointer-events: auto; min-height: 38px; min-width: 38px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(20,17,14,.72); color: #f4efe9; font: 600 .8rem/1 var(--fb); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nwd-cam button[aria-pressed="true"] { background: var(--o); border-color: var(--o); color: #fff; }
.nwd-cam .sp { flex: 1; }
.nwd-tag { position: absolute; left: 12px; top: 12px; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(20,17,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: calc(100% - 24px); pointer-events: none; }
.nwd-tag b { font: 800 .95rem/1.2 var(--fd); }
.nwd-tag span { font-size: .74rem; color: #c9c0b6; }
.nwd-cmp-l, .nwd-cmp-r { position: absolute; top: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(20,17,14,.8); font: 700 .78rem/1.2 var(--fb); pointer-events: none; max-width: 46%; }
.nwd-cmp-l { left: 12px; } .nwd-cmp-r { right: 12px; text-align: right; }
.nwd-cmp-div { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--o); pointer-events: none; }
.nwd-load, .nwd-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #c9c0b6; font-size: .92rem; }
.nwd-fallback { background: #110e0b; }
.nwd-fallback canvas { width: min(90%, 420px); height: auto; aspect-ratio: 16/10; border-radius: 10px; transform: perspective(700px) rotateX(48deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.nwd-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(20,17,14,.85); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: .82rem; pointer-events: none; text-align: center; }
.nwd-note { font-size: .78rem; color: #a99f94; margin: 8px 2px 0; line-height: 1.45; }

/* Panel */
.nwd-panel { background: var(--paper); color: var(--ink); border-radius: var(--r); overflow: hidden; display: grid; min-width: 0; }
.nwd-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 12px 14px 0; list-style: none; margin: 0; }
.nwd-steps button { all: unset; box-sizing: border-box; width: 100%; min-height: 28px; cursor: pointer; display: grid; gap: 6px; font: 700 .68rem/1.1 var(--fb); color: #8a8076; text-transform: uppercase; letter-spacing: .05em; text-align: center; padding-bottom: 4px; }
.nwd-steps button::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.nwd-steps button[data-done="true"]::before { background: #f7b38a; }
.nwd-steps button[aria-current="step"] { color: var(--ink); }
.nwd-steps button[aria-current="step"]::before { background: var(--o); }
.nwd-steps button:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 460px) { .nwd-steps button span { display: none; } }
.nwd-body { padding: 18px 18px 8px; display: grid; gap: 16px; min-width: 0; }
.nwd-body h3 { font-size: 1.35rem; }
.nwd-body .sub { color: var(--ink-2); font-size: .9rem; margin: -10px 0 0; line-height: 1.5; }
.nwd-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.nwd-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; min-height: 64px; transition: border-color .15s, background .15s; }
.nwd-card:hover { border-color: #f7b38a; }
.nwd-card[aria-pressed="true"], .nwd-card[aria-checked="true"] { border-color: var(--o); background: var(--o-soft); }
.nwd-card:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }
.nwd-card b { font: 800 .98rem/1.2 var(--fd); }
.nwd-card small { color: var(--ink-2); font-size: .8rem; line-height: 1.4; }
.nwd-card .ic { width: 30px; height: 30px; color: var(--o); }
.nwd-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.nwd-sw { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.25; }
.nwd-sw canvas { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.nwd-sw[aria-checked="true"] canvas { border-color: var(--o); }
.nwd-sw:focus-visible canvas { outline: 3px solid var(--o); outline-offset: 2px; }
.nwd-field { display: grid; gap: 5px; min-width: 0; }
.nwd-field > span, .nwd-legend { font: 700 .76rem/1.2 var(--fb); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.nwd-field input, .nwd-field select, .nwd-field textarea { width: 100%; min-width: 0; font: 400 16px/1.3 var(--fb); color: var(--ink); background: #fff; border: 1.5px solid #cfc6bc; border-radius: 8px; padding: 11px 12px; }
.nwd-field input:focus, .nwd-field select:focus, .nwd-field textarea:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 3px rgba(255,98,5,.2); }
.nwd-field [aria-invalid="true"] { border-color: #b3261e; }
.nwd-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
.nwd-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nwd-chip { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 .86rem/1.2 var(--fb); background: #fff; }
.nwd-chip[aria-pressed="true"], .nwd-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.nwd-chip:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }
.nwd-area { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; background: var(--paper-2); border-radius: 10px; font-variant-numeric: tabular-nums; }
.nwd-area b { font: 900 1.5rem/1 var(--fd); }
.nwd-warn { padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: var(--warn); font-size: .86rem; line-height: 1.45; border: 1px solid #f3d3a8; }
.nwd-err { color: #b3261e; font-size: .84rem; font-weight: 600; }
.nwd-sec { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.nwd-x { all: unset; cursor: pointer; width: 40px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: #b3261e; font-size: 1.3rem; }
.nwd-x:focus-visible { outline: 3px solid var(--o); }
.nwd-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.nwd-toggle input { width: 22px; height: 22px; accent-color: var(--o); flex: none; margin: 2px 0 0; }
.nwd-toggle b { display: block; font-size: .95rem; }
.nwd-toggle small { color: var(--ink-2); font-size: .82rem; line-height: 1.4; }
.nwd-toggle.dis { opacity: .55; cursor: not-allowed; }
.nwd-range { display: flex; align-items: center; gap: 10px; }
.nwd-range input { flex: 1; accent-color: var(--o); }
.nwd-range output { font-weight: 700; min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.nwd-why { font-size: .84rem; color: var(--ink-2); line-height: 1.5; background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.nwd-why b { color: var(--ink); }

/* Price box */
.nwd-price { border-top: 1px solid var(--line); padding: 14px 18px; display: grid; gap: 10px; background: #fffaf6; }
.nwd-price-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.nwd-price-lab { font: 700 .72rem/1.2 var(--fb); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.nwd-price-val { font: 900 clamp(1.8rem, 4vw, 2.3rem)/1 var(--fd); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nwd-price-val small { font: 700 .85rem var(--fb); color: var(--ink-2); letter-spacing: 0; }
.nwd-price-custom { font: 900 1.15rem/1.2 var(--fd); color: var(--o-deep); }
.nwd-price[data-busy="true"] .nwd-price-val { opacity: .55; }
.nwd-lines { display: grid; gap: 4px; font-size: .86rem; font-variant-numeric: tabular-nums; margin: 0; padding: 0; list-style: none; }
.nwd-lines li { display: flex; justify-content: space-between; gap: 12px; }
.nwd-lines li.tot { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.nwd-lines li span:last-child { white-space: nowrap; }
.nwd-nav { display: flex; gap: 8px; padding: 0 18px 18px; background: #fffaf6; }
.nwd-nav .nwx-btn { flex: 1; min-height: 48px; }
.nwd-nav .nwx-btn.ghost { color: var(--ink); border-color: #cfc6bc; flex: 0 0 auto; }

/* Phone price bar */
.nwd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--night); color: #fff; border-top: 2px solid var(--o); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.nwd-bar .v { font: 900 1.25rem/1 var(--fd); font-variant-numeric: tabular-nums; }
.nwd-bar .l { font-size: .7rem; color: #c9c0b6; text-transform: uppercase; letter-spacing: .06em; }
.nwd-bar .nwx-btn { margin-left: auto; min-height: 44px; padding: 10px 16px; }
@media (max-width: 999px) { .nwd-bar[data-show="true"] { display: flex; } .nwd-price, .nwd-nav { scroll-margin-bottom: 90px; } }

/* Summary + form */
.nwd-sum { display: grid; gap: 12px; }
.nwd-sum img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.nwd-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.nwd-dl dt { color: var(--ink-2); }
.nwd-dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.nwd-small { font-size: .8rem; color: var(--ink-2); line-height: 1.5; margin: 0; }
.nwd-actions { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.nwd-actions .nwx-btn.ghost { color: var(--ink); border-color: var(--ink); }
.nwd-form { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper-2); }
.nwd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nwd-ok { padding: 14px; border-radius: 12px; background: #eaf6ee; color: var(--good); border: 1px solid #b8dcc5; line-height: 1.5; }
.nwd-pre { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; }
.nwd-modal { position: fixed; inset: 0; z-index: 80; background: rgba(10,8,6,.7); display: grid; place-items: center; padding: 16px; }
.nwd-modal > div { background: var(--paper); color: var(--ink); border-radius: var(--r); max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px; display: grid; gap: 14px; }

/* ---------- Page sections ---------- */
.nwx-heroctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nwx-pk { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 34px; }
.nwx-pkc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.nwx-pkc canvas { width: 100%; height: 150px; display: block; }
.nwx-pkc > div { padding: 18px; display: grid; gap: 10px; align-content: start; }
.nwx-pkc h3 { font-size: 1.3rem; }
.nwx-pkc .for { color: var(--ink-2); font-size: .92rem; line-height: 1.5; margin: 0; }
.nwx-pkc ul { margin: 0; padding-left: 18px; font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.nwx-pkc .px { font: 900 1.45rem/1.1 var(--fd); font-variant-numeric: tabular-nums; }
.nwx-pkc .px small { display: block; font: 600 .78rem/1.4 var(--fb); color: var(--ink-2); }
.nwx-pkc .lim { font-size: .82rem; color: var(--warn); margin: 0; line-height: 1.45; }
.nwx-pkc .nwx-btn { margin-top: auto; }
.nwx-tiers { margin-top: 26px; overflow-x: auto; }
.nwx-tiers table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; background: #fff; border-radius: 10px; overflow: hidden; }
.nwx-tiers th, .nwx-tiers td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.nwx-tiers th { font: 700 .74rem/1.2 var(--fb); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--paper-2); }
.nwx-layers { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; align-items: center; }
@media (min-width: 900px) { .nwx-layers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.nwx-stack { display: grid; gap: 8px; perspective: 900px; padding: 10px 0; }
.nwx-lay { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 54px; border-radius: 10px; transform: rotateX(28deg); transition: transform .25s, box-shadow .25s; box-shadow: 0 10px 18px rgba(0,0,0,.35); font: 800 .9rem/1.2 var(--fd); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.nwx-lay[aria-pressed="true"] { transform: rotateX(0) translateX(10px); box-shadow: 0 0 0 3px var(--o), 0 14px 26px rgba(0,0,0,.4); }
.nwx-lay:focus-visible { outline: 3px solid var(--o); outline-offset: 3px; }
.nwx-lay i { font-style: normal; font: 700 .72rem var(--fb); opacity: .85; margin-left: auto; }
.nwx-layinfo { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); padding: 22px; min-height: 170px; }
.nwx-layinfo h3 { font-size: 1.25rem; margin-bottom: 8px; }
.nwx-layinfo p { color: #c9c0b6; margin: 0; }
.nwx-prep { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 30px; }
.nwx-prep > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.nwx-prep h3 { font-size: 1.08rem; margin-bottom: 6px; }
.nwx-prep p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.nwx-tl { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: s; }
.nwx-tl li { counter-increment: s; padding: 18px 18px 18px 0; border-top: 3px solid var(--o); position: relative; }
.nwx-tl li::before { content: counter(s); position: absolute; top: -15px; left: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--o); color: #fff; font: 800 .8rem/27px var(--fd); text-align: center; }
.nwx-tl h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.nwx-tl p { margin: 0; font-size: .9rem; color: #c9c0b6; }
.nwx-proj { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 30px; }
.nwx-proj article { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: grid; grid-template-rows: auto 1fr; }
.nwx-proj .ph { position: relative; height: 170px; background: var(--paper-2); }
.nwx-proj .ph canvas, .nwx-proj .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nwx-proj .ph span { position: absolute; left: 10px; bottom: 10px; background: rgba(20,17,14,.78); color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 6px; }
.nwx-proj article > div:last-child { padding: 16px; display: grid; gap: 8px; align-content: start; }
.nwx-proj h3 { font-size: 1.08rem; }
.nwx-proj p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.nwx-proj button { justify-self: start; }
.nwx-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nwx-links a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--o); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .nwx *, .nwd * { transition: none !important; animation: none !important; } }
/* Site headings set their own colour; pin colours inside the dark and light bands */
.nwd h2, .nwd .nwd-head h2, .nwx-band.dark h2, .nwx-band.dark h3, .nwx-layinfo h3 { color: #f4efe9; }
.nwd .nwd-panel h3, .nwd-modal h3, .nwx-band:not(.dark) h2, .nwx-band:not(.dark) h3 { color: var(--ink); }
.nwd-panel, .nwd-panel p, .nwd-panel label { color: var(--ink); }
