/* Styles carried over from the approved prototype (Micro_Website Humanify). */

:root{
  --tag-bg:#eeeeee; --tag-ink:#3d3d3d;
  --bg:#ffffff; --ink:#000000; --muted:#666666; --faint:#9a9a9a;
  --rule:#e2e2e2; --pill-border:#d0d0d0; --pill-hover:#f6eef4;
  --accent:#5c007c; --on-accent:#ffffff; --link:#c5008d; --focus:#5c007c;
  --panel:#ffffff; --shadow:0 10px 30px rgba(0,0,0,.12);
  color-scheme: light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#111111; --ink:#f2f2f2; --muted:#a3a3a3; --faint:#707070;
    --rule:#2e2e2e; --pill-border:#444444; --pill-hover:#22142a;
    --accent:#8900eb; --on-accent:#ffffff; --link:#ff4fbf; --focus:#b56bff;
    --panel:#1b1b1b; --shadow:0 10px 30px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#111111; --ink:#f2f2f2; --muted:#a3a3a3; --faint:#707070;
  --rule:#2e2e2e; --pill-border:#444444; --pill-hover:#22142a;
  --accent:#8900eb; --on-accent:#ffffff; --link:#ff4fbf; --focus:#b56bff;
  --panel:#1b1b1b; --shadow:0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Public Sans","Helvetica Neue",Arial,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:1240px; margin:0 auto; padding:0 clamp(16px,3.5vw,40px)}

/* Header + hamburger */
.site-header{position:relative; z-index:20}
.site-header .wrap{display:flex; justify-content:space-between; align-items:center; gap:12px; height:64px}
.menu{position:relative}
.menu-btn{
  appearance:none; border:1px solid var(--pill-border); background:transparent; color:var(--ink);
  width:40px; height:40px; border-radius:10px; cursor:pointer; display:grid; place-items:center;
}
.menu-btn:hover{border-color:var(--accent)}
.menu-btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.menu-btn svg{width:20px; height:20px}
.menu-btn .x{display:none}
.menu-btn[aria-expanded="true"] .bars{display:none}
.menu-btn[aria-expanded="true"] .x{display:block}
.menu-panel{
  position:absolute; right:0; top:calc(100% + 8px); min-width:220px;
  background:var(--panel); border:1px solid var(--rule); border-radius:12px;
  box-shadow:var(--shadow); padding:6px; margin:0; list-style:none;
}
.menu-panel[hidden]{display:none}
.menu-panel a{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px; border-radius:8px; color:var(--ink); text-decoration:none;
  font-size:15px; font-weight:600;
}
.menu-panel a:hover{background:var(--pill-hover)}
.menu-panel a:focus-visible{outline:2px solid var(--focus); outline-offset:-2px}
.menu-panel a[aria-current="page"]{color:var(--accent)}
.menu-panel a[aria-current="page"]::after{content:""; width:7px; height:7px; border-radius:50%; background:var(--link)}

/* Page head */
main.wrap{padding-top:8px; padding-bottom:56px}
h1{font-size:clamp(28px,3vw,40px); font-weight:800; letter-spacing:-.015em; margin:0 0 16px; line-height:1.05}
.lede{color:var(--muted); font-size:16px; line-height:1.5; max-width:640px; margin:-6px 0 24px}

/* Filters */
.filters{border-top:1px solid var(--rule); border-bottom:1px solid var(--rule)}
.filter-row{display:grid; grid-template-columns:104px 1fr; gap:8px; align-items:start; padding:10px 0}
.filter-row + .filter-row{border-top:1px solid var(--rule)}
.filter-row h2{font-size:15px; font-weight:700; margin:5px 0 0; line-height:1.2}
.pills{display:flex; flex-wrap:wrap; gap:5px}
.pill{
  appearance:none; cursor:pointer; font:inherit; text-decoration:none;
  font-size:12px; font-weight:500; line-height:1;
  color:var(--ink); background:transparent;
  border:1px solid var(--pill-border); border-radius:999px;
  padding:5px 8px; min-height:28px;
  display:inline-flex; align-items:center; gap:4px;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover{background:var(--pill-hover); border-color:var(--accent)}
.pill[aria-pressed="true"],.pill[aria-current="true"]{background:var(--accent); color:var(--on-accent); border-color:var(--accent)}
.pill:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.pill .n{font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums}
.pill[aria-pressed="true"] .n,.pill[aria-current="true"] .n{color:inherit; opacity:.75}
.pill:disabled,.pill.is-disabled{cursor:default; color:var(--faint); border-color:var(--rule); background:transparent}
.pill:disabled .n,.pill.is-disabled .n{color:var(--faint)}

.results{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:10px 0 16px; min-height:22px}
.count{color:var(--muted); font-size:13px}
.reset{
  appearance:none; background:none; border:0; padding:0; cursor:pointer;
  font:inherit; font-size:13px; font-weight:600; color:var(--link);
  text-decoration:underline; text-underline-offset:3px;
}
.reset:focus-visible{outline:2px solid var(--focus); outline-offset:3px}

/* Card grid (shared) */
.grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 16px; list-style:none; margin:0; padding:0}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr)); gap:26px 14px}
.grid.four .title{font-size:17px}
.grid.four .box-title{font-size:15.5px}
.card > a,.card > div{color:inherit; text-decoration:none; display:block}
.card a:focus-visible{outline:2px solid var(--focus); outline-offset:4px; border-radius:12px}
.img{aspect-ratio:16/10; width:100%; overflow:hidden; border-radius:12px}
.img svg,.img img{width:100%; height:100%; display:block; object-fit:cover; transition:transform .5s ease}
.card a:hover .img svg,.card a:hover .img img{transform:scale(1.03)}
.tags{color:var(--muted); font-size:13px; line-height:1.4; margin:8px 0 2px}
.tags span+span::before{content:"|"; margin:0 6px; color:var(--faint)}
.title{font-size:18px; font-weight:700; line-height:1.25; margin:0}

/* Insight cards */
.insight .title{margin-top:10px}
.insight .desc{color:var(--muted); font-size:14px; line-height:1.5; margin:4px 0 6px}
.more{display:inline-flex; align-items:center; gap:6px; color:var(--link); font-size:14px; font-weight:600; text-decoration:none}
.more.read-more{color:var(--ink)}
.card a:hover .read-more{text-decoration:underline; text-underline-offset:3px}
.more:hover{text-decoration:underline; text-underline-offset:3px}
.more:focus-visible{outline:2px solid var(--focus); outline-offset:3px}

.empty{padding:32px 0}
.empty p{margin:0 0 8px; font-size:15px}

@media (max-width:1100px){ .grid.four{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:960px){ .grid,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){
  .filter-row{grid-template-columns:1fr; gap:8px}
  .filter-row h2{margin:0}
  .grid{grid-template-columns:1fr; gap:24px}
}
@media (prefers-reduced-motion: reduce){
  .img svg,.img img,.pill{transition:none}
  .card a:hover .img svg,.card a:hover .img img{transform:none}
}

/* ---------- Images with colour wash ---------- */
.img{position:relative; background:var(--rule)}
.img > img,.img > svg{position:absolute; inset:0}
.img > img.washed{filter:none; object-position:center 35%}

/* ---------- Edit mode ---------- */
.header-tools{display:flex; align-items:center; gap:8px}
.edit-btn{
  appearance:none; cursor:pointer; font:inherit; font-size:13px; font-weight:600;
  height:40px; padding:0 14px; border-radius:10px;
  border:1px solid var(--pill-border); background:transparent; color:var(--ink);
}
.edit-btn:hover{border-color:var(--accent)}
.edit-btn[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
.edit-btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.edit-btn[hidden]{display:none}
.save-status{font-size:12px; color:var(--muted); min-width:60px; text-align:right}
.save-status.err{color:var(--link); font-weight:600}

.edit-banner{
  display:none; margin:0 0 14px; padding:8px 12px; border-radius:10px;
  background:var(--pill-hover); color:var(--ink); font-size:13px; line-height:1.45;
}
body.editing .edit-banner{display:block}

body.editing [contenteditable="true"]{
  outline:1px dashed var(--pill-border); outline-offset:3px; border-radius:4px; cursor:text;
}
body.editing [contenteditable="true"]:hover{outline-color:var(--accent)}
body.editing [contenteditable="true"]:focus{outline:2px solid var(--focus)}
[contenteditable="true"]:empty::before{content:attr(data-placeholder); color:var(--faint)}

.img-tools{
  position:absolute; left:8px; bottom:8px; display:flex; gap:6px; flex-wrap:wrap; z-index:2;
}
.tool{
  appearance:none; cursor:pointer; font:inherit; font-size:12px; font-weight:600; line-height:1;
  padding:7px 10px; border-radius:999px; border:1px solid transparent;
  background:#ffffff; color:#000000; box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.tool:hover{background:#f6eef4}
.tool:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.tool.danger{color:#c5008d}
.tool:disabled{opacity:.6; cursor:default}
.uploading{
  position:absolute; inset:0; display:grid; place-items:center; z-index:3;
  background:rgba(0,0,0,.45); color:#fff; font-size:13px; font-weight:600;
}

.edit-meta{display:flex; gap:6px; margin:8px 0 6px; flex-wrap:wrap}
.edit-meta select,.edit-meta input,.edit-url{
  font:inherit; font-size:12.5px; color:var(--ink); background:var(--bg);
  border:1px solid var(--pill-border); border-radius:8px; padding:5px 8px; min-height:30px;
}
.edit-meta select{flex:0 0 auto}
.edit-meta input{flex:1 1 140px; min-width:0}
.edit-url{width:100%; margin-top:6px}
.edit-meta :focus-visible,.edit-url:focus-visible{outline:2px solid var(--focus); outline-offset:1px}

.card-tools{display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; align-items:center}
.card-tools .tool{box-shadow:none; border-color:var(--pill-border); background:transparent; color:var(--ink)}
.card-tools .tool:hover{border-color:var(--accent); background:var(--pill-hover)}
.card-tools .tool.danger{color:var(--link)}
.card-tools .confirm{font-size:12px; color:var(--muted)}

.add-card{
  appearance:none; cursor:pointer; font:inherit; font-size:14px; font-weight:600; color:var(--accent);
  width:100%; aspect-ratio:16/10; border-radius:12px; border:2px dashed var(--pill-border);
  background:transparent; display:grid; place-items:center;
}
.add-card:hover{border-color:var(--accent); background:var(--pill-hover)}
.add-card:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
/* Colour-box cards */
.box-text{
  position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start;
  padding:12px 16px 16px; color:#ffffff;
}
.box-tags{font-size:12px; line-height:1.35; margin:0 0 4px; color:rgba(255,255,255,.85)}
.box-tags span+span::before{content:"|"; margin:0 6px; opacity:.7}
.box-title{font-size:18px; font-weight:700; line-height:1.25; margin:0; color:#ffffff}
body.editing .box-title[contenteditable="true"]{outline-color:rgba(255,255,255,.7)}
.menu-panel small{font-weight:500; color:var(--muted); margin-left:4px; font-size:12px}
.menu-panel{min-width:270px}
.menu-panel a{justify-content:flex-start; gap:6px; white-space:nowrap}
.menu-panel a[aria-current="page"]::after{margin-left:auto}
/* ---------- Article page ---------- */
.back{display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 16px 0 14px; border-radius:999px; border:1px solid var(--pill-border);
  background:var(--tag-bg); color:var(--ink); font-size:13px; font-weight:700; text-decoration:none; margin:0 0 18px}
.back:hover{border-color:var(--ink)}
.back::before{content:""; width:7px; height:7px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-left:3px}
.back:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.art-tags{margin:0 0 6px}
#page-article h1{margin-bottom:6px; max-width:900px}
.art-date{color:var(--muted); font-size:13px; margin:0 0 16px}
.img.art-hero{aspect-ratio:21/8; margin-bottom:28px}
.art-hero img{object-position:center 35%}
.art-layout{display:grid; grid-template-columns:220px minmax(0,1fr); gap:40px; align-items:start}
.art-side{position:sticky; top:16px; font-size:14px}
.side-block{margin-bottom:26px}
.art-label{font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 10px}
.art-label.accent{color:var(--link)}
.contrib{display:flex; gap:10px; align-items:center; margin-bottom:12px; flex-wrap:wrap}
.avatar{width:44px; height:44px; border-radius:50%; overflow:hidden; background:var(--accent); color:#fff;
  display:grid; place-items:center; font-weight:700; font-size:14px; flex:0 0 auto}
.avatar img{width:100%; height:100%; object-fit:cover; display:block}
.c-name{font-weight:700; margin:0; font-size:14px; line-height:1.3}
.c-role{margin:2px 0 0; color:var(--muted); font-size:13px; line-height:1.35}
.toc{list-style:none; margin:0; padding:0; border-left:2px solid var(--rule)}
.toc button{appearance:none; background:none; border:0; cursor:pointer; font:inherit; font-size:13px; color:var(--ink);
  text-align:left; padding:5px 0 5px 12px; line-height:1.35}
.toc button:hover{color:var(--link)}
.toc button:focus-visible{outline:2px solid var(--focus); outline-offset:1px}
.art-summary{font-size:20px; font-weight:600; line-height:1.4; margin:0 0 30px; max-width:720px}
.art-sec{margin:0 0 30px; max-width:720px; scroll-margin-top:16px}
.art-sec h2{font-size:22px; font-weight:700; margin:0 0 10px; line-height:1.25}
.art-text{font-size:16px; line-height:1.65}
.art-text p{margin:0 0 12px}
.art-text ul,.art-text ol{margin:0 0 12px; padding-left:22px}
.art-text li{margin:0 0 6px}
.body-edit{white-space:pre-wrap; min-height:60px}
.art-hint{font-size:12px; color:var(--muted); margin:-2px 0 18px; max-width:720px}
.add-line{appearance:none; cursor:pointer; font:inherit; font-size:13px; font-weight:600; color:var(--accent);
  background:transparent; border:1px dashed var(--pill-border); border-radius:8px; padding:8px 12px}
.add-line:hover{border-color:var(--accent); background:var(--pill-hover)}
.art-more{margin-top:44px; padding-top:26px; border-top:1px solid var(--rule)}
.art-more h2{font-size:22px; margin:0 0 16px}
.art-cta{margin-top:40px; background:#000000; color:#ffffff; border-radius:12px; padding:32px; position:relative; overflow:hidden}
.cta-dots{position:absolute; top:0; right:0; bottom:0; width:42%; pointer-events:none}
.cta-dots svg{width:100%; height:100%; display:block}
.art-cta h2,.art-cta p,.art-cta .cta-row{position:relative; z-index:1; max-width:58%}
.art-cta h2{font-size:26px; margin:0 0 8px; color:#ffffff; line-height:1.2}
.art-cta p{margin:0 0 18px; color:rgba(255,255,255,.82); font-size:16px; line-height:1.5}
.cta-btn{display:inline-block; background:#c5008d; color:#ffffff; font-weight:700; font-size:14px; padding:10px 18px;
  border-radius:999px; text-decoration:none}
.cta-btn:focus-visible{outline:2px solid #ffffff; outline-offset:2px}
.art-cta .edit-url{margin-top:10px; max-width:100%}
body.editing .art-cta [contenteditable="true"]{outline-color:rgba(255,255,255,.6)}
@media (max-width:820px){
  .art-layout{grid-template-columns:1fr; gap:8px}
  .art-side{position:static}
  .art-cta h2,.art-cta p,.art-cta .cta-row{max-width:100%}
  .cta-dots{opacity:.35}
}
/* Type-of-study label on cards */
.type-pill{
  position:absolute; top:12px; left:14px; z-index:2; max-width:calc(100% - 28px);
  font-size:11.5px; font-weight:600; line-height:1; letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  color:rgba(255,255,255,.88); background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.28);
  padding:5px 10px; border-radius:999px; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.img > img ~ .type-pill{background:rgba(40,40,40,.35)}
.box-text .type-pill{position:static; max-width:100%}
.box-main{max-width:62%}
.grid.four .box-main{max-width:64%}
.grid.four .box-tags{font-size:11px}
.meth-edit{display:flex; flex-wrap:wrap; gap:4px 10px; margin:0 0 6px; font-size:12px; color:var(--muted)}
.mchk{display:inline-flex; align-items:center; gap:4px; cursor:pointer}
.mchk input{accent-color:var(--accent); margin:0}
/* Category pills in category colours */
.pill.cat-on,.pill.cat-on[aria-pressed="true"]{background:var(--cat); border-color:var(--cat); color:#ffffff; box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.pill.cat-on:hover{background:var(--cat); border-color:var(--cat); filter:brightness(1.12)}
.pill.cat-on .n{color:inherit; opacity:.8}
.pill.all-off[aria-pressed="true"]{background:transparent; color:var(--ink); border-color:var(--pill-border)}
.pill.all-off[aria-pressed="true"] .n{color:var(--muted); opacity:1}
/* Edge-only card: light card, thin category-colour edge on the left */
.img.light{background:var(--panel); border:1px solid var(--rule)}
.box.photo .scrim{position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%)}
.box.photo > img{object-position:center 35%}
.img.edge-line::before{content:""; position:absolute; left:0; top:0; bottom:0; width:12px; background:var(--cat); z-index:2}
.box.edge-line .box-text{padding-left:28px}
.img.edge-line > .type-pill{left:24px}
.box.light .box-text{padding-left:22px; color:var(--ink)}
.box.light .box-tags{color:var(--muted)}
.box.light .box-title{color:var(--ink)}
.box.light .type-pill{color:var(--muted); background:rgba(0,0,0,.04); border-color:var(--rule); -webkit-backdrop-filter:none; backdrop-filter:none}
body.editing .box.light .box-title[contenteditable="true"]{outline-color:var(--pill-border)}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .box.light .type-pill{background:rgba(255,255,255,.06)} }
:root[data-theme="dark"] .box.light .type-pill{background:rgba(255,255,255,.06)}
.style-edit,.bulk-style{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 2px; font-size:12px}
.bulk-style{margin:0 0 14px; padding:8px 10px; border:1px dashed var(--pill-border); border-radius:10px}
.bulk-style[hidden]{display:none}
.style-label{color:var(--muted); font-weight:600; margin-right:2px}
.seg{appearance:none; cursor:pointer; font:inherit; font-size:12px; font-weight:600; line-height:1; padding:6px 10px;
  border-radius:999px; border:1px solid var(--pill-border); background:transparent; color:var(--ink)}
.seg:hover{border-color:var(--accent); background:var(--pill-hover)}
.seg[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
.seg.ghost{border-style:dashed}
.style-note{color:var(--muted); font-size:11.5px; margin-left:4px}
.seg:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.style-edit .mchk{margin-left:4px; color:var(--muted)}
/* =================== Home page =================== */
.bleed{margin-inline:calc(50% - 50vw); padding-inline:calc(50vw - 50%)}
.hero{position:relative; overflow:hidden; padding-top:24px; padding-bottom:64px}
.hero-swirl{position:absolute; inset:0; pointer-events:none}
.hero-swirl svg{width:100%; height:100%; display:block}
.hero-grid{position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:40px; align-items:center}
.eyebrow{font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--link); margin:0 0 12px}
.hero h1{font-size:clamp(30px,3.4vw,46px); margin:0 0 16px; line-height:1.08}
.hero-text{font-size:17px; line-height:1.55; color:var(--muted); margin:0 0 24px; max-width:520px}
.hero-ctas{display:flex; gap:10px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; min-height:42px; padding:0 18px; border-radius:999px; font-weight:700; font-size:14px; text-decoration:none; border:1px solid transparent}
.btn.primary{background:var(--accent); color:var(--on-accent)}
.btn.secondary{border-color:var(--pill-border); color:var(--ink); background:var(--bg)}
.btn:hover{filter:brightness(1.08)}
.btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.hero-visual{position:relative; border-radius:14px; overflow:hidden; background:var(--panel); box-shadow:0 18px 40px rgba(0,0,0,.14)}
.hero-visual img{width:100%; height:100%; object-fit:cover; display:block}
.home-tools{position:absolute; left:10px; bottom:10px; z-index:3; display:flex; gap:6px; flex-wrap:wrap}

.clients{min-height:300px; box-sizing:border-box; padding-top:38px; padding-bottom:60px; background:#fbfcf9; border-top:1px solid #e6e6e2; border-bottom:1px solid #e6e6e2; text-align:center}
.clients h2{font-size:22px; font-weight:400; color:#555555; margin:0 0 72px; line-height:1.2}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .clients{background:#181818; border-color:#2e2e2e} :root:not([data-theme="light"]) .clients h2{color:#bdbdbd} }
:root[data-theme="dark"] .clients{background:#181818; border-color:#2e2e2e}
.logos{overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.logo-track{display:flex; gap:140px; width:max-content; animation:marquee 48s linear infinite; align-items:center; padding-left:140px}
.logos:hover .logo-track{animation-play-state:paused}
@keyframes marquee{to{transform:translateX(-50%)}}
.logo-item{height:40px; display:flex; align-items:center; color:#8c8c8c; font-weight:800; font-size:24px; letter-spacing:-.01em; white-space:nowrap}
.logo-item img{height:34px; width:auto; max-width:180px; object-fit:contain; filter:grayscale(1); opacity:.75}
.logo-card .logo-item{font-size:18px}
.logo-edit{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:10px; text-align:left}
.logo-card{border:1px dashed var(--pill-border); border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px}
.logo-card .logo-item{height:44px; justify-content:center; background:var(--bg); border-radius:6px}
.logo-card .card-tools{margin-top:0}
@media (prefers-reduced-motion: reduce){ .logo-track{animation:none; flex-wrap:wrap; justify-content:center; width:auto; gap:28px 48px} .logos{-webkit-mask-image:none; mask-image:none} }

.diff{padding-top:56px; padding-bottom:60px}
.diff h2.diff-title{font-size:clamp(26px,2.6vw,36px); font-weight:800; letter-spacing:-.01em; text-align:center; margin:0 0 10px}
.diff-intro{text-align:center; color:var(--muted); font-size:16px; line-height:1.5; max-width:620px; margin:0 auto 40px}
.diff-cols{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(7,auto); gap:0 20px}
.diff-col{display:grid; grid-row:span 7; grid-template-rows:subgrid; row-gap:0; background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.06); border-radius:16px; padding:22px 20px 20px}
.diff-col .visual{align-self:end}
.num{font-size:44px; font-weight:800; line-height:1; color:var(--ink); margin:0 0 12px; letter-spacing:-.015em}
.diff-col h3{font-size:18px; font-weight:700; line-height:1.3; margin:0 0 8px}
.diff-col p.body{font-size:15px; line-height:1.6; color:var(--muted); margin:0 0 18px}
.visual{position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden}
.visual > img{width:100%; height:100%; object-fit:cover; display:block}
.v-caption{position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:space-between; gap:8px; padding:28px 14px 12px;
  color:#fff; font-size:14px; background:linear-gradient(transparent, rgba(0,0,0,.6))}
.chart-card{background:rgba(197,0,141,.07); padding:22px 20px; display:flex; flex-direction:column; justify-content:center}
.chart-card h4{font-size:15px; font-weight:700; margin:0 0 18px}
.bar-row{display:grid; grid-template-columns:62px 1fr; align-items:center; gap:10px; margin:0 0 12px; font-size:14px}
.bar{height:26px; border-radius:6px; background:linear-gradient(90deg,#c5008d,#5c007c)}
.bar-row input{width:56px}
.themes-card{background:rgba(92,0,124,.08); padding:12px; display:grid; grid-template-columns:1fr 1.1fr; gap:10px}
.themes-card .t-photo{border-radius:8px; overflow:hidden; position:relative}
.themes-card .t-photo img{width:100%; height:100%; object-fit:cover; display:block}
.t-stack{display:flex; flex-direction:column; gap:8px; min-width:0}
.t-box{background:#fff; color:#111; border-radius:8px; padding:9px 11px; font-size:12px; line-height:1.4; overflow:hidden}
.t-stack .t-box:last-child{flex:1 1 auto; min-height:0}
.t-box h4{font-size:13px; margin:0 0 6px}
.t-box ul{list-style:none; margin:0; padding:0}
.t-box li{display:flex; align-items:center; gap:7px; margin:0 0 4px}
.t-box li::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--dotc); flex:0 0 auto}
/* Purple section option */
.diff.dark{background:#000000; color:#ffffff}
.diff.dark .diff-col{background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.24)}
.diff.dark .diff-intro,.diff.dark .diff-col p.body{color:rgba(255,255,255,.8)}
.diff.dark .num{color:#ffffff}
.diff.dark .chart-card{background:rgba(255,255,255,.1)}
.diff.dark .bar{background:linear-gradient(90deg,#88ae01,#c5008d)}
.diff.dark .themes-card{background:rgba(255,255,255,.1)}
.diff.dark [contenteditable="true"]{outline-color:rgba(255,255,255,.55)}
.diff.dark .seg{color:#fff; border-color:rgba(255,255,255,.5)}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .diff-cols{grid-template-columns:1fr; grid-template-rows:none; gap:20px}
  .diff-col{grid-row:auto; grid-template-rows:none}
  .clients h2{margin-bottom:40px}
}
.learn{justify-self:start; display:inline-flex; align-items:center; margin-top:16px; min-height:38px; padding:0 16px; border-radius:999px;
  border:1px solid currentColor; color:inherit; font-weight:700; font-size:14px; text-decoration:none}
.learn:hover{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.diff.dark .learn:hover{background:#ffffff; color:#000000; border-color:#ffffff}
.learn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
/* Menu: Product group */
.menu-group{padding:0}
.mg-toggle{appearance:none; width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:0; border-radius:8px;
  background:transparent; color:var(--ink); font:inherit; font-size:15px; font-weight:600; cursor:pointer; text-align:left}
.mg-toggle:hover{background:var(--pill-hover)}
.mg-toggle:focus-visible{outline:2px solid var(--focus); outline-offset:-2px}
.mg-toggle svg{width:14px; height:14px; transition:transform .15s ease}
.mg-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.mg-sub{margin:0 0 4px 12px; border-left:2px solid var(--rule)}
.mg-sub[hidden]{display:none}
.menu-panel .mg-sub a{font-weight:500; font-size:14px; padding:8px 12px}

/* =================== Product pages =================== */
.p-hero{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:40px; align-items:center; padding:8px 0 44px}
.p-hero h1{font-size:clamp(30px,3.4vw,46px); margin:0 0 14px; line-height:1.08}
.p-media{position:relative; border-radius:14px; overflow:hidden; background:#000; aspect-ratio:16/9; box-shadow:0 18px 40px rgba(0,0,0,.14)}
.p-media video,.p-media img{width:100%; height:100%; object-fit:cover; display:block}
.p-media .media-tag{position:absolute; top:12px; left:12px; z-index:2}
.p-section{padding:44px 0; border-top:1px solid var(--rule)}
.p-section > h2{font-size:clamp(24px,2.4vw,32px); font-weight:800; letter-spacing:-.01em; margin:0 0 8px}
.p-section > .p-sub{color:var(--muted); font-size:16px; line-height:1.5; margin:0 0 26px; max-width:640px}
.steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; counter-reset:step}
.step{background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.06); border-radius:16px; padding:20px}
.step .num{font-size:32px; margin:0 0 10px}
.step h3{font-size:17px; font-weight:700; margin:0 0 6px}
.step p{font-size:15px; line-height:1.55; color:var(--muted); margin:0}
.feature{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; margin:0 0 40px}
.feature:last-child{margin-bottom:0}
.feature.flip .f-media{order:2}
.f-media{position:relative; aspect-ratio:4/3; border-radius:14px; overflow:hidden; background:var(--rule)}
.f-media img{width:100%; height:100%; object-fit:cover; display:block}
.feature h3{font-size:22px; font-weight:800; margin:0 0 10px; line-height:1.2}
.feature p{font-size:16px; line-height:1.6; color:var(--muted); margin:0}
.stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; background:#000; color:#fff; border-radius:16px; padding:32px}
.stat .n{font-size:clamp(30px,3.2vw,44px); font-weight:800; color:#88ae01; margin:0 0 4px; line-height:1}
.stat .l{font-size:14px; color:rgba(255,255,255,.8); margin:0; line-height:1.45}
.stats [contenteditable="true"]{outline-color:rgba(255,255,255,.55)}
.p-tools{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px}
@media (max-width:900px){
  .p-hero,.feature{grid-template-columns:1fr; gap:20px}
  .feature.flip .f-media{order:0}
  .stats{grid-template-columns:1fr}
}
/* Product page, centred hero */
.pc-hero{text-align:center; padding:12px 0 48px}
.pc-hero h1{font-size:clamp(34px,4.6vw,64px); line-height:1.05; letter-spacing:-.02em; margin:0 auto 18px; max-width:900px}
.pc-hero h1 .l1,.pc-hero h1 .l2{display:block}
.pc-lede{font-size:17px; line-height:1.6; color:var(--muted); max-width:640px; margin:0 auto 24px}
.pc-btns{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:0 0 36px}
.btn.dark{background:var(--ink); color:var(--bg)}
button.btn{cursor:pointer; font:inherit; font-size:14px; font-weight:700}
.pc-media{position:relative; max-width:980px; margin:0 auto; border-radius:16px; overflow:hidden; border:1px solid var(--rule);
  box-shadow:0 24px 60px rgba(0,0,0,.12); background:var(--panel); min-height:120px}
.pc-media img,.pc-media video{width:100%; height:auto; display:block}
.pc-hero .p-tools{justify-content:center}
/* Why teams choose us */
.why{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:28px; align-items:start; padding:48px 0; border-top:1px solid var(--rule); scroll-margin-top:16px}
.why h2{font-size:clamp(26px,2.6vw,36px); font-weight:800; letter-spacing:-.01em; line-height:1.1; margin:0 0 18px; max-width:340px}
.acc{display:flex; flex-direction:column; gap:10px}
.acc-item{border:1px solid var(--rule); border-radius:12px; background:var(--panel); padding:14px 16px}
.acc-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.acc-head h3{font-size:16px; font-weight:600; margin:0; line-height:1.35; flex:1}
.acc-btn{appearance:none; flex:0 0 auto; width:26px; height:26px; border-radius:7px; border:1px solid var(--pill-border); background:transparent; color:var(--ink); cursor:pointer; display:grid; place-items:center}
.acc-btn svg{width:13px; height:13px}
.acc-item.open .acc-btn{background:var(--accent); border-color:var(--accent); color:var(--on-accent)}
.acc-btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.acc-body{padding-top:10px}
.acc-body .art-text{font-size:14.5px; line-height:1.6; color:var(--muted)}
.acc-body .art-text ul{margin:0; padding-left:18px}
.why-right{position:sticky; top:16px}
.why-media{position:relative; border-radius:16px; overflow:hidden; background:var(--panel); border:1px solid var(--rule); aspect-ratio:4/3}
.why-media img,.why-media video{width:100%; height:100%; object-fit:cover; display:block}
@media (max-width:900px){ .why{grid-template-columns:1fr} .why-right{position:static} }
.chart-card{position:relative}
.chart-tools{margin-top:4px; display:flex; justify-content:flex-end}
.pc-links{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; width:100%}
.pc-links .edit-url{max-width:360px}
.cta-style{display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin:40px 0 -28px; font-size:12px; color:var(--muted); font-weight:600}
.cta-style > span{margin-left:6px}
.swatch{appearance:none; width:24px; height:24px; border-radius:50%; background:var(--sw); border:2px solid var(--bg); box-shadow:0 0 0 1px var(--pill-border); cursor:pointer; padding:0}
.swatch[aria-pressed="true"]{box-shadow:0 0 0 2px var(--accent)}
.swatch:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.col-sub{font-size:16px; font-weight:400; line-height:1.4; color:var(--ink); margin:0 0 10px}
.col-sub:empty{margin:0}
body.editing .col-sub:empty{margin:0 0 10px}
.diff-col h3{margin-bottom:4px}
.diff.dark .col-sub{color:#ffffff}
/* Spotlight blocks (below 01/02/03) */
.spots{padding:60px 0 20px; display:flex; flex-direction:column; gap:120px}
.spot{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center}
.spot.flip > :last-child{order:-1}
.spot-label{display:inline-block; border:2px solid var(--acc); color:var(--acc); border-radius:999px; padding:8px 16px;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin:0 0 18px}
.spot-title{font-size:clamp(26px,2.8vw,38px); font-weight:800; line-height:1.15; letter-spacing:-.01em; margin:0 0 14px}
.spot-body{font-size:17px; line-height:1.65; color:var(--muted); margin:0 0 22px}
.spot-tags{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.spot-tag{display:inline-flex; align-items:center; gap:6px; background:var(--tag-bg); color:var(--tag-ink);
  font-weight:600; font-size:14px; padding:9px 16px; border-radius:999px}
.tag-x{appearance:none; border:0; background:none; color:inherit; cursor:pointer; font-size:16px; line-height:1; padding:0 0 0 2px}
.spot-media{position:relative; border-radius:16px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.14); background:var(--panel)}
.spot-media img{width:100%; height:100%; object-fit:cover; display:block}
@media (max-width:900px){ .spot{grid-template-columns:1fr; gap:24px} .spot.flip > :last-child{order:0} }
/* Image framing */
:is(.img,.visual,.hero-visual,.spot-media,.pc-media,.why-media,.f-media,.t-photo):has(> img[data-framed]){background:var(--panel)}
.spot-media,.hero-visual,.pc-media,.why-media{background:#ffffff}
.frame-btn{position:absolute; top:8px; right:8px; z-index:4; appearance:none; cursor:pointer; font:inherit; font-size:12px; font-weight:600; line-height:1;
  padding:7px 10px; border-radius:999px; border:0; background:#ffffff; color:#000000; box-shadow:0 1px 3px rgba(0,0,0,.25)}
.frame-btn:hover{background:#f6eef4}
.frame-btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.frame-panel{position:fixed; z-index:50; width:280px; background:var(--panel); color:var(--ink); border:1px solid var(--rule); border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.2); padding:14px; font-size:13px}
.frame-panel[hidden]{display:none}
.fp-title{font-weight:700; margin:0 0 10px}
.fp-row{display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px}
.fp-range{display:block; margin:0 0 10px; color:var(--muted); font-weight:600}
.fp-range span{float:right; color:var(--ink)}
.fp-range input{display:block; width:100%; margin-top:4px; accent-color:var(--accent)}
.fp-note{margin:4px 0 0; font-size:11.5px; color:var(--muted)}
.vis-tools{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.vis-tools:empty{display:none}
.diff.dark .vis-tools .seg{color:#fff}
.themes-card{aspect-ratio:auto; min-height:0}
.visual.themes-card{aspect-ratio:auto}
.themes-card .t-photo{min-height:220px}
.themes-card.no-photo{grid-template-columns:1fr}
.t-stack .t-box:last-child{flex:0 0 auto}
.t-text{margin:0}
.t-box h4 + ul,.t-box ul + .t-text,.t-box h4 + .t-text{margin-top:6px}
.box-tools{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px}
.box-tools .tool{box-shadow:none; border:1px solid #ddd; padding:5px 8px; font-size:11px}
.t-box li .tag-x{color:#999; margin-left:auto}
.size-edit{display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-top:12px; font-size:12px; font-weight:600; color:var(--muted)}
.size-edit label{display:flex; align-items:center; gap:8px}
.size-edit input[type=range]{width:120px; accent-color:var(--accent)}
/* Case study detail page */
.csd{display:grid; grid-template-columns:260px minmax(0,1fr); gap:56px; align-items:start; padding:8px 0 40px}
.csd-side{position:sticky; top:20px}
.csd-card{border-radius:16px; background:var(--panel); box-shadow:0 12px 32px rgba(0,0,0,.08); border:1px solid var(--rule); padding:24px}
.csd-card p{font-size:16px; line-height:1.55; margin:0 0 18px}
.csd-main{max-width:780px}
.csd-main h1{font-size:clamp(28px,3.2vw,44px); margin:6px 0 14px; line-height:1.1}
.csd-meth{margin:0 0 24px}
.csd-meth .spot-tag{font-size:13px; padding:7px 13px}
.csd-fig{margin:0 0 28px}
.csd-img{position:relative; border-radius:14px; overflow:hidden; background:var(--panel); aspect-ratio:16/9}
.csd-img.csd-hero{aspect-ratio:16/8}
.csd-img img{width:100%; height:100%; object-fit:cover; display:block}
.csd-fig figcaption{font-size:13px; color:var(--muted); margin-top:8px}
.csd-block{margin:0 0 8px}
.rich{font-size:17px; line-height:1.7; color:var(--ink)}
.rich p{margin:0 0 16px}
.rich h2{font-size:26px; font-weight:800; letter-spacing:-.01em; line-height:1.2; margin:26px 0 12px}
.rich h3{font-size:20px; font-weight:700; line-height:1.3; margin:22px 0 10px}
.rich ul,.rich ol{margin:0 0 16px; padding-left:24px}
.rich li{margin:0 0 10px}
.rich a{color:var(--link); text-decoration:underline; text-underline-offset:3px}
/* Text sizes: one step down (A−) or one step up (A+) from normal, nothing bigger.
   Headings and subheadings always keep their standard size. */
.rich .fs-1,.rich .fs-2{font-size:.88em}
.rich .fs-5,.rich .fs-6,.rich .fs-7{font-size:1.12em}
.rich h2 [class^="fs-"],.rich h3 [class^="fs-"],.rich h2 font,.rich h3 font{font-size:inherit}
.rich h2,.rich h2 *{font-weight:800}
.rich h3,.rich h3 *{font-weight:700}
/* the same fixed sizes inside bullets */
.rich .head{display:block; font-size:26px; font-weight:800; line-height:1.2; margin:0 0 6px}
.rich .sub{display:block; font-size:20px; font-weight:700; line-height:1.3; margin:0 0 4px}
.rich .head *,.rich .sub *{font-size:inherit !important; font-weight:inherit}
.rich li{font-size:17px}
body.editing .rich{min-height:48px; padding:4px}
.rt-bar{position:fixed; z-index:60; display:flex; flex-wrap:wrap; align-items:center; gap:2px; background:#111; color:#fff; border-radius:10px; padding:4px; box-shadow:0 8px 24px rgba(0,0,0,.25); max-width:calc(100vw - 16px)}
.rt-bar[hidden]{display:none}
.rt-bar button{appearance:none; border:0; background:transparent; color:#fff; font:inherit; font-size:12.5px; padding:6px 8px; border-radius:6px; cursor:pointer}
.rt-bar button:hover{background:rgba(255,255,255,.15)}
.rt-bar button:focus-visible{outline:2px solid #fff}
.rt-sep{width:1px; height:18px; background:rgba(255,255,255,.25); margin:0 3px}
.card-tools a.tool{text-decoration:none; display:inline-flex; align-items:center}
@media (max-width:900px){ .csd{grid-template-columns:1fr; gap:24px} .csd-side{position:static; order:2} }
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.logo{display:inline-flex; align-items:center; border-radius:8px}
.logo img{height:40px; width:auto; display:block}
.logo:focus-visible{outline:2px solid var(--focus); outline-offset:3px}
.logo-replace{display:none; box-shadow:none; border:1px solid var(--pill-border)}
body.editing .logo-replace{display:inline-flex}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --tag-bg:#2a2a2a; --tag-ink:#dddddd } }
:root[data-theme="dark"]{ --tag-bg:#2a2a2a; --tag-ink:#dddddd }
@media (max-width:640px){ .logo img{height:34px} .site-header .wrap{height:58px} .save-status{display:none} }
/* Shared call-to-action spacing */
#siteCta .art-cta{margin:24px 0 56px}
#siteCta:empty{display:none}
/* Footer */
.site-footer{background:#f6f6f4; border-top:1px solid var(--rule); padding:48px 0 28px; margin-top:24px}
.f-top{display:grid; grid-template-columns:auto 1fr; gap:48px; align-items:start}
.f-cols{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:28px 32px}
.f-h{font-size:14px; color:var(--muted); margin:0 0 14px; font-weight:500}
.f-col ul{list-style:none; margin:0 0 8px; padding:0}
.f-col li{margin:0 0 12px; font-size:15px}
.f-col a{color:var(--ink); text-decoration:none}
.f-col a:hover{text-decoration:underline; text-underline-offset:3px}
.f-nolink{color:var(--ink)}
.f-edit{display:grid; grid-template-columns:1fr; gap:4px; position:relative; padding-right:20px}
.f-edit .tag-x{position:absolute; right:0; top:0}
.f-bottom{display:flex; flex-wrap:wrap; align-items:center; gap:10px 24px; margin-top:36px; padding-top:20px; border-top:1px solid var(--rule)}
.f-small{font-size:13px; color:var(--muted)}
.f-li{color:var(--ink); display:inline-flex}
.f-li svg{width:24px; height:24px}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .site-footer{background:#161616} }
:root[data-theme="dark"] .site-footer{background:#161616}
/* Contact page */
.ct-head{padding:12px 0 28px}
.ct-head h1{font-size:clamp(32px,4vw,56px); margin:0 0 8px}
.ct-grid{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:40px; align-items:start; padding-bottom:56px}
.ct-office{display:flex; gap:12px; align-items:flex-start; padding:18px; border-radius:16px; background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.06); margin:0 0 14px}
.ct-pin{flex:0 0 auto; width:12px; height:12px; border-radius:50%; background:var(--link); margin-top:6px; box-shadow:0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent)}
.ct-place{font-weight:700; margin:0 0 6px; font-size:16px; line-height:1.4}
.ct-mail{color:var(--ink); font-size:15px}
.ct-panel{border-radius:16px; background:var(--panel); border:1px solid var(--rule); box-shadow:0 12px 32px rgba(0,0,0,.06); padding:24px}
.ct-tabs{display:flex; flex-wrap:wrap; gap:6px; margin:0 0 20px}
.ct-tabs .seg{font-size:13px; padding:8px 14px}
.ct-title{font-size:24px; font-weight:800; margin:0 0 8px}
.ct-text{color:var(--muted); font-size:16px; line-height:1.6; margin:0 0 20px}
.ct-form{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.ct-form label{display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:var(--muted)}
.ct-form input,.ct-form textarea{font:inherit; font-size:15px; color:var(--ink); background:var(--bg); border:1px solid var(--pill-border); border-radius:10px; padding:10px 12px}
.ct-form input:focus-visible,.ct-form textarea:focus-visible{outline:2px solid var(--focus); outline-offset:1px}
.ct-form .ct-wide,.ct-form .ct-err{grid-column:1/-1}
.ct-form .btn{justify-self:start}
button.btn.primary{border:0; cursor:pointer}
.ct-err{color:var(--link); font-size:13px; margin:0; min-height:0}
.ct-know{padding:8px 0 40px}
.ct-know > h2{font-size:clamp(24px,2.4vw,32px); font-weight:800; margin:0 0 20px}
.ct-cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px}
.ct-card{border-radius:16px; background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.06); padding:22px; display:flex; flex-direction:column}
.ct-card h3{font-size:18px; margin:0 0 8px}
.ct-card .learn{align-self:flex-start}
.ct-card .edit-url{margin-top:6px}
.ct-card p{color:var(--muted); font-size:15px; line-height:1.55; margin:0 0 8px; flex:1}
@media (max-width:900px){
  .ct-grid{grid-template-columns:1fr} .ct-cards{grid-template-columns:1fr}
  .f-top{grid-template-columns:1fr; gap:24px}
}
@media (max-width:560px){ .ct-form{grid-template-columns:1fr} .f-cols{grid-template-columns:1fr 1fr} }
.clients.band-dark{background:#0c0c0c; border-color:#0c0c0c}
.clients.band-dark h2{color:rgba(255,255,255,.72)}
.clients.band-dark .logo-item{color:#6e6e6e}
/* every uploaded logo shows as the same mid grey, whatever its colours */
.clients.band-dark .logo-item img{filter:grayscale(1) brightness(0) invert(.43); opacity:1}
.clients.band-dark .band-pick span,.clients.band-dark .c-name{color:#fff}
.clients.band-dark .logo-card{border-color:rgba(255,255,255,.3)}
.clients.band-dark .logo-card .logo-item{background:rgba(255,255,255,.06)}
.logos.two-rows{display:flex; flex-direction:column; gap:40px}
.clients.band-dark .logo-track{gap:84px; padding-left:84px}
.logo-track.rev{animation-direction:reverse; padding-left:60px}
.clients.band-dark .logo-item{height:56px; font-size:28px}
.clients.band-dark .logo-item img{height:46px; max-width:220px}
body.scoped .logo-replace{display:none !important}
.note{font-size:12px; color:var(--muted); margin:-8px 0 14px}

/* ---- Additions for the Laravel site ---- */
.skip-link{position:absolute; left:-9999px; top:8px; z-index:100; background:#000; color:#fff; padding:8px 14px; border-radius:8px}
.skip-link:focus{left:12px}
.why-slide{width:100%; height:100%}
.why-slide[hidden]{display:none}
a.pill{text-decoration:none}
span.pill[aria-disabled="true"]{opacity:.4; cursor:default}
.filter-note{font-size:13px; padding:4px 10px; border-radius:999px; background:var(--tag-bg); color:var(--tag-ink)}
a.reset{text-decoration:underline; text-underline-offset:3px; color:inherit}
.ct-ok{background:#eef6d9; color:#2f3d00; border-radius:10px; padding:10px 12px; margin:0 0 14px}
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
