/* XYZ Capital - the look and feel of the current site (xyz-capital.xyz): light Cormorant headlines, Syne text,
   (dark sections: warm charcoal with a soft gold glow instead of the old near-black - the owner's choice, 19 Nov 2026)
   DM Mono labels, small uppercase tracked buttons, hairline grids, a lot of air. Sections alternate light and dark.
   Every section is .sec.light or .sec.dark; components read the section's variables, so they work on both. */
@font-face{font-family:"Cormorant Garamond";font-weight:300;font-style:normal;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-weight:300;font-style:italic;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-weight:400;font-style:italic;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-weight:600;font-style:normal;font-display:swap;src:url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2")}
/* Running text is Inter (the owner, 20 Nov 2026: the g of Syne was hard to read). Syne stays for what is set in
   capitals: buttons, the menu, the "more" links (--label). */
@font-face{font-family:"Inter";font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Syne";font-weight:600;font-display:swap;src:url(fonts/syne-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Syne";font-weight:700;font-display:swap;src:url(fonts/syne-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"DM Mono";font-weight:400;font-display:swap;src:url(fonts/dm-mono-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"DM Mono";font-weight:500;font-display:swap;src:url(fonts/dm-mono-latin-500-normal.woff2) format("woff2")}

:root{--gold:#B8922A;--gold-hi:#D4A83A;--ink:#08060A;--serif:"Cormorant Garamond",Georgia,serif;--sans:Inter,"Segoe UI",system-ui,sans-serif;--label:Syne,"Segoe UI",system-ui,sans-serif;--mono:"DM Mono",Consolas,monospace;--wrap:1140px;--pad:32px}
.light{--bg:#F7F5F0;--bg2:#FFFFFF;--bg3:#F0EDE6;--fg:#12100A;--dim:#3D3A32;--mute:#6E685E;--line:rgba(120,100,60,.18);--line2:rgba(120,100,60,.36);--accent:#B8922A;--accent-fg:#86681A;--good:#1F6B45;--bad:#B3261E;--stripe1:#EFECE4;--stripe2:#E8E4DB;--grid:rgba(184,146,42,.09)}
.dark{--bg:#191612;--bg2:#221E18;--bg3:#1D1A15;--fg:#F2EDE4;--dim:#C6BFB3;--mute:#9E968A;--line:rgba(201,168,76,.20);--line2:rgba(201,168,76,.44);--accent:#C9A84C;--accent-fg:#D9B95C;--good:#6FC79A;--bad:#F09A94;--stripe1:#24201A;--stripe2:#2A251E;--grid:rgba(201,168,76,.06)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);font-size:16px;line-height:1.75;background:#191612;color:#F2EDE4;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;display:block}
/* lining figures: the serif's old-style "1" and "0" read as "I" and "o" in prices and counts */
h1,h2,h3,h4{font-family:var(--serif);font-weight:300;margin:0;line-height:1.08;color:var(--fg);font-variant-numeric:lining-nums}
h1{font-size:clamp(44px,6.6vw,88px);line-height:.98}
h2{font-size:clamp(34px,4.6vw,58px)}
h3{font-size:clamp(25px,2.5vw,31px);font-weight:400;line-height:1.15}
h1 em,h2 em,h3 em{font-style:italic;color:var(--accent)}
p{margin:0}
a{color:var(--accent-fg);text-underline-offset:3px}
a:hover{color:var(--fg)}
:focus-visible{outline:2px solid var(--gold-hi);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;background:var(--gold);color:#fff;padding:12px 18px;z-index:100;font-weight:700}
.skip:focus{left:12px;top:12px}

.sec{background:var(--bg);color:var(--fg);position:relative}
.sec.dark{background:radial-gradient(1100px 520px at 50% -12%,rgba(201,168,76,.15),transparent 62%),var(--bg)}
.sec.alt{background:var(--bg3);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:clamp(64px,8.5vw,112px) var(--pad)}
.wrap.tight{padding-top:clamp(40px,5vw,64px);padding-bottom:clamp(40px,5vw,64px)}
.stack{display:flex;flex-direction:column;gap:18px}
.stack.l{gap:44px}
.grid{display:grid;gap:20px}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:clamp(32px,5vw,64px);align-items:center}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:stretch}
.g5{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.lead{font-size:clamp(16px,1.3vw,17.5px);line-height:1.8;color:var(--dim);max-width:60ch}
.body{color:var(--dim);line-height:1.8;max-width:66ch;font-size:15.5px}
.small{font-size:13px;color:var(--mute);line-height:1.7}
.eyebrow{font-family:var(--mono);font-size:11.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--accent-fg)}
.eyebrow.q{color:var(--mute)}
.mono{font-family:var(--mono)}
.head{max-width:760px}
.row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.between{justify-content:space-between}
/* centred section heading with the short gold line, as on the current site */
.center{text-align:center;align-items:center}
.center .lead,.center .body,.center.head{margin-left:auto;margin-right:auto}
.gold-line{display:block;width:48px;height:1px;background:var(--accent);margin:6px auto 0}

/* buttons: small uppercase tracked text, sharp corners, 48 px tall for touch */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 34px;font:700 12px var(--label);letter-spacing:.18em;text-transform:uppercase;text-decoration:none;border-radius:0;border:1px solid transparent;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .15s;text-align:center}
.btn:hover{transform:translateY(-1px)}
.btn-gold,.btn-ink{background:#B8922A;color:#fff;text-shadow:0 0 1px rgba(0,0,0,.25)}
.btn-gold:hover,.btn-ink:hover{background:#9E7C20;color:#fff}
.dark .btn-gold,.dark .btn-ink{background:#C9A84C;color:#14100A;text-shadow:none}
.dark .btn-gold:hover,.dark .btn-ink:hover{background:#E8C96A;color:#14100A}
.btn-ghost{border-color:var(--line2);color:var(--accent-fg);background:transparent}
.btn-ghost:hover{background:rgba(184,146,42,.08);color:var(--accent-fg);border-color:var(--accent)}
.more{font:700 12px var(--label);letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:var(--accent-fg);display:inline-flex;align-items:center;min-height:44px}
.more:hover{color:var(--fg)}

.card{background:var(--bg2);border:1px solid var(--line);padding:clamp(26px,3vw,40px) clamp(22px,2.6vw,32px);display:flex;flex-direction:column;gap:14px;position:relative}
.card.gold{border-color:var(--line2)}
.card.gold::before{content:"";position:absolute;top:-1px;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent)}
.card.push .more,.card.push .btn{margin-top:auto;align-self:flex-start}
.tag{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;padding:6px 12px;border:1px solid var(--line2);color:var(--dim);align-self:flex-start}
.tag.live{color:var(--good);border-color:var(--good)}
.tag.live::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--good);margin-right:9px;vertical-align:1px}
.num{font-family:var(--serif);font-weight:300;font-size:clamp(38px,4.4vw,56px);line-height:1;font-variant-numeric:lining-nums}
.good{color:var(--good)}.bad{color:var(--bad)}
.rule{border:0;border-top:1px solid var(--line);margin:0}
ul.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
ul.ticks li{padding-left:26px;position:relative;color:var(--dim);font-size:15px;line-height:1.6}
ul.ticks li::before{content:"";position:absolute;left:0;top:.8em;width:12px;height:1px;background:var(--accent)}
ul.ticks li strong{color:var(--fg);font-weight:600}
.kv{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid var(--line);font-size:15px}
.kv span{color:var(--dim)}.kv b{font-family:var(--mono);font-weight:500;text-align:right}
table.t{width:100%;border-collapse:collapse;font-size:15px}
table.t th{font:500 11.5px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--mute);text-align:left;padding:14px;border-bottom:1px solid var(--line2)}
table.t td{padding:15px 14px;border-bottom:1px solid var(--line);color:var(--dim);vertical-align:top}
table.t td.n,table.t th.n{text-align:right;font-family:var(--mono)}
.scrollx{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ph{background:repeating-linear-gradient(135deg,var(--stripe1) 0 14px,var(--stripe2) 14px 28px);border:1px dashed var(--line2);display:flex;align-items:center;justify-content:center;color:var(--mute);font:12px var(--mono);text-align:center;padding:16px}
.note{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
/* the hidden spam-trap field of the forms: off screen, never a tap target */
input[name=website]{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* top bar: always dark, as on the current site */
.top{position:sticky;top:0;z-index:50;background:#15120E;border-bottom:1px solid rgba(201,168,76,.14);color:#F2EDE4}
.top nav{max-width:1320px;margin:0 auto;padding:10px var(--pad);display:flex;align-items:center;gap:20px;min-height:72px}
.brand{font-family:var(--serif);font-size:25px;font-weight:600;color:#F2EDE4;text-decoration:none;letter-spacing:.1em;white-space:nowrap;display:inline-flex;align-items:center;gap:.3em;min-height:44px}
.brand span{color:#C9A84C;font-style:italic;font-weight:400;letter-spacing:.04em}
.links{display:flex;gap:6px;margin-left:auto;align-items:center}
.links a{font:600 11.5px var(--label);letter-spacing:.17em;text-transform:uppercase;color:#A8A196;text-decoration:none;padding:14px 10px;min-width:44px;text-align:center;transition:color .2s}
.links a:hover,.links a[aria-current=page]{color:#C9A84C}
.links .btn{color:#14100A;background:#C9A84C;min-height:42px;padding:0 20px;margin-left:10px;font-weight:700;letter-spacing:.15em}
.links .btn:hover{background:#E8C96A;color:#14100A}
/* Analytics | Client area: one outlined gold box with two halves (the owner's pick "4", 3 Dec 2026; live with the
   dashboard opening). On laptops (1241-1400 wide) the tabs move a little closer together, so the bar stays on one
   line. */
.links .pair{display:inline-flex;align-items:stretch;border:1px solid rgba(201,168,76,.55);min-height:42px;margin-left:6px}
.links .pair a{white-space:nowrap;display:inline-flex;align-items:center;padding:0 14px;color:#E8C96A}
.links .pair a+a{border-left:1px solid rgba(201,168,76,.4);color:#F2EDE4}
.links .pair a:hover{background:rgba(201,168,76,.08)}
.links .pair a[aria-current=page]{background:rgba(201,168,76,.14);color:#E8C96A}
@media (min-width:1241px) and (max-width:1400px){.links:has(.pair){gap:4px}.links:has(.pair)>a:not(.btn){padding:14px 9px}.links .pair a{padding:0 12px}.links:has(.pair) .btn{padding:0 18px;margin-left:6px}}
.burger{display:none;margin-left:auto;width:48px;height:48px;background:transparent;border:1px solid rgba(201,168,76,.4);cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.burger i{display:block;width:20px;height:1.5px;background:#C9A84C;transition:transform .2s,opacity .2s}
.burger[aria-expanded=true] i:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger[aria-expanded=true] i:nth-child(2){opacity:0}
.burger[aria-expanded=true] i:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
@media (max-width:1240px){
  .burger{display:flex}
  /* the menu hangs under the bar and fills the rest of the screen (height set in site.js) */
  .links{display:none;position:absolute;left:0;right:0;top:100%;height:calc(100vh - 73px);background:#15120E;flex-direction:column;align-items:stretch;gap:0;padding:8px var(--pad) 32px;overflow-y:auto;margin:0;border-top:1px solid rgba(201,168,76,.14)}
  .links.open{display:flex}
  .links a{padding:19px 0;font-size:13px;border-bottom:1px solid rgba(201,168,76,.12);text-align:left}
  .links .btn{margin:26px 0 0;border-bottom:0;min-height:52px;font-size:13px}
  /* the Analytics | Client area box: two stacked rows in the menu */
  .links .pair{display:flex;flex-direction:column;margin:14px 0 0}
  .links .pair a{min-height:52px;padding:0 16px}
  .links .pair a+a{border-left:0;border-top:1px solid rgba(201,168,76,.4)}
  body.menu{overflow:hidden}
}

/* hero. Default: left aligned (inner pages). .hero.mid = the centred hero of the homepage, with the faint grid. */
.hero .wrap{padding-top:clamp(56px,7.5vw,104px);padding-bottom:clamp(64px,8vw,112px)}
.hero h1{max-width:14ch}
.hero-art{position:relative}
.hero.mid{overflow:hidden}
.hero.mid::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:60px 60px;-webkit-mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,#000 20%,transparent 100%);mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,#000 20%,transparent 100%);pointer-events:none}
.hero.mid .wrap{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;padding-top:clamp(64px,9vw,128px);padding-bottom:clamp(64px,8vw,104px)}
.hero.mid h1{max-width:none;font-size:clamp(46px,8vw,108px);line-height:.96;margin:30px 0 22px}
.badge{display:inline-flex;align-items:center;gap:10px;font:11.5px var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--accent-fg);border:1px solid var(--line2);padding:8px 16px}
.badge::before{content:"";width:6px;height:6px;background:var(--accent);border-radius:50%}
.hero-sub{font-size:12px;letter-spacing:.25em;text-transform:uppercase;color:var(--mute);margin-bottom:22px}
.hero.mid .lead{margin-bottom:36px;max-width:56ch}
.hero.mid .row{justify-content:center}
.hero.mid .small{margin-top:28px;max-width:60ch}
/* the introduction video in the hero: one card */
.hero-vid{width:100%;max-width:560px;margin-top:40px}
.hero-vid:empty{display:none}
.hero-vid .stack{align-items:center}
.hero.mid .hero-vid .small{margin-top:0}
/* The home page hero WITH the video (.hero.mid.withvid). The owner, 27 Nov 2026: "when opening the website I want all
   except for the small text directly visible", and of four mock-ups (tools\hero_mockups.py) he chose B: the centred
   headline across the top, on one line; under it the text and the two buttons on the left and the video on the right.
   So everything but the small risk line is on the first screen. On a low screen (a small laptop) the headline and the
   spaces get a little smaller; on a phone and a narrow window it is the centred column again, a little tighter. */
@media (min-width:901px){
  .hero.mid.withvid .wrap{max-width:1320px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:56px;justify-items:center;align-items:start;padding-top:clamp(34px,4.2vw,60px);padding-bottom:clamp(40px,5vw,72px)}
  .hero.mid.withvid .badge,.hero.mid.withvid h1,.hero.mid.withvid .hero-sub{grid-column:1 / -1}
  .hero.mid.withvid h1{font-size:clamp(40px,5.8vw,94px);margin:22px 0 14px}
  .hero.mid.withvid h1 br{display:none}
  .hero.mid.withvid h1 em::before{content:" "}
  .hero.mid.withvid .hero-sub{margin-bottom:38px}
  .hero.mid.withvid .lead,.hero.mid.withvid .row,.hero.mid.withvid .wrap>.small{grid-column:1;justify-self:end;text-align:left;width:100%;max-width:520px}
  .hero.mid.withvid .lead{margin:6px 0 28px}
  .hero.mid.withvid .row{justify-content:flex-start}
  .hero.mid.withvid .wrap>.small{margin-top:24px}
  .hero.mid.withvid .hero-vid{grid-column:2;grid-row:4 / span 3;justify-self:start;max-width:540px;margin-top:0}
  .hero.mid.withvid .hero-vid .stack{align-items:flex-start}
}
@media (min-width:901px) and (max-height:760px){
  .hero.mid.withvid .wrap{padding-top:22px;padding-bottom:36px}
  .hero.mid.withvid h1{font-size:clamp(38px,4.6vw,64px);margin:14px 0 8px}
  .hero.mid.withvid .hero-sub{margin-bottom:22px}
  .hero.mid.withvid .lead{margin-bottom:20px}
  .hero.mid.withvid .hero-vid{max-width:440px}
}
@media (max-width:900px){
  .hero.mid.withvid .wrap{padding-top:28px}
  .hero.mid.withvid h1{margin:20px 0 12px}
  .hero.mid.withvid .hero-sub{margin-bottom:14px}
  .hero.mid.withvid .lead{margin-bottom:24px}
  .hero.mid.withvid .hero-vid{margin-top:22px}
}

/* the bar of plain facts under the hero */
.statbar{display:flex;justify-content:center;flex-wrap:wrap;background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.statbar div{flex:1 1 150px;max-width:240px;text-align:center;padding:30px 20px;border-right:1px solid var(--line)}
.statbar div:last-child{border-right:0}
.statbar b{font-family:var(--serif);font-weight:300;font-size:44px;line-height:1;color:var(--accent);display:block;font-variant-numeric:lining-nums}
.statbar span{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute);margin-top:8px;display:block;line-height:1.5}
@media (max-width:640px){.statbar div{flex-basis:50%;max-width:50%;padding:24px 12px;border-bottom:1px solid var(--line)}.statbar div:nth-child(2n){border-right:0}.statbar div:nth-last-child(-n+2){border-bottom:0}.statbar b{font-size:38px}}

/* hairline grids: cells share 1 px lines, as the tier cards of the current site */
.hair{display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
.hair>*{background:var(--bg2);border:0}
.hair.c4{grid-template-columns:repeat(4,1fr)}.hair.c2{grid-template-columns:repeat(2,1fr)}
@media (max-width:1040px){.hair.c4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.hair.c4,.hair.c2{grid-template-columns:1fr}}
.tier{padding:40px 30px;display:flex;flex-direction:column;position:relative}
.tier.on{background:var(--bg3)}
.tier.on::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent)}
.tier .lab{font:11.5px var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--accent-fg);margin-bottom:16px}
.tier .big{font-family:var(--serif);font-weight:300;font-size:42px;line-height:1;color:var(--fg);font-variant-numeric:lining-nums}
.tier .per{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin:8px 0 26px;line-height:1.5}
.tier h3{font-size:25px;margin:0 0 4px;font-weight:600;line-height:1.2}
.tier ul{list-style:none;margin:22px 0 0;padding:22px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px;flex:1}
.tier li{font-size:14.5px;line-height:1.55;color:var(--dim);padding-left:22px;position:relative}
.tier li::before{content:"";position:absolute;left:0;top:.75em;width:10px;height:1px;background:var(--accent)}
.tier .btn{margin-top:30px;width:100%;padding:0 12px;font-size:11.5px}
/* live figures on the dark band */
.live2{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);width:100%;max-width:880px}
.live2>div{background:var(--bg2);padding:40px 28px;text-align:center}
.live2 .num{display:block;margin:12px 0 14px}
@media (max-width:640px){.live2{grid-template-columns:1fr}}
.live2.n1{grid-template-columns:1fr;max-width:460px}
.live2.n3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1180px}
.live2 .btn{display:flex;width:max-content;max-width:100%;margin:18px auto 0;min-height:44px;padding:0 20px}
.live2 .tag{display:inline-block;margin-bottom:18px}
.live2 .note{display:block}
/* the system's line in a home tile: the picture carries the tile, its dates stand in the one line of text under it */
.live2 .xf-curve{margin:4px 0 16px;gap:0;text-align:left}
.live2 .xf-curve svg{height:clamp(120px,13vw,170px)}
.live2 .xf-curve figcaption{display:none}
.xr-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:900px){.live2.n3{grid-template-columns:1fr;max-width:560px}}
/* numbered points: the "how we test" band */
.points{display:flex;flex-direction:column;gap:12px}
.point{display:flex;gap:18px;align-items:baseline;background:var(--bg2);border:1px solid var(--line);padding:16px 20px}
.point i{font:500 12px var(--mono);font-style:normal;letter-spacing:.14em;color:var(--accent-fg);flex:none}
.point span{font-size:15px;line-height:1.6;color:var(--dim)}
.point strong{color:var(--fg);font-weight:600}
.hpanel{padding:clamp(32px,4vw,48px) clamp(24px,3.4vw,44px);display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.hpanel .body{flex:1}
.hpanel .btn{margin-top:10px}

.vid{position:relative;aspect-ratio:16/9;background:#221E18;border:1px solid var(--line);overflow:hidden;display:block;width:100%;padding:0;cursor:pointer;color:#F2EDE4}
.vid img{width:100%;height:100%;object-fit:cover}
/* play button in the corner, so it never covers the title on the thumbnail */
.vid .play{position:absolute;right:12px;bottom:10px;width:48px;height:48px;border-radius:50%;background:#C9A84C;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.vid .play svg{width:18px;height:18px}
.vid:hover .play{transform:scale(1.06)}
.vid .len{position:absolute;right:12px;top:10px;font:12px var(--mono);background:rgba(21,18,14,.84);padding:5px 9px;color:#F2EDE4}
.vid-t{font-size:clamp(21px,2vw,24px);font-weight:400}
/* the title under a video card leads to the page of that video; the padding makes it a full-height tap target without moving anything */
.vid-t a{color:inherit;text-decoration:none;display:block;padding:9px 0;margin:-9px 0}
.vid-t a:hover{color:var(--accent-fg)}
/* A page with one video on it (made by build.mjs: /videos/<name>/ and the page of each system): a short top, the video
   itself, then its spoken text scene by scene in two columns (one on a phone) */
.watch-top .wrap{padding-bottom:clamp(36px,4.5vw,56px)}
.watch-top h1{max-width:20ch;font-size:clamp(38px,5vw,68px);line-height:1.02}
.watch{max-width:980px;margin:0 auto;gap:14px}
.watch video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border:1px solid var(--line)}
.saids{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 56px}
.said{gap:10px}
.said h3{font-size:clamp(22px,2.2vw,27px)}
.saids>.small{grid-column:1 / -1;max-width:70ch}
.h2s{font-size:clamp(28px,3.4vw,40px)}
@media (max-width:820px){.saids{grid-template-columns:1fr;gap:32px}}
/* the backtest video of the same system: a small second player row under a strategy video */
.vid-bt{display:grid;grid-template-columns:116px 1fr;gap:14px;align-items:center;width:100%;padding:0;margin-top:4px;background:var(--bg2);border:1px solid var(--line);cursor:pointer;color:var(--fg);text-align:left;font:inherit}
.vid-bt img{width:116px;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.vid-bt span{display:flex;flex-direction:column;gap:3px;padding:6px 12px 6px 0}
.vid-bt b{font-weight:500;font-size:15px;line-height:1.3}
.vid-bt i{font:normal 12px var(--mono);color:var(--mute);letter-spacing:.04em}
.vid-bt:hover{border-color:var(--accent)}
/* a band that straddles two sections (inner pages) */

.livebar{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:clamp(18px,3vw,36px);align-items:center}
@media (max-width:820px){.livebar{grid-template-columns:1fr}}
.steps{list-style:none;margin:0;padding:0}
.steps li{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--accent);padding-top:18px}
.phone{width:min(100%,330px);margin:0 auto;border:1px solid var(--line2);border-radius:34px;background:var(--bg2);padding:22px 16px 26px}
.phone .hd{font-weight:600;font-size:15px;padding:4px 8px 14px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center}
.phone .hd i{width:30px;height:30px;border-radius:50%;background:var(--accent);display:block}
.msg{background:var(--bg3);border-left:2px solid var(--accent);padding:12px 14px;margin-top:12px;font-size:14px;line-height:1.5;color:var(--fg)}
.msg small{display:block;color:var(--mute);font-size:12px;margin-top:4px}
.msg.r{border-color:#E07A6A}.msg.g{border-color:#4CAF7D}
.chart{background:var(--bg2);border:1px solid var(--line);padding:clamp(16px,2vw,28px)}
.legend{display:flex;flex-wrap:wrap;gap:8px 20px;font:12px var(--mono);letter-spacing:.06em;margin-top:12px;color:var(--dim)}
.legend i{display:inline-block;width:18px;height:3px;vertical-align:middle;margin-right:7px}

/* forms */
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.field .hint{font-size:13px;color:var(--mute)}
.field input,.field select,.field textarea{font:16px var(--sans);min-height:50px;padding:12px 14px;background:var(--bg2);color:var(--fg);border:1px solid var(--line2);border-radius:0;width:100%}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--gold-hi);outline-offset:1px;border-color:var(--accent)}
.field .err{font-size:13px;color:var(--bad);display:none}
.field.bad .err{display:block}.field.bad input,.field.bad select{border-color:var(--bad)}
.check,.field label.check{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--dim);line-height:1.6}
.check input{width:22px;height:22px;margin-top:1px;flex:none;accent-color:#B8922A}
form .ts{min-height:65px}
.formnote{padding:14px 16px;border:1px solid var(--line2);font-size:14px;color:var(--dim);display:none}
.formnote.show{display:block}.formnote.ok{border-color:var(--good);color:var(--fg)}.formnote.fail{border-color:var(--bad);color:var(--fg)}

/* reviews written in the client area (assets\reviews.js: the home page and /reviews/) */
.rgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;width:100%;align-items:stretch}
.rcard{margin:0;display:flex;flex-direction:column;gap:14px;padding:26px 24px;border:1px solid var(--line);background:var(--bg2);text-align:left;min-width:0}
.rcard .rtop{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rcard blockquote{margin:0;font-size:16px;line-height:1.65;color:var(--fg);white-space:pre-line;overflow-wrap:anywhere}
.rcard figcaption{display:flex;flex-direction:column;gap:2px;margin-top:auto;font-size:15px;color:var(--fg)}
.rstars{font-size:20px;letter-spacing:2px;color:var(--gold);line-height:1;white-space:nowrap}
.rstars i{font-style:normal;color:var(--line2)}
.rsum{font:500 15px var(--mono);color:var(--dim);margin:0}

[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* web-feed data: choice buttons, bars per EA, the result curve, small figure grids (results, client area, admin) */
.seg{min-height:48px;padding:0 18px;font:600 15px var(--sans);background:transparent;color:var(--dim);border:1px solid var(--line2);border-radius:2px;cursor:pointer}
.seg:hover{border-color:var(--gold)}
.seg[aria-pressed=true]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.segs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bars{gap:16px}
.bars .bar{display:grid;grid-template-columns:140px minmax(0,1fr) 112px;gap:12px;align-items:center;font-size:15px;color:var(--dim)}
.bars .bar .track{display:block;height:10px;background:var(--line)}
.bars .bar .fill{display:block;height:10px;background:var(--good)}
.bars .bar .v{font:14px var(--mono);text-align:right;color:var(--good)}
.bars .bar.neg .fill{background:var(--bad)}
.bars .bar.neg .v{color:var(--bad)}
.xf-curve{margin:0;display:flex;flex-direction:column;gap:10px}
.xf-curve svg{display:block;width:100%;height:clamp(150px,24vw,250px);border-bottom:1px solid var(--line)}
.xf-plot{position:relative;touch-action:pan-y;cursor:crosshair}
.xf-plot .xf-x{position:absolute;top:0;bottom:1px;width:1px;background:var(--line2);display:none;pointer-events:none}
.xf-plot .xf-dot{position:absolute;width:11px;height:11px;border-radius:50%;background:var(--accent);border:2px solid var(--bg2);transform:translate(-50%,-50%);display:none;pointer-events:none}
.xf-plot .xf-tip{position:absolute;top:4px;font:12px var(--mono);background:var(--bg);border:1px solid var(--line2);color:var(--fg);padding:5px 9px;white-space:nowrap;display:none;pointer-events:none}
.xf-plot.on .xf-x,.xf-plot.on .xf-dot,.xf-plot.on .xf-tip{display:block}
.xf-curve figcaption{display:flex;justify-content:space-between;gap:10px;font:12px var(--mono);color:var(--mute)}
.kvs{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:18px 22px}
.kvs div{display:flex;flex-direction:column;gap:4px;min-width:0}
.kvs b{font:500 19px/1.3 var(--mono);color:var(--fg);overflow-wrap:anywhere}
.kvs b.good{color:var(--good)}.kvs b.bad{color:var(--bad)}
@media (max-width:900px){
  .bars .bar{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .bars .bar .track{grid-column:1/-1;grid-row:2}
}
@media (max-width:640px){
  .xf-curve figcaption span:nth-child(2){display:none}
}

/* "On this page": a small panel at the left edge on wide screens. One line per labelled section
   (<section data-toc="Label">, built in site.js); the section in view is marked in gold. The panel appears when the first labelled section
   reaches the middle of the screen (on the home page that is the first charcoal section). From 1560px the labels
   are always shown. Between 1280 and 1560px only the lines show and the labels open on hover or keyboard focus.
   Hidden below 1280px (phones and tablets use the menu). */
section[data-toc]{scroll-margin-top:72px}
.onpage{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:40;display:none;flex-direction:column;padding:4px 18px 4px 16px;background:#15120E;border:1px solid rgba(201,168,76,.32);border-left:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.onpage.show{opacity:1;visibility:visible}
.onpage a{display:flex;align-items:center;gap:10px;min-height:40px;min-width:40px;color:#BDB6AB;text-decoration:none;font:11.5px var(--mono);letter-spacing:.14em;text-transform:uppercase;transition:color .15s}
.onpage a[hidden]{display:none}
.onpage a i{position:relative;flex:none;width:28px;height:1px}
.onpage a i::before{content:"";position:absolute;left:0;top:0;height:1px;width:14px;background:currentColor;transition:width .2s}
.onpage a span{white-space:nowrap}
.onpage a:hover{color:#F2EDE4}
.onpage a.on{color:#C9A84C}
.onpage a.on i::before{width:28px}
@media (min-width:1280px){.onpage{display:flex}}
@media (min-width:1280px) and (max-width:1559px){
  .onpage{padding-right:6px}
  .onpage a span{display:none}
  .onpage:hover,.onpage:focus-within{padding-right:18px}
  .onpage:hover a span,.onpage:focus-within a span{display:inline}
}
@media print{.onpage{display:none}}
/* video dialog */
dialog.player{border:0;padding:0;background:#000;width:min(96vw,1200px);max-height:94vh}
dialog.player::backdrop{background:rgba(12,10,8,.88)}
dialog.player video{width:100%;height:auto;max-height:86vh;background:#000}
dialog.player .bar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#15120E;color:#F2EDE4;padding:8px 8px 8px 16px;font-size:14px}
dialog.player button{min-height:44px;min-width:44px;background:transparent;border:1px solid rgba(201,168,76,.4);color:#C9A84C;cursor:pointer;font:700 11.5px var(--label);letter-spacing:.16em;text-transform:uppercase;padding:0 16px}
dialog.msgbox{border:1px solid #C9A84C;padding:32px;background:#221E18;color:#F2EDE4;max-width:min(92vw,460px)}
dialog.msgbox::backdrop{background:rgba(12,10,8,.8)}
dialog.msgbox h3{color:#F2EDE4;margin-bottom:12px}
dialog.msgbox p{color:#BDB6AB;margin-bottom:22px;font-size:15px}
dialog.msgbox .btn{background:#C9A84C;color:#14100A}

.preview-flag{background:#C9A84C;color:#14100A;font:500 11.5px var(--mono);letter-spacing:.1em;text-align:center;padding:7px 12px}
footer.foot{background:#15120E;color:#9E968A;border-top:1px solid rgba(201,168,76,.14);font-size:13px;line-height:1.75}
footer.foot .wrap{padding-top:44px;padding-bottom:44px;display:flex;flex-direction:column;gap:16px}
footer.foot a{color:#BDB6AB;display:inline-flex;align-items:center;min-height:44px;min-width:44px;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none}
footer.foot a:hover{color:#C9A84C}
footer.foot .fl{display:flex;flex-wrap:wrap;gap:4px 28px}

@media (max-width:640px){
  :root{--pad:22px}
  .row .btn{width:100%}
  .brand{font-size:23px}
  .hero h1{max-width:none}
  .btn{padding:0 20px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
