/* ---------------------------------------------------------------------------
   BWise - the product site, one stylesheet.

   Built on the layout of wise-tt.com (site.css: header, hero, trust strip,
   bands, cards, steps, call to action, footer, language menu, animation
   switch), with the same class names, so the two sites read as one family.
   The colours are BWise's own: the cloth of the table and the peach of the
   BWise logo. Unlike wise-tt.com this page has a dark theme too: it follows
   the device setting (and data-theme, when a host sets it).

   Every colour is a token below; components use only the tokens.
   Text / background pairs meet WCAG AA (4.5:1) or better in both themes.
--------------------------------------------------------------------------- */

/* layout: sticky header, split hero with the projected table, bands of cards */
:root {
  --ink:          #0f2420;   /* headings */
  --text:         #33453f;   /* body copy, 10.4:1 on white */
  --muted:        #56685f;   /* secondary copy, 5.9:1 on white */
  --brand:        #0a6a51;   /* links, accents: the cloth, 6.5:1 on white */
  --brand-dark:   #07503d;
  --brand-soft:   #5c9e8a;   /* decorative only */
  --brand-wash:   #e8f3ef;
  --accent:       #a9481a;   /* call to action: the logo's peach, darkened; white on it 5.6:1 */
  --accent-dark:  #8a3a14;
  --accent-ic:    #b5531f;   /* ticks and small icons */
  --on-accent:    #ffffff;
  --peach:        #ffcb9a;   /* the BWise logo */
  --line:         #d6e3dd;
  --bg:           #ffffff;
  --bg-alt:       #f2f7f5;
  --card:         #ffffff;
  --head-bg:      rgba(255,255,255,.94);
  --deep:         #0c1f1a;   /* call to action band, footer */
  --on-deep:      #a9c0b7;   /* 8.1:1 on --deep */
  --on-deep-h:    #e0ece7;
  --on-deep-link: #cfe0d8;
  --on-deep-line: rgba(255,255,255,.12);
  --chip-bg:      #ffffff;
  --glow-a:       rgba(10,106,81,.16);
  --glow-b:       rgba(169,72,26,.08);
  --sh:    0 1px 2px rgba(15,36,32,.06), 0 8px 24px rgba(15,36,32,.06);
  --sh-lg: 0 2px 4px rgba(15,36,32,.06), 0 16px 48px rgba(15,36,32,.11);

  /* the table in the pictures */
  --felt:       #12775b;
  --felt-dark:  #0e6650;
  --wood:       #4b2f1e;
  --wood-edge:  #3a2416;
  --pocket:     #0a0e0d;
  --diamond:    #efe5cf;
  --wood-label: rgba(239,229,207,.72);
  --mark:       rgba(255,255,255,.10);
  --proj:       #c9fff1;   /* projected light on the cloth */
  --zone-y:     #ffd34d;
  --zone-g:     #6cf09a;
  --ball-cue:   #f7f4ea;
  --ball-edge:  rgba(0,0,0,.35);
  --ball-1:     #f2c215;
  --ball-2:     #2152d6;
  --ball-3:     #d2302a;
  --ball-4:     #6b2c91;

  --wrap: 1140px;
  --r: 10px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4efea; --text: #c2d2cb; --muted: #97ada4;
    --brand: #66d3b0; --brand-dark: #98e7cd; --brand-soft: #3d8c75; --brand-wash: #12302a;
    --accent: #b04d1c; --accent-dark: #c65a24; --accent-ic: #f2a06b; --on-accent: #ffffff;
    --line: #24423b; --bg: #0a1714; --bg-alt: #0e1f1b; --card: #10241f;
    --head-bg: rgba(10,23,20,.92); --deep: #061210; --on-deep: #a3bab1; --on-deep-h: #e0ece7;
    --on-deep-link: #cfe0d8; --on-deep-line: rgba(255,255,255,.10); --chip-bg: #10241f;
    --glow-a: rgba(102,211,176,.13); --glow-b: rgba(242,160,107,.07);
    --sh: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
    --sh-lg: 0 2px 4px rgba(0,0,0,.35), 0 16px 48px rgba(0,0,0,.4);
    --felt: #10694f; --felt-dark: #0c5845; --wood: #3c2618; --wood-edge: #2b1a10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e4efea; --text: #c2d2cb; --muted: #97ada4;
  --brand: #66d3b0; --brand-dark: #98e7cd; --brand-soft: #3d8c75; --brand-wash: #12302a;
  --accent: #b04d1c; --accent-dark: #c65a24; --accent-ic: #f2a06b; --on-accent: #ffffff;
  --line: #24423b; --bg: #0a1714; --bg-alt: #0e1f1b; --card: #10241f;
  --head-bg: rgba(10,23,20,.92); --deep: #061210; --on-deep: #a3bab1; --on-deep-h: #e0ece7;
  --on-deep-link: #cfe0d8; --on-deep-line: rgba(255,255,255,.10); --chip-bg: #10241f;
  --glow-a: rgba(102,211,176,.13); --glow-b: rgba(242,160,107,.07);
  --sh: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
  --sh-lg: 0 2px 4px rgba(0,0,0,.35), 0 16px 48px rgba(0,0,0,.4);
  --felt: #10694f; --felt-dark: #0c5845; --wood: #3c2618; --wood-edge: #2b1a10;
  color-scheme: dark;
}

/* ---- reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 84px; }
html[data-motion="calm"], html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .01ms !important; transition-duration: .01ms !important;
}
html[data-motion="calm"] *:not(.hero-table *), html[data-motion="calm"] *:not(.hero-table *)::before,
html[data-motion="calm"] *:not(.hero-table *)::after {
  animation-duration: .01ms !important; transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 101; background: var(--head-bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  color: var(--ink); line-height: 1.2; margin: 0 0 .5em;
  font-weight: 700; letter-spacing: -.015em; text-wrap: balance;
}
p { text-wrap: pretty; margin: 0 0 1.05em; }
h1 { font-size: clamp(1.95rem, 1.45rem + 2.1vw, 2.95rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.05vw, 2.0rem); letter-spacing: -.02em; }
h3 { font-size: 1.19rem; }
a  { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ic); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
:focus-visible { outline: 3px solid var(--accent-ic); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ic { width: 22px; height: 22px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; color: var(--on-accent); }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.5em; border: 1px solid transparent; border-radius: var(--r);
  font-size: .97rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-wash); color: var(--brand-dark); border-color: var(--brand-soft); }
.btn-outline-light { background: transparent; color: var(--on-deep-h); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--on-deep-h); border-color: var(--on-deep-h); }

/* ---- header ------------------------------------------------------------- */

.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--head-bg);
  backdrop-filter: saturate(1.6) blur(8px);
  -webkit-backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--brand); }
.brand-sym { width: 38px; height: 38px; }
.brand-word { width: 118px; height: auto; }
.logo-path { fill: currentColor; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
  display: block; padding: 10px 11px; font-size: .95rem; font-weight: 600; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 7px;
}
.nav-list > li > a:hover { background: var(--brand-wash); color: var(--brand-dark); }
.nav-cta { display: flex; gap: 10px; flex: none; }
.nav-cta .btn { padding: .58em 1.05em; font-size: .9rem; }
.nav-toggle { display: none; }
@media (max-width: 1300px) {
  .nav-list > li > a { padding: 10px 7px; font-size: .9rem; }
  .nav { gap: 12px; }
  .head-in { gap: 16px; }
}
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 9px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 68px); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg); padding: 12px var(--gutter-r) 22px var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 14px 4px; font-size: 1rem; border-radius: 0; }
  .nav-cta { margin-top: 18px; }
  .nav-cta .btn { flex: 1; padding: .8em 1em; font-size: .96rem; }
  .langsw { margin-left: -8px; }
}
@media (max-width: 420px) {
  .brand-word { width: 96px; }
  .brand-sym { width: 32px; height: 32px; }
}

/* ---- language menu (as on wise-tt.com) ----------------------------------- */

.langsw { position: relative; flex: none; }
.langsw-d > summary { list-style: none; }
.langsw-d > summary::-webkit-details-marker { display: none; }
.langsw-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 11px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--chip-bg); color: var(--ink);
  font-size: .84rem; font-weight: 700; letter-spacing: .04em; line-height: 1; cursor: pointer;
  user-select: none; -webkit-user-select: none; transition: background .15s, border-color .15s, color .15s;
}
.langsw-btn:hover, .langsw-d[open] > .langsw-btn { background: var(--brand-wash); border-color: var(--brand-soft); color: var(--brand-dark); }
.langsw-globe { width: 16px; height: 16px; color: var(--brand); }
.langsw-caret { width: 10px; height: 10px; opacity: .7; transition: transform .12s ease; }
.langsw-d[open] .langsw-caret { transform: rotate(180deg); }
.langsw-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  width: 340px; max-width: calc(100vw - 24px); margin: 0; padding: 6px; list-style: none;
  column-count: 2; column-gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
}
.langsw-pop li { margin: 0; break-inside: avoid; }
.langsw-item {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px 6px 8px;
  border-radius: 7px; font-size: .95rem; line-height: 1.3; color: var(--text); text-decoration: none;
}
.langsw-item:hover, .langsw-item:focus-visible { background: var(--brand-wash); color: var(--brand-dark); }
.langsw-tick { flex: none; width: 14px; height: 14px; visibility: hidden; color: var(--brand); }
.langsw-item.is-on { font-weight: 600; color: var(--brand); }
.langsw-item.is-on .langsw-tick { visibility: visible; }
.langsw-name { flex: 1; min-width: 0; }
.langsw-code { flex: none; font-size: .7rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 1100px) { .langsw-btn { height: 44px; border-radius: 8px; } }
@media (max-width: 420px) { .langsw-pop { width: 280px; } }

/* ---- hero --------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 82% -12%, var(--glow-a), transparent 62%),
    radial-gradient(800px 400px at 6% 108%, var(--glow-b), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero-in { padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(26px, 3.4vw, 46px); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 44px; align-items: center; }
@media (max-width: 1000px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.hero-copy { min-width: 0; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.eyebrow {
  display: inline-block; margin: 0; padding: 5px 13px;
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 5px;
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hero-badge:hover { border-color: var(--brand-soft); box-shadow: var(--sh); color: var(--ink); }
.badge-new {
  padding: 3px 9px; border-radius: 100px; background: var(--accent); color: var(--on-accent);
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.hero h1 { margin-bottom: .38em; }
.hero-sub { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: var(--muted); max-width: 62ch; margin-bottom: 1.3em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes {
  display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none;
  margin: 22px 0 0; padding: 0; font-size: .93rem; font-weight: 500; color: var(--text);
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes .ic { width: 18px; height: 18px; color: var(--accent-ic); stroke-width: 2.4; }

/* the projected table in the hero */
.hero-table { margin: 0; min-width: 0; }
.hero-table svg { width: 100%; filter: drop-shadow(0 18px 30px rgba(8,30,24,.22)); }
.hero-table figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 14px; font-size: .86rem; color: var(--muted);
}
.hero-table .cap-name { font-weight: 700; color: var(--ink); }
.hero-table .cap-chip {
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 100px; background: var(--chip-bg);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--brand);
}

/* ---- the table pictures (drillsvg.py) ------------------------------------ */

.tb-frame { fill: var(--wood); stroke: var(--wood-edge); stroke-width: 6; }
.tb-cushion { fill: var(--felt-dark); }
.tb-cloth { fill: var(--felt); }
.tb-mark { stroke: var(--mark); stroke-width: 4; }
.tb-spot { fill: var(--mark); }
.tb-pocket { fill: var(--pocket); }
.tb-diamond { fill: var(--diamond); }
.tb-label { fill: var(--wood-label); font: 700 50px var(--sans); text-anchor: middle; }
.pj-aim { stroke: var(--proj); stroke-width: 6; stroke-dasharray: 22 16; fill: none; opacity: .85; }
.pj-ghost { fill: none; stroke: var(--proj); stroke-width: 6; stroke-dasharray: 12 10; }
.pj-line { stroke: var(--proj); stroke-width: 6; fill: none; opacity: .85; }
.pj-arrowhead { fill: var(--proj); }
.pj-zone { fill: color-mix(in srgb, var(--proj) 12%, transparent); stroke: var(--proj); stroke-width: 9; }
.pj-zone-y { fill: color-mix(in srgb, var(--zone-y) 18%, transparent); stroke: var(--zone-y); }
.pj-zone-g { fill: color-mix(in srgb, var(--zone-g) 16%, transparent); stroke: var(--zone-g); }
.pj-path { fill: none; stroke: #ffffff; stroke-opacity: .75; stroke-width: 7; stroke-dasharray: 1 20; stroke-linecap: round; stroke-linejoin: round; }
.ball { stroke: var(--ball-edge); stroke-width: 2.5; }
.ball-cue { fill: var(--ball-cue); }
.ball-1 { fill: var(--ball-1); }
.ball-2 { fill: var(--ball-2); }
.ball-3 { fill: var(--ball-3); }
.ball-4 { fill: var(--ball-4); }
.pj-btn rect { fill: color-mix(in srgb, var(--proj) 10%, transparent); stroke: var(--proj); stroke-width: 5; }
.pj-btn text, .pj-text { fill: var(--proj); font: 600 46px var(--sans); text-anchor: middle; letter-spacing: 1px; }
.pj-score { fill: var(--zone-y); font: 800 74px var(--sans); text-anchor: middle; }

/* hero animation states (bwise.js sets them; at rest everything is visible) */
.anim-trail { fill: none; stroke: #ffffff; stroke-opacity: .55; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 20; }
.hero-table .pj-score { opacity: 0; transition: opacity .35s; }
.hero-table.is-done .pj-score { opacity: 1; }
.hero-table.is-done .pj-zone { animation: zone-hit 1.1s ease-out 1; }
@keyframes zone-hit { 0% { stroke-width: 9; } 35% { stroke-width: 22; } 100% { stroke-width: 9; } }

/* ---- trust strip -------------------------------------------------------- */

.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-list {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center;
  list-style: none; margin: 0; padding: 18px 0;
}
.trust-list li, .trust-list a {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.trust-list a:hover { color: var(--accent-ic); text-decoration: underline; }
.trust-list .ic { width: 18px; height: 18px; color: var(--accent-ic); }
@media (max-width: 640px) { .trust-list { gap: 12px 22px; justify-content: flex-start; } }

/* ---- bands, cards, steps ------------------------------------------------ */

.band { padding: clamp(32px, 3.6vw, 52px) 0; }
.band.alt { background: var(--bg-alt); }
.band-head { max-width: 860px; margin-bottom: 24px; }
.band-head h2 { margin-bottom: .35em; }
.band-head > .lead { max-width: 74ch; }
.lead { font-size: 1.09rem; color: var(--muted); }
.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards.c3, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards.c2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .cards.c3, .cards.c4 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--sh); min-width: 0;
}
.card h3 { margin-bottom: .45em; font-size: 1.09rem; }
.card p { margin: 0; font-size: .96rem; color: var(--muted); }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 15px;
  background: var(--brand-wash); color: var(--brand); border-radius: 9px;
}
.card .card-word {
  margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ic);
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 11px; margin-bottom: .62em; align-items: flex-start; }
.ticks .ic { width: 19px; height: 19px; margin-top: 4px; color: var(--accent-ic); stroke-width: 2.6; }

.how { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
@media (max-width: 940px) { .how { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--bg); font-weight: 700; font-size: 1rem;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

.shot { margin: 0; min-width: 0; }
.shot img {
  width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--sh);
}
.shot figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* the drawing of the box above the table (build_site.how_svg): 1 unit = 1 cm */
.hw-fig .hw {
  display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--sh);
}
.hw-ceil { stroke: var(--line); stroke-width: 1.2; }
.hw-cable { stroke: var(--muted); stroke-width: .7; }
.hw-beam { fill: var(--proj); opacity: .34; }
.hw-view { stroke: var(--brand); stroke-width: .7; stroke-dasharray: 3 2.4; }
.hw-legs { fill: var(--wood-edge); }
.hw-wood { fill: var(--wood); }
.hw-cloth { fill: var(--felt); }
.hw-zone { stroke: var(--zone-g); stroke-width: 1.4; stroke-linecap: round; }
.hw-b0 { fill: var(--ball-cue); stroke: var(--ball-edge); stroke-width: .4; }
.hw-b1 { fill: var(--ball-1); stroke: var(--ball-edge); stroke-width: .4; }
.hw-b2 { fill: var(--ball-2); stroke: var(--ball-edge); stroke-width: .4; }
.hw-box { fill: #16302a; stroke: #2c4a42; stroke-width: .8; }
.hw-pc { fill: none; stroke: #7fa497; stroke-width: .7; stroke-dasharray: 2 1.4; }
.hw-led { fill: #fff3d2; }
.hw-proj { fill: #2a4a41; }
.hw-lens, .hw-cam { fill: #0b1513; stroke: var(--proj); stroke-width: .8; }
.hw-dim, .hw-ext { stroke: var(--muted); stroke-width: .6; }
.hw-ext { stroke-dasharray: 1.6 1.6; }
.hw-arh { fill: var(--muted); }
.hw-t { font: 700 7px/1 system-ui, sans-serif; fill: var(--muted); }
.hw-lead { stroke: var(--brand); stroke-width: .7; }
.hw-n { fill: var(--brand); }
.hw-nt { font: 700 7.6px/1 system-ui, sans-serif; fill: var(--bg); }

/* ---- levels and drills -------------------------------------------------- */

.level { display: flex; flex-direction: column; gap: 14px; }
.level h3 { margin: 0; }
.level-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 100px; background: var(--brand-wash);
  color: var(--brand-dark); font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.level-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.level-facts {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem;
}
@media (max-width: 520px) { .level-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.level-facts dt { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.level-facts dd { margin: 2px 0 0; color: var(--text); font-weight: 600; line-height: 1.4; }
.level .drill-svg { border-radius: 8px; }
.level figure { margin: 0; }
.level figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.level figcaption b { color: var(--ink); font-weight: 650; }
.skills-h { margin: 30px 0 0; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.skills li {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--card);
  font-size: .86rem; font-weight: 600; color: var(--text);
}
.note { margin-top: 18px; font-size: .92rem; color: var(--muted); max-width: 86ch; }

/* ---- history ------------------------------------------------------------ */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.split .drill-svg { filter: drop-shadow(0 14px 26px rgba(8,30,24,.18)); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 12px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); }
.legend i.ok { background: color-mix(in srgb, var(--zone-g) 40%, transparent); border-color: #2fae5e; }
.legend i.wait { border-style: dashed; border-color: var(--muted); }
.place-ok { fill: color-mix(in srgb, var(--zone-g) 22%, transparent); stroke: var(--zone-g); stroke-width: 8; }
.place-wait { fill: none; stroke: var(--proj); stroke-width: 7; stroke-dasharray: 14 10; }
.was { fill: none; stroke: #ffffff; stroke-opacity: .55; stroke-width: 5; stroke-dasharray: 10 9; }
.moved { stroke: var(--proj); stroke-width: 6; fill: none; marker-end: url(#pj-arrow); opacity: .9; }

/* ---- league and status -------------------------------------------------- */

.soon {
  display: inline-block; margin-left: 10px; vertical-align: middle; padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--accent-ic); color: var(--accent-ic);
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--brand); background: var(--card); margin-top: 1px; }
.timeline .is-done .dot { background: var(--brand); box-shadow: inset 0 0 0 5px var(--card); }
.timeline .is-now .dot { border-color: var(--accent-ic); box-shadow: inset 0 0 0 6px var(--card); background: var(--accent-ic); }
.timeline h3 { margin: 0 0 .2em; font-size: 1.05rem; }
.timeline .when { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; }
.status { max-width: 760px; }
/* wide screens: the four stages side by side, the line running across */
@media (min-width: 941px) {
  .status { max-width: none; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding-bottom: 0; }
  .timeline li::before { left: 34px; right: -22px; top: 13px; bottom: auto; width: auto; height: 2px; }
}

/* ---- call to action, contact ------------------------------------------- */

.cta { background: var(--deep); color: var(--on-deep); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; padding-top: clamp(32px, 3.6vw, 48px); padding-bottom: clamp(32px, 3.6vw, 48px); align-items: start; }
@media (max-width: 900px) { .cta-in { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { color: var(--on-deep-h); margin-bottom: .3em; }
.cta p { color: var(--on-deep); max-width: 62ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hq {
  margin-top: 22px; padding: 16px 18px; border: 1px solid var(--on-deep-line); border-radius: var(--r);
  background: rgba(255,255,255,.03); max-width: 420px;
}
.hq p { margin: 0; }
.hq .role { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.hq .who { margin: 2px 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--on-deep-h); }
.hq .addr { font-size: .93rem; }
.hq .how { margin-top: 6px; font-size: .95rem; }
.hq a { color: var(--on-deep-link); }
.hq a:hover { color: var(--on-deep-h); }

/* the enquiry form: a light card on the dark band; posts to wise-t.com/forms/bwise.php */
.enquiry-wrap { min-width: 0; }
.enquiry {
  background: var(--card); color: var(--text); border: 1px solid var(--on-deep-line); border-radius: var(--r); padding: 22px 22px 20px;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
.enquiry h3 { margin: 0 0 .2em; color: var(--ink); }
.enquiry .hint { margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 520px) { .frow { grid-template-columns: minmax(0, 1fr); } }
.fld { margin-bottom: 14px; min-width: 0; }
.fld label { display: block; margin-bottom: 5px; font-size: .84rem; font-weight: 700; color: var(--ink); }
.req-star { color: var(--accent-ic); }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry select, .enquiry textarea {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .6em .75em;
}
.enquiry textarea { resize: vertical; min-height: 7.5em; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 16px; font-size: .88rem; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.fsend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fsend .req { margin: 0; font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* the answer of the handler: #sent or #send-failed in the address shows its note */
.form-note { display: none; margin: 0 0 16px; padding: 11px 14px; border-radius: 8px; font-size: .93rem; line-height: 1.5; }
.form-note:target { display: block; }
.form-note.is-ok { background: var(--brand-wash); color: var(--ink); border: 1px solid var(--brand-soft); }
.form-note.is-bad { background: rgba(169,72,26,.10); color: var(--ink); border: 1px solid var(--accent-ic); }
.form-note a { color: var(--brand); font-weight: 600; }
.cta .wise-rc-legal { margin: 12px 2px 0; font-size: .8rem; line-height: 1.5; color: var(--on-deep); max-width: none; }
.cta .wise-rc-legal a { color: var(--on-deep-link); text-decoration: underline; }
.sel { user-select: all; -webkit-user-select: all; }

/* ---- footer ------------------------------------------------------------- */

.site-foot { background: var(--deep); color: var(--on-deep); font-size: .93rem; border-top: 1px solid var(--on-deep-line); }
.site-foot a { color: var(--on-deep-link); text-decoration: none; }
.site-foot a:hover { color: var(--on-deep-h); text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 46px; padding-top: 48px; padding-bottom: 34px; }
@media (max-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.fbrand .brand { color: var(--peach); margin-bottom: 14px; }
.fbrand .brand:hover { color: var(--peach); }
.fbrand p { max-width: 46ch; line-height: 1.6; margin: 0; }
.fcontact { list-style: none; margin: 18px 0 0; padding: 0; }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; line-height: 1.5; }
.fcontact .ic { width: 17px; height: 17px; margin-top: 4px; color: var(--peach); }
.fcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 560px) { .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fcol h2 { font-size: .81rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-h); margin-bottom: 14px; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: 9px; }
/* the Wise products under the columns, as on wise-tt.com: one card each, BWise outlined */
.fprods {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding-top: 20px; padding-bottom: 22px; border-top: 1px solid var(--on-deep-line);
}
.fprods h2 { font-size: .81rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-h); margin: 0; }
.fprods ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; flex: 1 1 520px; }
.fprods li { flex: 1 1 190px; }
.fprods a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px; line-height: 1.3;
}
.fprods a:hover, .fprods a:focus-visible { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); text-decoration: none; }
.fprods a.here { border-color: var(--peach); }
.fprods b { color: #fff; font-weight: 600; }
.fprods span { font-size: .82rem; color: var(--on-deep); }
@media (max-width: 460px) { .fprods li { flex-basis: 100%; } }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--on-deep-line); font-size: .87rem;
}
.foot-base p { margin: 0; }
.fmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; list-style: none; margin: 0; padding: 0; }
.fmotion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fmotion-sw { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.fmotion-sw button {
  font: inherit; font-size: .82rem; line-height: 1.25; color: var(--on-deep-link);
  background: none; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.fmotion-sw button:hover { color: var(--on-deep-h); }
.fmotion-sw button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: var(--on-deep-h); }
.fmotion-note { font-size: .82rem; color: var(--on-deep); }

@media print {
  .site-head, .site-foot, .cta, .skip { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .band { padding: 12pt 0; }
}
