/* WPiQ showcase v2: landing page.
   One theme per chapter: ink (umbrella), wpiq (back end), protorch (in between), studio (front end).
   Layout is readable without JS; the pinned/animated layouts only switch on under html.motion (landing.js). */

[data-theme="ink"]      { --bg: #0b0c0f; --bg-2: #15171c; --fg: #f2f1ee; --muted: #9a9fa8; --line: #272a31; --accent: #f59e0b; --on-accent: #111; --accent-2: #10b981; }
[data-theme="wpiq"]     { --bg: #0f1219; --bg-2: #151c29; --fg: #e8eef6; --muted: #8a99ae; --line: #273246; --accent: #10b981; --on-accent: #04251a; --accent-2: #f59e0b; }
[data-theme="protorch"] { --bg: #050505; --bg-2: #111111; --fg: #ffffff; --muted: #a6a6a6; --line: #2b2b2b; --accent: #ff000a; --on-accent: #000; --accent-2: #ed1c24; }
[data-theme="studio"]   { --bg: #f1eee7; --bg-2: #e6e1d6; --fg: #141414; --muted: #5b5850; --line: #d2cbbd; --accent: #0d7a57; --on-accent: #fff; --accent-2: #d4141c; }
[data-theme] { background: var(--bg); color: var(--fg); }

:root {
  --pad: 16px;
  --wrap: 1240px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@media (min-width: 720px) { :root { --pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; background: #0b0c0f; color: #f2f1ee; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background: url(assets/grain.png); opacity: 0.06; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent, #f59e0b); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 90; background: #fff; color: #000; padding: 8px 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.display { margin: 0; font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em; }
.display-sm { margin: 0 0 0.4em; font-weight: 800; font-stretch: 78%; text-transform: uppercase; line-height: 0.98; font-size: clamp(1.8rem, 4.2vw, 3.2rem); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; max-width: 44rem; margin: 0; }
.w { display: inline-block; }
.w > span { display: inline-block; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow:hover { color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: 999px; padding: 14px 22px; }
.btn:hover { filter: brightness(1.1); }

/* ---- Header (follows the chapter theme under it) ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px var(--pad); color: var(--fg); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; color: inherit; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 12px; font: 600 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: border-color 0.35s; }
.menu-btn:hover { border-color: var(--accent); }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 16px; height: 2px; background: currentColor; }
.mark { font-weight: 800; font-stretch: 100%; letter-spacing: -0.02em; color: rgba(245, 158, 11, 0.9); text-decoration: none; font-size: 1.45rem; }
.mark span { color: #10b981; }
[data-theme="studio"] .mark { color: #b86e00; }
[data-theme="studio"] .mark span { color: #0d7a57; }
.draft-tag { font: 600 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.5); border-radius: 999px; padding: 2px 8px; }
.header-cta { margin-left: auto; padding: 9px 16px; font-size: 0.72rem; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 520px) { .menu-label, .draft-tag { display: none; } .menu-btn { padding: 9px 11px; } }

/* ---- Full-screen menu (open/close in site.js) ---- */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 14px var(--pad) 24px; overflow-y: auto; background: #0b0c0f; color: #f2f1ee; clip-path: inset(0 100% 0 0); visibility: hidden; transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.55s; }
body.menu-open { overflow: hidden; }
body.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 6vh, 64px); }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #2c3038; background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer .item { --c: #f59e0b; display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline; gap: 4px 12px; padding: clamp(10px, 2vh, 18px) 0; border-top: 1px solid #22252c; color: inherit; text-decoration: none; opacity: 0; transform: translateX(-24px); transition: opacity 0.4s, transform 0.4s, color 0.2s; }
body.menu-open .drawer .item { opacity: 1; transform: none; }
body.menu-open .drawer .item:nth-of-type(2) { transition-delay: 0.18s; }
body.menu-open .drawer .item:nth-of-type(3) { transition-delay: 0.24s; }
body.menu-open .drawer .item:nth-of-type(4) { transition-delay: 0.30s; }
body.menu-open .drawer .item:nth-of-type(5) { transition-delay: 0.36s; }
.drawer .item .no { font: 500 0.78rem var(--mono); color: var(--c); }
.drawer .item .big { font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.4rem, 8vw, 5.6rem); }
.drawer .item small { grid-column: 2; font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #9a9fa8; }
.drawer .item:hover .big, .drawer .item[aria-current="page"] .big { color: var(--c); }
.drawer .item--small .big { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.drawer-foot { margin-top: auto; padding-top: 24px; font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #9a9fa8; }
.scrim { display: none; }

/* ---- Hero ---- */
.hero { padding: 132px 0 40px; } /* short, so the section cards show on the first screen */
.hero h1 { font-size: clamp(2.2rem, 10.4vw, 8.6rem); max-width: 17ch; margin: 18px 0 28px; } /* EMPOWERING / WATERPROOFING & / CONSTRUCTION. */
.hero .lede { color: var(--fg); }

/* End-of-part link: a solid bar in the part's accent colour */
.part-cta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 22px 24px; background: var(--accent); color: var(--on-accent); text-decoration: none; transition: filter 0.2s; }
.part-cta .mono { grid-column: 1; opacity: 0.85; }
.part-cta .label { grid-column: 1; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1; }
.part-cta b { grid-row: 1 / span 2; grid-column: 2; font-size: 2rem; transition: transform 0.25s; }
.part-cta:hover { filter: brightness(1.08); }
/* A Next bar takes the colour of the page it goes to, as in the menu */
.part-cta.to-plan { --accent: #10b981; --on-accent: #04251a; }
.part-cta.to-build { --accent: #ff000a; --on-accent: #000; }
.part-cta.to-deliver { --accent: #3b82f6; --on-accent: #0b0c0f; }
.part-cta.to-contact { --accent: #f59e0b; --on-accent: #111; }
.part-cta:hover b { transform: translateX(6px); }

/* ---- Home: one card per section, each in its own theme; the heading's link covers the whole card ---- */
.hub { padding: 24px 0 112px; }
.hub-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; transition: transform 0.25s, border-color 0.25s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hub-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.hub-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hub-card .media img { width: 100%; height: 100%; object-fit: cover; }
/* The Build card's photo is toned down like the torch-on video on the Build page, fading into the card */
.hub-card[data-theme="protorch"] .media { position: relative; border-bottom: 0; }
.hub-card[data-theme="protorch"] .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0.5) 55%, #050505 100%); }
.hub-card .body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.hub-card .body > p { margin: 0; }
.hub-card .no { color: var(--accent); }
.hub-card h2 { margin: 0; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 0.9; }
.hub-card h2 a { text-decoration: none; }
.hub-card h2 a:focus-visible { outline: none; }
.hub-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hub-card .line { font-weight: 700; }
.hub-card ul { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hub-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.hub-card .go { margin-top: auto; padding-top: 14px; color: var(--accent); }
.hub-card:hover .go { text-decoration: underline; }

/* ---- Chapters ---- */
.chapter { position: relative; padding: 96px 0 120px; }
.titleblock { display: grid; grid-template-columns: auto 1fr auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.titleblock > span { padding: 10px 14px; border-left: 1px solid var(--line); }
.titleblock > span:first-child { border-left: 0; padding-left: 0; color: var(--accent); }
.titleblock .rev { display: none; }
@media (min-width: 720px) { .titleblock { grid-template-columns: auto 1fr auto auto; } .titleblock .rev { display: block; } }
.motion .titleblock { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
.motion .titleblock.in { clip-path: inset(0 0 0 0); }
.chapter-head { display: grid; gap: 28px; margin-top: 48px; }
.chapter-head h2, .chapter-head h1 { font-size: clamp(2.9rem, 9vw, 8rem); max-width: 11ch; }
.chapter-head .h-long { font-size: clamp(2.5rem, 6.4vw, 6.2rem); max-width: 21ch; } /* the Protorch line: two lines on desktop */
/* A section's own page (plan/build/deliver.html): clear the fixed header; the Build video still runs to the top */
.chapter.opener { padding-top: 140px; }
.opener > .chapter-hero { margin-top: -140px; padding-top: 140px; }
.chapter-head .for { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.chapter-head .lede-more { max-width: 44rem; margin: 16px 0 0; line-height: 1.6; }
.chapter-logo { width: 140px; height: auto; margin-left: -14px; mix-blend-mode: lighten; }

.rows { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: row; }
.rows li { counter-increment: row; display: grid; grid-template-columns: 3rem 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows li::before { content: counter(row, decimal-leading-zero); font: 500 0.78rem var(--mono); color: var(--accent); padding-top: 6px; }
.rows h3 { margin: 0; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.05; }
.rows p { grid-column: 2; margin: 0; color: var(--muted); max-width: 40rem; }
@media (min-width: 900px) { .rows li { grid-template-columns: 4rem 24rem 1fr; } .rows p { grid-column: auto; } }

.subhead { margin-top: 110px; display: grid; gap: 14px; max-width: 46rem; }
.subhead p { margin: 0; }
.demo-note { margin-top: 10px; color: var(--muted); }

/* ---- Back end: mark-up demo ---- */
.markup, .reports, .timeline { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.markup { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 960px) { .markup { grid-template-columns: 1.65fr 1fr; align-items: center; } }
.workbench { background: #0a0d13; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wb-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.66rem; }
.sheet { display: block; width: 100%; height: auto; background: #f4f3ee; }
.sheet text { font-family: var(--mono); }
.sheet .lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; fill: #8b887f; text-anchor: middle; }
.sheet .lbl-s { font-size: 10px; font-weight: 600; fill: #6d6a62; text-anchor: middle; }
.sheet .dim line { stroke: #6d6a62; stroke-width: 1; }
.sheet .dim-t { font-size: 11px; fill: #4a4842; text-anchor: middle; }
.sheet .tb rect { fill: none; stroke: #2a2a2a; stroke-width: 1.2; }
.sheet .tb line { stroke: #2a2a2a; stroke-width: 1; }
.sheet .tb-t { font-size: 10.5px; font-weight: 600; fill: #2a2a2a; letter-spacing: 0.06em; }
.sheet .tb-demo { fill: #b4483a; }
.sheet .mk-l { font-size: 15px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #f4f3ee; stroke-width: 4px; }
.sheet .mk-start { text-anchor: start; }
.sheet .pen circle { fill: #34d399; stroke: #0a0d13; stroke-width: 2; }
.sheet .pen text { font-size: 13px; font-weight: 700; fill: #04251a; text-anchor: middle; }
.sheet .cond { font-size: 11px; font-weight: 600; fill: #34d399; text-anchor: middle; letter-spacing: 0.08em; }
.guide { background: #121722; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 0.95rem; }
.guide-area { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.guide-area b { color: #fff; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; text-transform: none; background: #1b2231; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.guide-title { margin: 14px 0 8px; padding-bottom: 8px; color: var(--muted); border-bottom: 2px solid; border-image: linear-gradient(90deg, #f59e0b, #10b981) 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: #1a202b; color: #6f7f96; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.step .tick { font-family: var(--mono); font-size: 0.8rem; line-height: 1; } /* the ✓ mustn't make a row taller */
.step .val { font-family: var(--mono); font-size: 0.8rem; }
.step.active { background: rgba(16, 185, 129, 0.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.55); }
.step.done { color: #34d399; }
.step.done .tick { font-size: 0; }
.step.done .tick::before { content: "✓"; font-size: 0.95rem; }
.guide-caption { margin: 12px 0 0; min-height: 6em; font-size: 0.92rem; line-height: 1.5; color: #e8eef6; } /* four lines, so the guide holds still between steps */
.guide-done { margin-top: 10px; color: #34d399; display: flex; justify-content: space-between; gap: 10px; }
.guide-done span:last-child { color: #8ab4ff; }
.motion .guide-done { opacity: 0; transition: opacity 0.3s; }
.motion .guide-done.show { opacity: 1; }
@media (max-width: 959px) {
  .guide { padding: 10px 12px; font-size: 0.86rem; }
  .guide-title { margin: 8px 0 6px; padding-bottom: 6px; }
  .step { padding: 5px 9px; }
  .steps { gap: 4px; }
  .guide-caption { min-height: 6em; font-size: 0.84rem; margin-top: 8px; }
}
/* Steps, report points and gallery levels are clickable */
.motion .step, .motion .report-points li { cursor: pointer; }
.motion .step:hover:not(.active) { background: #212938; }
.motion .report-points li:hover { color: var(--fg); }

/* ---- Back end: report read-through ---- */
.reports { display: grid; gap: 32px; margin-top: 110px; }
@media (min-width: 960px) { .reports { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.report-points { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 4px; }
.report-points li { padding: 10px 12px 10px 16px; border-left: 3px solid var(--line); border-radius: 0 6px 6px 0; color: var(--muted); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.report-points li b { color: var(--fg); font-weight: 700; transition: color 0.3s; }
.motion .report-points li b { color: #aab6c6; }
/* The point for the page being read: teal heading on a teal band, so it stands out from the white copy */
.motion .report-points li.on { color: var(--fg); border-color: var(--accent); background: rgba(16, 185, 129, 0.1); }
.motion .report-points li.on b { color: #34d399; }
/* One stack per worked area, all in the same place (laid out, so the hidden ones can be measured); the picked one shows */
.report-sets { display: grid; width: 100%; }
.report-sets > .pages { grid-area: 1 / 1; }
.report-sets > .pages:not(.on) { visibility: hidden; }
.pages { container-type: inline-size; display: grid; gap: 20px; width: 100%; max-width: 440px; justify-self: center; }
/* centred at every width, with room on the right for the stacked pages' 40 px offset */
.motion .pages { position: relative; aspect-ratio: 1 / 1.414; perspective: 1800px; display: block; max-width: min(440px, calc(100% - 44px)); justify-self: center; margin-right: 40px; }
@media (max-width: 959px) {
  /* Phone: the pages and their words on one screen. Only the sentence for the page being read shows, right above the
     pages; the rest of the copy follows below them. */
  .motion .reports { gap: 12px; }
  .motion .report-copy { display: contents; }
  .motion .report-copy > p.mono:first-child { order: 1; margin: 0; }
  .motion .report-copy > h3 { order: 2; margin: 0; font-size: 1.55rem; }
  .motion .report-points { order: 3; margin: 0; min-height: 6em; }
  .motion .report-points li:not(.on) { display: none; }
  .motion .report-sets { order: 4; }
  .motion .report-copy > p.muted { order: 5; margin: 44px 0 0; } /* clear of the stacked pages' 40 px offset */
  .motion .report-copy > .demo-note { order: 6; margin: 0; }
}
.page { position: relative; aspect-ratio: 1 / 1.414; background: #fbfbf8; color: #161616; border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); padding: 8% 8.5%; font-size: 2.85cqw; line-height: 1.45; overflow: hidden; display: flex; flex-direction: column; }
.motion .page { position: absolute; inset: 0; transform-origin: 50% 0%; backface-visibility: hidden; }
.motion .page:nth-child(2) { transform: translate(8px, 8px); }
.motion .page:nth-child(3) { transform: translate(16px, 16px); }
.motion .page:nth-child(4) { transform: translate(24px, 24px); }
.motion .page:nth-child(5) { transform: translate(32px, 32px); }
.motion .page:nth-child(6) { transform: translate(40px, 40px); }
.page-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #161616; padding-bottom: 0.6em; margin-bottom: 1.1em; }
.page-top .mark { font-size: 1.5em; }
.page-top .mono, .page .mono { font-size: 0.8em; color: #555; }
.page h4 { margin: 0 0 0.5em; font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 1.5em; line-height: 1.1; }
.page table { width: 100%; border-collapse: collapse; }
.page td { padding: 0.45em 0; border-bottom: 1px solid #e3e1da; }
.page td:nth-child(2) { color: #666; width: 3em; }
.page td:last-child { text-align: right; font-family: var(--mono); }
.page tr.total td { border-bottom: 0; border-top: 2px solid #161616; font-weight: 700; }
.page .loc { margin: 0.6em 0 0.3em; font-weight: 700; }
.page .tv-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.7em 0 0.9em; padding: 0.8em 0.9em; background: #161616; color: #fff; }
.page .tv-total span { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; }
.page .tv-total b { font-weight: 800; font-stretch: 80%; font-size: 2em; line-height: 1; }
.page .tv td { padding: 0.7em 0; font-size: 1.12em; font-weight: 600; }
.page .tv td:nth-child(2) { width: auto; color: #161616; font-family: var(--mono); text-align: right; }
.page .tv small { display: block; font-size: 0.74em; font-weight: 400; color: #666; }
.page ul { margin: 0; padding-left: 1.2em; }
.page li { padding: 0.25em 0; }
.page-foot { margin-top: auto; display: flex; justify-content: space-between; padding-top: 0.8em; border-top: 1px solid #e3e1da; }
/* The job package's cover, as WPiQ prints it: the business's own name, logo and ABN, then the job and what's inside */
.page .cover-brand { display: flex; align-items: center; gap: 0.9em; padding-bottom: 0.9em; margin-bottom: 1.3em; border-bottom: 2px solid #161616; }
.page .logo-slot { display: grid; place-items: center; flex: none; width: 5.4em; height: 5.4em; padding: 0.4em; font-size: 0.72em; line-height: 1.25; text-align: center; color: #77746b; border: 1.5px dashed #9a978e; border-radius: 6px; }
.page .cover-brand b { display: block; font-size: 1.3em; font-weight: 800; line-height: 1.15; }
.page .cover-brand .mono { display: block; margin-top: 0.3em; }
.page.cover h4 { font-size: 2em; margin: 0.2em 0 0.6em; }
.page .cover-meta td, .page .cover-contents td { width: auto; font-family: inherit; text-align: left; }
.page .cover-meta td:first-child, .page .cover-contents td:first-child { width: 36%; font-weight: 700; }
.page .cover-contents { margin-top: 1.4em; }
.page .cover-contents th { padding-bottom: 0.4em; font-family: var(--mono); font-size: 0.8em; font-weight: 600; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; border-bottom: 2px solid #161616; }
/* The mark-up page: the demo's drawing as it ends, in the animation's colours, stamped with the version, then the key */
.page .mk-sheet { margin-top: 0.4em; border: 1px solid #d6d3ca; }
.mk-sheet .mk-tag { font-family: var(--sans); font-weight: 700; }
.mk-sheet .mk-end { text-anchor: end; }
.page .mk-key { margin-top: 0.8em; font-size: 0.92em; }
.page .mk-key td { width: auto; padding: 0.22em 0; }
.page .mk-key td:first-child { font-weight: 700; white-space: nowrap; }
.page .mk-key th { padding-bottom: 0.4em; font-family: var(--mono); font-size: 0.8em; font-weight: 600; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; border-bottom: 2px solid #161616; }
.page .mk-key .mk-sw { display: inline-block; width: 2em; height: 0; margin-right: 0.6em; vertical-align: middle; }
.page .mk-key .mk-area { height: 0.8em; background: color-mix(in srgb, var(--k) 22%, transparent); border: 1.5px solid var(--k); }
.page .mk-key .mk-line { border-top: 0.3em solid var(--k); }
.page .mk-key .mk-dot { height: 1.1em; background: radial-gradient(circle, var(--k) 0 0.4em, #0a0d13 0.4em 0.52em, transparent 0.52em); }
.read-bar { position: absolute; left: 0; right: 0; top: 0; background: rgba(16, 185, 129, 0.15); border-left: 3px solid #10b981; pointer-events: none; display: none; }
.motion .read-bar { display: block; }
.page [data-read] { position: relative; z-index: 1; }

/* ---- Back end: systems & options viewer ---- */
.chain { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain li { font: 600 0.66rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.chain li.arrow { border: 0; background: none; padding: 0; color: var(--accent); }
/* Copy and demo side by side; the demo sits on the left (the report above has its pages on the right) */
.sys-viewer { display: grid; gap: 32px; max-width: var(--wrap); margin: 110px auto 0; padding-inline: var(--pad); }
@media (min-width: 960px) {
  .sys-viewer { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 56px; }
  .sys-viewer > .sys-screen { grid-column: 1; grid-row: 1; }
  .sys-viewer > .sys-copy { grid-column: 2; grid-row: 1; }
}
.sys-copy > .chain { margin: 4px 0 6px; }
/* While animating, only the step showing opens its sentence; the rest read as step names */
.motion .sys-points li:not(.on) .s { display: none; }
.sys-screen { background: #0a0d13; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sys-body { padding: 16px; font-size: 0.9rem; }
.sys-cond { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font: 500 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); background: #141a26; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.chip b { color: var(--accent); }
.sys-stages { display: grid; gap: 20px; }
.motion .sys-stages { gap: 0; }
.motion .sys-stage { grid-area: 1 / 1; }
.sys-h { margin: 0 0 8px; color: var(--muted); }
.cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cands li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; background: #151b27; border: 1px solid var(--line); border-radius: 6px; }
.cands b { color: #fff; }
.cands span { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.cands .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.cands small { grid-column: 1 / -1; font-size: 0.78rem; color: #f5c66b; }
.cands li.no small { color: #ff8a80; }
.cands li.no b { text-decoration: line-through; text-decoration-color: rgba(255, 138, 128, 0.7); }
.tag { font: 600 0.64rem var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tag.ok { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag.no { background: rgba(232, 119, 106, 0.15); color: #ff8a80; }
.sys-foot { margin: 10px 0 0; color: var(--muted); }
.sys-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.opt { background: #151b27; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.opt-h { margin: 0; color: var(--accent); }
.opt-2 .opt-h { color: #8ab4ff; }
.opt-name { display: block; margin: 2px 0; color: #fff; font-size: 1rem; }
.opt-meta, .opt-foot { margin: 0 0 8px; color: var(--muted); font-size: 0.62rem; }
.opt-foot { margin: 8px 0 0; }
.bu { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bu td { padding: 5px 0; border-bottom: 1px solid #222a38; }
.bu td:last-child { padding-left: 8px; text-align: right; font-family: var(--mono); color: #34d399; white-space: nowrap; }
.pills, .parts, .switches { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.pill { font: 500 0.66rem var(--mono); color: #8ab4ff; border: 1px dashed #3a4a63; border-radius: 999px; padding: 3px 9px; }
.pill.on { color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.08); }
.sw { font: 600 0.72rem var(--mono); color: #34d399; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.5); border-radius: 999px; padding: 6px 12px; }
.sw::before { content: "● "; }
.orderlist { background: #fbfbf8; color: #161616; border-radius: 6px; padding: 12px 14px; font-size: 0.82rem; }
.orderlist p { margin: 0; }
.orderlist .mono { color: #555; }
.ol-title { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ol-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #e3e1da; }
.orderlist .ol-or { align-self: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.ol-cols ul { margin: 4px 0 0; padding-left: 1.1em; }
@media (max-width: 959px) {
  /* Phone and tablet: the sentence for the step showing sits right above the demo, so both are on screen together */
  .motion .sys-viewer { gap: 12px; }
  .motion .sys-copy { display: contents; }
  .motion .sys-copy > p.mono:first-child { order: 1; margin: 0; }
  .motion .sys-copy > h3 { order: 2; margin: 0; font-size: 1.55rem; }
  .motion .sys-copy > p.muted { order: 3; margin: 0; }
  .motion .sys-copy > .chain { order: 4; margin: 4px 0 8px; }
  .motion .sys-copy > .report-points { order: 5; margin: 0; min-height: 7.5em; }
  .motion .sys-viewer > .sys-screen { order: 6; }
  .motion .sys-copy > .demo-note { order: 7; margin: 0; }
}
@media (max-width: 560px) {
  .sys-body { padding: 10px; font-size: 0.82rem; }
  .sys-options { gap: 6px; }
  .opt { padding: 8px; }
  .bu { font-size: 0.68rem; }
  .opt-name { font-size: 0.85rem; }
  .ol-cols { grid-template-columns: 1fr; }
}

/* ---- Back end: pricing, coming soon (a quiet dashed note, so it doesn't compete with what's built) ---- */
.price-banner { margin-top: 56px; }
.price-banner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 8px; }
.price-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: #f59e0b; border: 1px solid #f59e0b; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.price-banner p { margin: 0; flex: 1 1 22rem; font-size: 0.95rem; color: var(--muted); }
.price-banner b { font-weight: 700; color: var(--fg); }

/* ---- In between: the torch-on clip behind the heading, logo, copy and supplier tiles ---- */
.chapter-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -96px; padding: 96px 0 72px; }
.hero-video { position: absolute; inset: 0; z-index: -1; background: #050505; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* darkest on the left where the words are, lifting to the right; top and bottom blend into the section */
.hero-video::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.82) 40%, rgba(5, 5, 5, 0.42) 70%, rgba(5, 5, 5, 0.28) 100%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0) 20%, rgba(5, 5, 5, 0) 70%, #050505 100%); }
@media (max-width: 720px) {
  .hero-video video { object-position: 30% 50%; }
  .hero-video::after { background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.7) 28%, rgba(5, 5, 5, 0.86) 52%, rgba(5, 5, 5, 0.9) 80%, #050505 100%); }
}

/* ---- In between: install timeline ---- */
.timeline { margin-top: 56px; }
.frames { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.frame { margin: 0; position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame figcaption { padding: 10px 0 0; }
.frame figcaption h4 { margin: 4px 0; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 1.15rem; }
.frame figcaption p { margin: 0; color: var(--muted); }
.tl-rail { display: none; }
/* A level still waiting for its photo */
.ph { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(-45deg, #141414 0 18px, #0c0c0c 18px 36px); border: 1px dashed #333; }
.ph span { font: 600 0.78rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a8a; background: #050505; padding: 8px 14px; border: 1px solid #2b2b2b; }
.motion .frame .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border: 0; }
/* Remediation is by consultation: a Protorch red panel in place of a photo */
.consult { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 78% 30%, rgba(255, 0, 10, 0.38), transparent 55%), repeating-linear-gradient(-45deg, #140001 0 18px, #0a0a0a 18px 36px); }
.consult span { position: absolute; top: 18%; right: 4%; font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.9; font-size: clamp(2rem, 6vw, 5.5rem); text-align: right; width: min-content; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22); }
.motion .frame .consult { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.frame figcaption .btn { margin-top: 14px; }
.motion .tl-caps a { pointer-events: auto; }
.motion .tl-caps figcaption:not(.on) a { pointer-events: none; }
.motion .frame .ph span { transform: translateY(-60px); }
/* Same width as the rest of the page (not full-bleed), so there's always room either side to scroll past */
.motion .timeline { position: relative; width: min(calc(100% - 2 * var(--pad)), calc(var(--wrap) - 2 * var(--pad))); height: min(76svh, 720px); min-height: 480px; margin: 56px auto 0; overflow: hidden; max-width: none; padding: 0; border-radius: 10px; border: 1px solid var(--line); }
.motion .frames { display: block; position: absolute; inset: 0; }
.motion .frame { position: absolute; inset: 0; }
.motion .frame img { width: 100%; height: 100%; aspect-ratio: auto; }
.motion .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%); }
.motion .tl-caps { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.motion .tl-caps figcaption { position: absolute; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); bottom: 32px; max-width: 34rem; padding: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.2s, transform 0.2s; }
.motion .tl-caps figcaption.on { opacity: 1; transform: none; transition: opacity 0.35s 0.2s, transform 0.35s 0.2s; } /* the old caption is gone before the new one arrives */
.motion .tl-caps figcaption h4 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 0.95; margin: 8px 0 10px; }
.motion .tl-caps figcaption p { color: #e6e6e6; }
.motion .tl-rail { display: flex; position: absolute; z-index: 4; top: 18px; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); gap: 6px; list-style: none; margin: 0; padding: 0; }
/* Dark fade behind the level names and progress lines, so they read on bright sky or white membrane */
.motion .timeline::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 150px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0)); }
.tl-rail li { flex: 1; border-top: 3px solid rgba(255, 255, 255, 0.45); padding: 9px 0 6px; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.tl-rail li:hover { color: #fff; }
.tl-rail li.on { border-color: var(--accent); color: #fff; font-weight: 700; }
/* a dot per photo where a section has more than one */
.tl-rail .dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.tl-rail .dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 4px rgba(0, 0, 0, 0.8); }
.tl-rail .dots b.on { background: var(--accent); }
.photo-note { margin: 12px 0 0; color: var(--muted); font-size: 0.66rem; }
@media (max-width: 720px) { .tl-rail li span { display: none; } }
.accred { margin-top: 56px; }
.accred > .mono { margin: 0 0 16px; color: var(--accent); }
/* Supplier logos in their own colours, on equal light tiles; --h sizes each so square and wide marks carry the same weight */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1000px; }
.logos li { display: grid; gap: 10px; align-content: start; }
.logos .tile { display: grid; place-items: center; height: 112px; padding: 14px; background: #f4f3ee; border-radius: 8px; }
.logos img { height: calc(var(--h) * 1px); width: auto; max-width: 100%; object-fit: contain; }
.logos small { font: 500 0.64rem var(--mono); letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; text-align: center; color: var(--muted); }
.logos .soon .tile { opacity: 0.55; }
@media (max-width: 720px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logos .tile { height: 80px; padding: 10px; }
  .logos img { height: calc(var(--h) * 0.66px); }
}
.split { display: grid; gap: 24px; margin-top: 110px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.35fr; gap: 56px; } .split-head { position: sticky; top: 110px; align-self: start; } .split .rows { margin-top: 0; } .split .rows li { grid-template-columns: 4rem 1fr; } .split .rows p { grid-column: 2; } }

/* ---- Front end: device scroll ---- */
/* Which page the screens show (site.js), in the page's own colours */
.site-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.site-tabs[hidden] { display: none; }
.site-tabs button { padding: 8px 20px; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.site-tabs button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.site-tabs button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.devices { position: relative; margin-top: 56px; height: min(64vw, 640px); }
.device-desk { position: absolute; left: 0; top: 4%; width: 72%; height: 78%; max-width: 980px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22); }
.device-desk .chrome { display: flex; gap: 6px; padding: 9px 12px; background: #e9e5dc; border-bottom: 1px solid var(--line); }
.device-desk .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c9c2b4; }
.device-desk img, .device-tab img, .device-phone img { flex: 1; width: 100%; min-height: 0; height: 100%; object-fit: cover; object-position: 50% 0%; }
.device-tab { position: absolute; right: 17%; bottom: 3%; height: 74%; aspect-ratio: 820 / 1180; border-radius: 18px; overflow: hidden; border: 9px solid #1c1c1c; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26); }
.device-phone { position: absolute; right: 4%; bottom: 1%; height: 60%; aspect-ratio: 390 / 844; border-radius: 28px; overflow: hidden; border: 8px solid #1c1c1c; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
@media (max-width: 720px) { .devices { height: 125vw; } .device-desk { top: 0; width: 92%; height: 52%; } .device-tab { right: 20%; height: 50%; } .device-phone { right: 0; height: 42%; } }
.logo-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.logo-slots span { display: grid; place-items: center; min-height: 90px; border: 1px dashed var(--line); color: var(--muted); }

/* ---- Sandbox editor (draft only: remove with edit.js and assets/install/pool/ before publishing) ---- */
.edit-toggle { font: 600 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #111; background: #f59e0b; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.edit-toggle[aria-pressed="true"] { background: #fff; }
.edit-k { width: 4.6rem; color: #9a9fa8; font-size: 0.6rem; }
.edit-panel { display: none; position: fixed; z-index: 80; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); padding: 14px; font-size: 0.85rem; color: #f2f1ee; background: #0b0c0f; border: 1px solid #f59e0b; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
body.editing .edit-panel { display: block; }
.edit-panel p { margin: 0 0 6px; }
.edit-level { color: #f59e0b; }
.edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.edit-panel button, .edit-pick button[data-close] { font: 600 0.64rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #f2f1ee; background: #1a1d24; border: 1px solid #333a46; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.edit-panel button:hover, .edit-pick button[data-close]:hover { border-color: #f59e0b; }
.edit-tip { color: #9a9fa8; font-size: 0.8rem; }
.edit-status { min-height: 1.3em; color: #34d399; }
.edit-aside { margin: 0 0 8px; padding: 8px 10px; font-size: 0.8rem; border: 1px dashed #f59e0b; border-radius: 8px; }
.edit-aside[hidden] { display: none; }
.edit-aside .edit-row { margin: 6px 0 0; }
.edit-panel .edit-focus { position: relative; padding: 0; line-height: 0; border: 0; border-radius: 4px; outline: 1px solid #333a46; overflow: hidden; cursor: crosshair; }
.edit-panel .edit-focus:hover, .edit-panel .edit-focus:focus-visible { outline: 2px solid #f59e0b; }
.edit-panel .edit-focus[hidden] { display: none; }
.edit-focus img { display: block; width: auto; height: auto; max-width: 170px; max-height: 96px; }
.edit-focus i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: rgba(245, 158, 11, 0.9); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); pointer-events: none; }
.edit-focus-note { flex: 1; min-width: 8rem; color: #9a9fa8; font-size: 0.75rem; line-height: 1.35; }
.edit-focus-val { color: #f2f1ee; }
body.editing #timeline [contenteditable] { outline: 1px dashed rgba(245, 158, 11, 0.85); outline-offset: 3px; cursor: text; }
body.editing .tl-caps figcaption.on { pointer-events: auto; }
.edit-pick { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.8); }
.edit-pick[hidden] { display: none; }
.edit-pick > div { width: min(1000px, 100%); max-height: 86vh; overflow: auto; padding: 16px; color: #f2f1ee; background: #0b0c0f; border: 1px solid #333a46; border-radius: 10px; }
.edit-pick .edit-row { justify-content: space-between; }
.edit-pick ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.edit-pick li button { display: block; width: 100%; padding: 0; background: none; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; text-align: left; }
.edit-pick li button:hover, .edit-pick li button:focus-visible { border-color: #f59e0b; }
.edit-pick li img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.edit-pick li small { display: block; padding: 4px 6px; font: 500 0.6rem var(--mono); color: #9a9fa8; }

/* ---- Close + footer ---- */
.close { padding: 120px 0 100px; }
.close h2 { font-size: clamp(2.8rem, 8vw, 7rem); max-width: 14ch; }
.close p { margin: 32px 0 28px; }

/* ---- Plan's worked areas: the buttons over the demo swap the area on show in place (site.js), as picking an area
   does in WPiQ. Without JS all three show, one after another. ---- */
.area-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.area-tabs a { padding: 8px 20px; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #34d399; text-decoration: none; border: 1px solid rgba(16, 185, 129, 0.6); border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.area-tabs a:hover { background: rgba(16, 185, 129, 0.14); }
.area-tabs a[aria-current="true"] { color: #04251a; background: #34d399; border-color: #34d399; }
.area-panel { scroll-margin-top: 150px; } /* a link to an area (plan.html#stair) lands with the buttons above it in view */
/* Out of sight but still laid out, so the viewers can measure their drawings before they're picked */
.areas.switch .area-panel:not(.on) { height: 0; overflow: hidden; visibility: hidden; }
.area-intro { margin-top: 22px; }
.area-intro p { max-width: 46rem; margin: 0; }
.area-intro b { color: var(--fg); }
.area-panel .markup { margin-top: 20px; }
/* The ensuite and stair viewers: the floor tools sit under Step 1 in the guide, and the status line is WPiQ's own */
.ensuite .workbench, .stair .workbench { position: relative; }
@media (min-width: 960px) { .markup.ensuite, .markup.stair { align-items: start; } } /* the sheet stays put while the caption changes length */
.wb-status { position: absolute; top: 40px; right: 10px; margin: 0; padding: 5px 10px; max-width: calc(100% - 20px); font-size: 0.66rem; color: #fbbf24; background: rgba(10, 13, 19, 0.92); border: 1px solid rgba(245, 158, 11, 0.6); border-radius: 999px; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.wb-status.show { opacity: 1; }
.step.sub { margin-left: 22px; padding-block: 5px; font-size: 0.86em; background: #161b25; }
.step.sub .tick { text-align: center; }
.step.open { color: #fff; }
.sheet .fx { opacity: 0; }
.sheet #en-verts rect, .sheet #st-verts rect { fill: #2dd4bf; stroke: #0a0d13; stroke-width: 1.5; }
.sheet #en-handle, .sheet #st-handles circle { fill: #e879f9; stroke: #0a0d13; stroke-width: 1.5; }
/* The stair: tread numbers light as they're counted; WPiQ's L / R on the two sides; small tags over a figure */
.sheet .tn-dot { fill: #0284c7; opacity: 0; transition: opacity 0.15s; }
.sheet .tn-dot.on { opacity: 1; }
.sheet .tn.on { fill: #fff; font-weight: 700; }
.sheet .lr { font-size: 16px; font-weight: 700; fill: #0284c7; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #f4f3ee; stroke-width: 4px; }
.sheet .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-anchor: middle; paint-order: stroke; stroke: #f4f3ee; stroke-width: 3px; }
.sheet .ffl rect { fill: #f4f3ee; stroke: #2a2a2a; stroke-width: 1; }
.guide-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 12px 0 0; padding: 10px 12px; color: var(--muted); border: 1px solid rgba(245, 158, 11, 0.55); border-radius: 8px; }
.guide-total b { font-family: var(--sans); font-size: 1.45rem; font-weight: 800; letter-spacing: 0; text-transform: none; color: #34d399; }
.sheet .snap { fill: none; stroke: #22d3ee; stroke-width: 3; }
.sheet .click { fill: #fff; stroke: #0a0d13; stroke-width: 2; }
.sheet .ctx .box { fill: #121722; stroke: #2a3345; }
.sheet .ctx .hi { fill: rgba(16, 185, 129, 0.25); }
.sheet .ctx text { font-family: var(--sans); font-size: 12.5px; fill: #aab6c6; }
.sheet .ctx text.on { fill: #fff; font-weight: 700; }
.ens-out { display: grid; gap: 32px; margin-top: 110px; }
@media (min-width: 960px) { .ens-out { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.one-page { container-type: inline-size; width: 100%; max-width: 440px; justify-self: center; }
.motion .one-page .page { position: relative; inset: auto; }
.go-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.go-link:hover { text-decoration: underline; }

/* ---- Contact page: the form is a draft and isn't connected yet (site.js says so instead of sending) ---- */
.contact { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; } }
.contact-form { display: grid; gap: 18px; max-width: 40rem; }
.contact-form .field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-form label, .contact-form legend { padding: 0; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-form label span { letter-spacing: 0; text-transform: none; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* "What's it about?": quiet tick boxes, grey until picked, amber when picked. The checkbox covers its box unseen, so a
   click, a tap or Space works it as usual. */
.contact-form .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .check { position: relative; display: inline-flex; }
.contact-form .check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-form .check span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.contact-form .check span::before { content: ""; flex: none; display: grid; place-items: center; width: 16px; height: 16px; font-size: 11px; font-weight: 800; line-height: 1; color: #0b0c0f; border: 1.5px solid var(--muted); border-radius: 4px; transition: background-color 0.2s, border-color 0.2s; }
.contact-form .check:hover span { color: var(--fg); border-color: var(--muted); }
.contact-form .check:hover span::before { border-color: var(--fg); }
.contact-form .check input:checked + span { color: var(--fg); border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.contact-form .check input:checked + span::before { content: "✓"; background: #f59e0b; border-color: #f59e0b; }
.contact-form .check input:focus-visible + span { outline: 2px solid #f59e0b; outline-offset: 3px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-status { min-height: 1.4em; margin: 0; color: var(--accent); }
.contact-details { padding-top: 20px; border-top: 1px solid var(--line); }
.contact-details p { margin: 0 0 14px; }
.contact-details .mono { margin-bottom: 6px; color: var(--accent); }
.contact-details .draft-note { margin-top: 28px; color: var(--muted); }
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.footer a:not(.mark) { color: var(--fg); } /* the WPiQ mark keeps its own amber and green */

/* ---- Hero intro: hidden only until landing.js reveals it (fallback shows it after 2.5 s) ---- */
.js .hero-in { visibility: hidden; animation: show-anyway 0s 2.5s forwards; }
@keyframes show-anyway { to { visibility: visible; } }

/* ---- Page changes (works when served over http(s); no effect from file://) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.3s ease both; }
::view-transition-new(root) { animation: vt-in 0.45s ease both; }
@keyframes vt-out { to { opacity: 0; filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer .item, .site-header, .step, .report-points li { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
