/* =====================================================
   /services/modernisation — page-only styles (loaded by
   pages/service-modernisation.php). Uses the site tokens
   from site.css / brand.css. Contrast: body copy #d3dae6
   13.6:1, secondary #a3adc2 8.6:1, warm tags #fdba74
   11.6:1, blue tags #8fb4ff 9.5:1 on --bg.
   ===================================================== */

.page-mod { background: var(--bg); }
.page-mod main svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared pieces ---------- */
.mod-kicker, .mod-tag, .mod-num, .mod-region, .mod-caption, .mod-crumbs {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
}
.mod-kicker { margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.mod-tag { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.mod-tag-warm { color: var(--orange-light); }
.mod-num { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--blue-light); }
.mod-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: 600 15px/1.2 var(--font); color: var(--on-ink-link);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  background: none; border: 0; cursor: pointer;
}
.mod-link:hover { color: #fff; text-decoration-thickness: 2px; }
.mod-btn { min-height: 52px; padding: 0 28px; }
.mod-btn svg { flex: none; }
.mod-card {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; background: var(--glass);
  overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s ease;
}
a.mod-card { display: flex; text-decoration: none; color: inherit; }
a.mod-card:hover, .mod-card:focus-within { border-color: rgba(255, 255, 255, .3); }
a.mod-card:hover { transform: translateY(-6px); }
.mod-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mod-pills[hidden] { display: none; }
.mod-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .045);
  color: var(--ink-2); font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.mod-pill:hover { border-color: rgba(255, 255, 255, .35); }
.mod-pill[aria-selected="true"], .mod-pill[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--bg); }
.mod-pills-sm .mod-pill { padding: 0 16px; font-size: 14px; }

/* ---------- 1. Header ---------- */
.mod-hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 560px;
  padding: 120px 0 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(45% 70% at 8% 40%, rgba(37, 99, 235, .3), rgba(0, 0, 0, 0) 70%),
    radial-gradient(35% 60% at 95% 10%, rgba(249, 115, 22, .2), rgba(0, 0, 0, 0) 70%);
}
.mod-scene {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2;
  opacity: 0; transition: opacity .9s ease;
}
.mod-hero.is-live .mod-scene { opacity: 1; }
/* No WebGL, or reduced motion: a still of the scene instead of the live one. (Shown only then:
   as an always-on poster it became the largest paint and slowed LCP.) */
.mod-hero.is-static::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../images/modernisation/hero-still.webp") right bottom / cover no-repeat;
}
.mod-hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 24, 0) 70%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 10, 24, .9) 28%, rgba(5, 10, 24, 0) 50%);
}
.mod-crumbs { padding: 12px 0; font-size: 12px; line-height: 1; letter-spacing: .08em; color: var(--muted); }
.mod-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0; padding: 0; }
.mod-crumbs li { display: flex; align-items: center; min-height: 44px; }
.mod-crumbs li + li::before { content: "/"; margin-right: 8px; }
.mod-crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.mod-crumbs a:hover { color: #fff; text-decoration: underline; }
.mod-crumbs [aria-current] { color: var(--ink-2); }
.mod-hero-copy { max-width: 500px; padding: 64px 0 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mod-hero h1 {
  font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
.mod-h1-label {
  display: block; margin-bottom: 14px; font: 500 13px/1.3 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-light);
}
.mod-grad {
  background-image: linear-gradient(90deg, #8fb4ff, #fb923c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mod-hero-copy > p { font-size: 18px; color: var(--on-ink-muted); text-wrap: pretty; }
.mod-hero :focus-visible { outline-color: var(--orange-light); }

/* ---------- Page body ---------- */
.mod-body { position: relative; }
.mod-sec { display: flex; flex-direction: column; gap: 32px; padding: 72px 0 96px; }
.mod-sec + .mod-sec { padding-top: 0; }
#replace { padding-top: 72px; }
#work { padding-top: 0; gap: 36px; }
/* Sections below the fold are not laid out until they near the viewport. */
#work, #websites, #demos, #insights { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.mod-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mod-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.mod-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: #fff; text-wrap: balance; }
.mod-head-note { max-width: 360px; font-size: 15px; color: var(--muted); }
.mod-viewall[hidden] { display: none; }

/* ---------- 2. What we replace ---------- */
.mod-replace { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px; border-radius: 26px; }
.mod-replace + .mod-replace { margin-top: 24px; }
.mod-replace.is-tabbed + .mod-replace { margin-top: 0; }
.mod-replace[hidden] { display: none; }
/* With JavaScript the inactive panels are hidden from the first paint, before the tabs start
   (site.js sets .js in <head>), so they are never laid out. Without it, all panels show. */
.js .mod-replace:not(.is-tabbed):not(.is-first) { display: none; }
.mod-panel-h { width: 100%; font-size: 20px; color: #fff; }
.mod-replace.is-tabbed .mod-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mod-swaps { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mod-swaps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mod-swap {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: var(--glass);
}
.mod-swap-old { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #8a94ab; }
.mod-swap-old .mod-tag { color: #8a94ab; }
.mod-swap-old s { text-decoration-color: rgba(249, 115, 22, .7); }
.mod-swap-new { display: flex; align-items: center; gap: 10px; font: 600 19px/1.25 var(--display); color: #fff; }
.mod-swap-new svg { flex: none; color: #fb923c; }
.mod-demo { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mod-caption { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-align: center; }

/* Compare component (section 2 and featured sites) */
.cmp {
  --pos: 52%;
  position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 90px -30px rgba(37, 99, 235, .55);
  background: var(--paper);
}
.cmp-demo { height: 460px; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-layer > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cmp-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none;
}
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px;
  background: #fb923c; box-shadow: 0 0 18px #f97316; pointer-events: none;
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background-image: linear-gradient(#fb923c, #f97316); border: 1px solid rgba(255, 255, 255, .4); color: #1a0c02;
}
.cmp-handle svg path { stroke-width: 2.4; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.cmp-range:focus-visible ~ .cmp-handle span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--focus); }

/* "Before": the spreadsheet */
.xl { height: 100%; display: flex; flex-direction: column; background: #d9d5c7; color: #222; font-family: "Times New Roman", Times, serif; }
.xl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: #1f3a7a; color: #fff; font-size: 13px; }
.xl-bar .mod-tag { color: #fff; }
.xl-row { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.3fr; font-size: 13px; }
.xl-row span { padding: 7px 10px; border: 1px solid #8a8674; white-space: nowrap; overflow: hidden; min-height: 33px; }
.xl-headrow { font-weight: 700; background: #bdb8a6; }
.xl-foot { margin-top: auto; padding: 8px 14px; font-size: 12px; background: #bdb8a6; border-top: 1px solid #8a8674; }

/* "After": the dashboard */
.dash { height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--paper); }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-title { font: 600 16px/1.2 var(--display); color: #fff; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-tile { padding: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: var(--glass); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dash-tile span { font-size: 11px; color: var(--muted); }
.dash-tile b { font: 600 19px/1.2 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tile.is-warm { border-color: rgba(249, 115, 22, .55); background: rgba(249, 115, 22, .1); }
.dash-tile.is-warm b { color: var(--orange-light); }
.dash-bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 10px; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; }
.dash-bars i { flex: 1; border-radius: 4px; background: rgba(37, 99, 235, .55); }
.dash-bars i:nth-child(1) { height: 34%; background: rgba(37, 99, 235, .45); }
.dash-bars i:nth-child(2) { height: 48%; }
.dash-bars i:nth-child(3) { height: 41%; }
.dash-bars i:nth-child(4) { height: 62%; background: rgba(37, 99, 235, .7); }
.dash-bars i:nth-child(5) { height: 55%; background: rgba(37, 99, 235, .7); }
.dash-bars i:nth-child(6) { height: 78%; background: var(--cobalt); }
.dash-bars i:nth-child(7) { height: 92%; background-image: linear-gradient(#fb923c, #f97316); }
.dash-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; font-size: 13px; color: var(--ink-2); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* Websites tab: an old-style site vs a modern one */
.oldweb { height: 100%; display: flex; flex-direction: column; background: #fff; color: #000; font-family: "Times New Roman", Times, serif; }
.oldweb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; background: #c0c0c0; border-bottom: 2px solid #808080; font: 12px Arial, sans-serif; }
.oldweb-bar .mod-tag { color: #000; }
.oldweb-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 20px; background: #fffde7; text-align: center; }
.oldweb-h { font-size: 30px; font-weight: 700; color: #0000cc; text-decoration: underline; line-height: 1.2; }
.oldweb-nav { font: 13px Arial, sans-serif; color: #0000cc; text-decoration: underline; }
.oldweb-img { width: 220px; height: 110px; border: 2px inset #999; background: #e5e5e5; display: flex; align-items: center; justify-content: center; font: 12px Arial, sans-serif; color: #555; }
.oldweb-p { font-size: 15px; max-width: 360px; line-height: 1.4; }
.oldweb-new { font-size: 13px; font-weight: 700; color: #b00000; }
.oldweb-foot { margin-top: auto; font: 11px Arial, sans-serif; color: #555; }
.newweb { height: 100%; display: flex; flex-direction: column; background: var(--paper); }
.newweb-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.newweb-brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); color: #fff; }
.newweb-brand i { width: 26px; height: 26px; border-radius: 8px; background-image: linear-gradient(135deg, #2563eb, #8fb4ff); }
.newweb-links { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.newweb-cta { padding: 7px 14px; border-radius: 999px; background-image: linear-gradient(#fb923c, #f97316); color: #1a0c02; font-weight: 600; }
.newweb-hero { display: flex; flex-direction: column; gap: 12px; padding: 34px 24px 22px; background-image: radial-gradient(60% 90% at 85% 0%, rgba(37, 99, 235, .35), rgba(0, 0, 0, 0) 70%); }
.newweb-hero b { max-width: 340px; font: 600 30px/1.05 var(--display); letter-spacing: -.02em; color: #fff; }
.newweb-hero > span:last-child { max-width: 320px; font-size: 13px; color: var(--muted); }
.newweb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 24px; }
.newweb-cards i { height: 96px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: var(--glass); }
.newweb-cards i.is-warm { border-color: rgba(249, 115, 22, .5); background: rgba(249, 115, 22, .1); }
.newweb-status { margin: auto 24px 20px; }

/* ---------- 3. The work ---------- */
.mod-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.mod-work .mod-card { display: flex; flex-direction: column; }
.mod-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 210px; }
.mod-pair-side { position: relative; margin: 0; overflow: hidden; background-color: #131b33; }
.mod-pair-side.is-after { border-left: 2px solid #f97316; background-color: #0b1a40; }
.mod-pair-side img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mod-pair-side .mod-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(5, 10, 24, .85); color: #d3dae6; }
.mod-pair-side .mod-tag-warm { color: var(--orange-light); }
/* Illustrations until real project photos are supplied */
.ill-paper { padding: 22px 18px; display: flex; flex-direction: column; gap: 9px; background: #e9e2cc; }
.ill-paper i { height: 9px; border-radius: 2px; background: rgba(60, 50, 30, .28); }
.ill-paper i:nth-child(2n) { width: 70%; }
.ill-paper i:nth-child(3n) { width: 84%; background: rgba(160, 40, 20, .35); }
.ill-dash, .ill-newui { padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 40px 1fr; gap: 8px; }
.ill-dash i, .ill-newui i { border-radius: 8px; background: rgba(255, 255, 255, .1); }
.ill-dash i:nth-child(3), .ill-newui i:nth-child(3) { background: rgba(249, 115, 22, .3); }
.ill-dash b { grid-column: 1 / -1; margin-bottom: 30px; border-radius: 8px; background: linear-gradient(180deg, rgba(37, 99, 235, .55), rgba(37, 99, 235, .15)); }
.ill-newui b { grid-column: 1 / -1; margin-bottom: 30px; border-radius: 8px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .1) 0 14px, transparent 14px 24px); }
.ill-oldui { padding: 16px; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 22px 1fr 1fr; gap: 6px; background: #c9ccd2; }
.ill-oldui i { background: #9aa0ab; border: 1px solid #7a808b; }
.ill-oldui i:first-child { grid-column: 1 / -1; background: #3a5a8c; }
.ill-oldui i:nth-child(2) { grid-row: 2 / 4; }
.ill-oldui .mod-tag { background: rgba(5, 10, 24, .85); }
.mod-card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.mod-card-body h3 { font-size: 24px; line-height: 1.15; color: #fff; }
.mod-card-body > p:not(.mod-num) { font-size: 15px; color: var(--muted); }
.mod-card-body .mod-link { margin-top: auto; }
.mod-quote { margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; color: var(--ink); }
.mod-quote footer { margin-top: 6px; font-size: 13px; color: var(--muted); }
.mod-quote.is-placeholder { color: var(--orange-light); }

/* ---------- 4. Websites we've rebuilt ---------- */
.mod-featured { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; }
.mod-site { display: flex; flex-direction: column; }
.mod-site.is-big { grid-row: 1 / 3; }
.mod-browser { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mod-browser i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mod-browser span { margin-left: 8px; flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-browser-sm { gap: 6px; padding: 9px 12px; }
.mod-browser-sm i { width: 8px; height: 8px; }
.mod-site .cmp { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.mod-site.is-big .cmp { flex: 1 1 auto; } /* fills the height of the two cards beside it */
.mod-site.is-big .mod-site-body { flex: none; }
.mod-site-body { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 22px 22px; }
.mod-site-body > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.mod-site-body h3 { font-size: 20px; color: #fff; }
.mod-site.is-big .mod-site-body h3 { font-size: 24px; }
.mod-site-body p:not(.mod-num) { font-size: 14px; color: var(--muted); }
.mod-site.is-big .mod-site-body p:not(.mod-num) { font-size: 15px; }
.mod-stat b { color: var(--orange-light); font-weight: 600; }
.mod-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, .5); background: rgba(249, 115, 22, .1);
  font: 600 13px/1.2 var(--font); color: var(--orange-light); text-decoration: none;
}
.mod-chip:hover { background: rgba(249, 115, 22, .2); color: #fff; }
.mod-gallery-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.mod-gallery-head h3 { font-size: 20px; color: #fff; }
.mod-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.mod-tile { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: var(--glass); overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s; }
.mod-tile[hidden] { display: none; }
.mod-tile:hover, .mod-tile:focus-within { border-color: rgba(255, 255, 255, .3); }
.mod-tile:hover { transform: translateY(-6px); }
.mod-tile > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.mod-tile-body { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 16px 16px; }
.mod-tile-name { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.25 var(--display); color: #fff; text-decoration: none; }
a.mod-tile-name:hover { text-decoration: underline; }
a.mod-tile-name::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.mod-tile { position: relative; }
.mod-tile-cat { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- 5. Live demos ---------- */
.mod-demos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.mod-demo-tile { height: 100%; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 150px; padding: 22px; }
.mod-demo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.mod-demo-name { font: 600 20px/1.2 var(--display); color: #fff; }
.mod-demo-go { font-size: 13px; font-weight: 600; color: var(--orange-light); }
.mod-pos { display: flex; flex-direction: column; gap: 22px; margin-bottom: 16px; padding: 26px; }
.mod-pos-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.mod-pos-head h3 { margin: 8px 0 0; font-size: 26px; line-height: 1.15; color: #fff; }
.mod-pos-head > p { max-width: 420px; margin: 0; font-size: 15px; color: var(--muted); }
.mod-pos-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.mod-pos-biz { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.mod-pos-type { margin: 0; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); }
.mod-pos-name { margin: 0; font: 600 16px/1.25 var(--display); color: #fff; }
.mod-pos-name span { display: block; margin-top: 2px; font: 400 13px/1.3 var(--font); color: var(--muted); }
.mod-pos-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.mod-pos-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font: 600 14px/1 var(--font); color: #fff; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.mod-pos-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.mod-pos-btn.is-primary { background: #fff; border-color: #fff; color: var(--bg); }
.mod-pos-btn.is-primary:hover { background: var(--ink-2); }
.mod-pos-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 6. Insights ---------- */
.mod-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; background: var(--glass); overflow: hidden; }
.mod-stats li { border-right: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mod-stats a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px; text-decoration: none; }
.mod-stats a:hover { background: rgba(255, 255, 255, .04); }
.mod-stats a:hover .mod-stat-src { text-decoration: underline; }
.mod-stats a:focus-visible { outline-offset: -3px; }
.mod-region { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.mod-region.is-warm { color: var(--orange-light); }
.mod-region.is-cool { color: var(--blue-light); }
.mod-stat-value { font: 600 44px/1 var(--display); letter-spacing: -.02em; color: #fff; }
.mod-stat-line { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.mod-stat-src { margin-top: auto; font-size: 13px; color: var(--muted); }
.mod-reads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.mod-read { height: 100%; flex-direction: column; gap: 14px; min-height: 210px; padding: 24px; border-radius: 22px; background: transparent; }
.mod-read-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-read-tags .mod-region { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); letter-spacing: .08em; }
.mod-read-tags .is-warm { border-color: rgba(249, 115, 22, .45); }
.mod-read-tags .is-cool { border-color: rgba(143, 180, 255, .4); }
.mod-read-title { font: 600 21px/1.2 var(--display); color: #fff; }
.mod-read-line { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mod-read-src { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mod-read-src svg { flex: none; color: #fb923c; }

/* ---------- 7. Closing bar ---------- */
.mod-check {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 0 72px; padding: 36px 40px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px;
  background-color: #071026; background-image: radial-gradient(80% 120% at 50% 140%, rgba(37, 99, 235, .4), rgba(0, 0, 0, 0) 70%);
}
.mod-check > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mod-check h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; color: #fff; }
.mod-check p { font-size: 16px; color: var(--on-ink-muted); }
.mod-check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mod-check :focus-visible { outline-color: var(--orange-light); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mod-featured { grid-template-columns: 1fr; }
  .mod-site.is-big { grid-row: auto; }
  .mod-hero { padding-top: 96px; }
}
@media (max-width: 760px) {
  .mod-hero.is-live .mod-scene, .mod-hero.is-static::before { opacity: .3; }
  .mod-hero { min-height: 0; }
  .mod-hero-shade { background-image: linear-gradient(180deg, rgba(5, 10, 24, 0) 60%, var(--bg) 100%); }
  .mod-hero-copy { padding: 32px 0 72px; }
  .mod-hero-copy > p { font-size: 17px; }
  .mod-sec { padding: 56px 0 72px; gap: 24px; }
  .mod-replace { gap: 20px; }
  .mod-demo { flex-basis: 100%; }
  .cmp-demo { height: 420px; }
  .xl-row { grid-template-columns: 1.2fr .8fr .8fr 1fr; font-size: 12px; }
  .xl-row span { padding: 6px; }
  .dash { padding: 16px; gap: 12px; }
  .dash-tiles { gap: 8px; }
  .dash-tile { padding: 10px; }
  .dash-tile b { font-size: 15px; }
  .newweb-links span:not(.newweb-cta) { display: none; }
  .mod-check { padding: 28px 22px; margin-bottom: 48px; }
  .mod-check-actions, .mod-check-actions .btn { width: 100%; }
}

/* ---------- Reduced motion: no hover lifts or fades (the scene freezes itself) ---------- */
@media (prefers-reduced-motion: reduce) {
  .mod-card, .mod-tile, .mod-pill, .mod-scene, .mod-btn { transition: none !important; }
  a.mod-card:hover, .mod-tile:hover, .mod-btn:hover { transform: none !important; }
}
