/* codeMeter landing page
   Style: quiet and light, so the product photos sit on the page instead of in
   boxes. Warm off-white, near-black ink, one accent (codeMeter orange). Dark
   only where the device's own screen is shown. Big type, short copy, lots of
   space. One family (Inter Tight), radius 24px for tiles (16px when nested), pill buttons. */
:root {
  --bg: #f4f2ee;
  --bg-soft: #ebe8e2;
  --tile: #e4e2de;
  --ink: #15130f;
  --ink-2: #57524b;
  --ink-3: #8b857c;
  --line: #dcd8d0;
  --accent: #d9693f;
  --accent-ink: #b8532c;
  --dark: #0d0c0b;
  --dark-2: #1c1a17;
  /* device screen colours (codemeter/config.h) */
  --s-orange: #da7756;
  --s-surface: #26221e;
  --s-text: #f5f0e8;
  --s-mute: #8a8780;
  --s-green: #6ea47a;
  --s-amber: #e0a050;
  --r: 24px;
  --r-in: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
b { font-weight: 600; }
code { font-size: .9em; background: var(--bg); padding: .1em .35em; border-radius: 6px; white-space: nowrap; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
.soft { color: var(--ink-3); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font: 600 16px/1 var(--font); padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: #2c2925; transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1eee9; }
.link { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 18px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(244,242,238,.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

/* sections */
.sec { padding: 140px 0; }
.sec-soft { background: var(--bg-soft); }
.head { max-width: 760px; margin-bottom: 56px; }
.head p { color: var(--ink-2); font-size: 20px; margin-top: 18px; }
.head .eyebrow { color: var(--accent-ink); font-size: 15px; margin: 0 0 18px; }
.tile { background: var(--tile); border-radius: var(--r); overflow: hidden; }

/* device composite: a firmware screen warped onto a real photo */
.device { position: relative; width: 100%; isolation: isolate; }
.device-photo { width: 100%; height: auto; transition: opacity .35s; }
.screen { position: absolute; left: 0; top: 0; width: 320px; height: 240px; transform-origin: 0 0; overflow: hidden; background: #000; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%); pointer-events: none; }
.screen > img, .screen > canvas { width: 100%; height: 100%; display: block; }
.screen img.fade { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* live HTML copy of the two-account firmware screen */
.live { font-family: Helvetica, Arial, sans-serif; color: var(--s-text); text-align: left; }
.ls-head { height: 34px; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.ls-brand { color: var(--s-orange); font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
.ls-clock { margin-left: auto; color: var(--s-mute); font-size: 16px; }
.ls-bat { width: 20px; height: 10px; border: 1.6px solid var(--s-mute); border-radius: 2px; position: relative; }
.ls-bat::before { content: ""; position: absolute; inset: 1.5px; background: var(--s-text); }
.ls-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.ls-sig i { width: 2.6px; background: var(--s-text); }
.ls-led { width: 8px; height: 8px; border-radius: 50%; background: var(--s-green); margin-left: 6px; }
.ls-card { position: relative; margin: 2px 8px 6px; background: var(--s-surface); border-radius: 10px; padding: 4px 10px 5px 13px; transition: box-shadow .3s; }
/* rail on the straight part of the left edge; the alert outline replaces it (usg_card_edge) */
.ls-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--s-orange); }
.ls-card.alert { box-shadow: inset 0 0 0 2px var(--s-amber); }
.ls-card.alert::before { display: none; }
.ls-card.alert::after { content: ""; position: absolute; right: 10px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-amber); }
.ls-name { color: var(--s-orange); font-weight: 700; font-size: 15px; line-height: 1.05; }
.ls-row { position: relative; height: 43px; }
.ls-row + .ls-row { border-top: 1px solid #000; }
.ls-lab { position: absolute; left: 0; top: 1px; font-size: 14px; }
.ls-at { position: absolute; right: 56px; top: 1px; font-size: 14px; color: var(--s-mute); }
.ls-left { position: absolute; right: 0; top: 1px; font-size: 14px; color: var(--s-mute); }
.ls-pct { position: absolute; right: 0; top: 19px; font-size: 21px; font-weight: 700; letter-spacing: -.5px; transition: color .4s; }
.ls-bar { position: absolute; left: 0; right: 70px; top: 25px; height: 9px; background: #000; border-radius: 5px; }
.ls-fill { height: 100%; border-radius: 5px; background: var(--s-orange); transition: width 1.2s var(--ease); }
.ls-time { position: absolute; left: 0; top: 11px; height: 2px; background: var(--s-mute); transition: width 1.2s; }

/* hero */
.hero { padding: 150px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.045em; }
.lede { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink-2); max-width: 30em; margin: 26px auto 0; }
.cta { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.from { color: var(--ink-3); font-size: 16px; }
.hero-shot { max-width: 980px; margin: 64px auto 0; border-radius: var(--r); overflow: hidden; }

/* at a glance */
.glance { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.panel-dark { background: var(--dark); border-radius: var(--r); padding: clamp(24px, 4vw, 52px); }
.flat { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 10px #000, 0 0 0 11px #2a2723; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.facts li { display: grid; gap: 6px; padding-left: 20px; border-left: 2px solid var(--line); cursor: pointer; transition: border-color .3s; }
.facts li b, .facts li span { transition: color .3s; }
.facts li:not(.on) b { color: var(--ink-3); }
.facts li:not(.on) span { color: var(--ink-3); }
.facts li.on { border-left-color: var(--accent); }
/* The fact being read lights up its part of the live screen. */
.flat .ls-head, .flat .ls-name, .flat .ls-lab, .flat .ls-at, .flat .ls-left, .flat .ls-pct, .flat .ls-fill, .flat .ls-time { transition: opacity .4s, background .4s; }
.flat[data-f] .ls-head, .flat[data-f] .ls-name, .flat[data-f] .ls-lab, .flat[data-f] .ls-at, .flat[data-f] .ls-left, .flat[data-f] .ls-pct, .flat[data-f] .ls-fill, .flat[data-f] .ls-time { opacity: .22; }
.flat[data-f="used"] .ls-pct, .flat[data-f="used"] .ls-fill,
.flat[data-f="reset"] .ls-at, .flat[data-f="reset"] .ls-left,
.flat[data-f="pace"] .ls-fill, .flat[data-f="pace"] .ls-time, .flat[data-f="pace"] .ls-pct { opacity: 1; }
.flat[data-f="pace"] .ls-time { background: #fff; }
.facts b { font-size: 22px; letter-spacing: -.02em; }
.facts span { color: var(--ink-2); }

/* setups */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: none; border: 0; color: var(--ink-2); font: 600 15px var(--font); padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.mode { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.mode-copy h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.mode-copy p { color: var(--ink-2); margin-top: 16px; }
.mode-copy .for { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }
.mode-copy .swap { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* updates */
.story { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.beat { padding: 32px 32px 0 0; }
.beat + .beat { padding-left: 32px; border-left: 1px solid var(--line); }
.date { display: block; font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 12px; }
.beat p { font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
.beat .link { font-size: 18px; white-space: nowrap; }

/* builder */
.builder { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.b-stage { position: sticky; top: 84px; }
.b-panel { padding-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { display: flex; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 14px; font-size: 15px; font-weight: 600; }
legend span { font-weight: 400; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -5px 10px rgba(0,0,0,.15); transition: transform .15s; }
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts-wrap { display: flex; flex-wrap: wrap; }
.opts button { background: #fff; border: 1.5px solid transparent; color: var(--ink); border-radius: var(--r-in); padding: 12px 14px; font: 600 15px var(--font); cursor: pointer; text-align: left; transition: border-color .2s; }
.opts-wrap button { padding: 10px 16px; border-radius: 999px; }
.opts button small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; margin-top: 2px; }
.opts button[aria-pressed="true"] { border-color: var(--ink); }
.opts button:disabled { opacity: .35; cursor: not-allowed; }
.hint { color: var(--ink-3); font-size: 14px; margin-top: 10px; }
.b-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.b-price { font-size: 44px; font-weight: 700; letter-spacing: -.04em; }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 10px; }

/* teams */
.team-tile { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--dark); color: #f5f2ec; border-radius: var(--r); padding: clamp(28px, 5vw, 64px); }
.team-tile .eyebrow { color: var(--s-orange); }
.team-copy > p:not(.eyebrow) { color: #bdb6ab; font-size: 20px; margin-top: 18px; }
.brand-form { display: grid; gap: 12px; margin-top: 36px; max-width: 440px; }
.brand-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brand-form label { position: relative; display: block; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pick span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px; background: var(--dark-2); color: #f5f2ec; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px #34302b; }
.pick input:focus-visible + span { outline: 2px solid var(--s-orange); outline-offset: 2px; }
.swatch-lab::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--brand, #632ca6); }
.txt input { height: 48px; width: 100%; border-radius: 999px; border: 0; background: var(--dark-2); box-shadow: inset 0 0 0 1px #34302b; color: #f5f2ec; padding: 0 18px; font: 500 15px var(--font); }
.txt input::placeholder { color: #8b857c; }
.brand-form .btn { margin-top: 4px; }
.team-tile .hint { color: #8b857c; }
.team-shot .tile { border-radius: var(--r-in); }

/* setup */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps span { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; display: grid; place-items: center; margin-bottom: 10px; }
.steps b { font-size: 22px; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); }
.note { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 26px 0; }

/* close + footer */
.close { padding: 40px 0 140px; }
.close-in { text-align: center; display: grid; justify-items: center; gap: 32px; }
.close h2 { font-size: clamp(44px, 7vw, 88px); }
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--ink-3); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 12px; max-width: 26em; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col .foot-head { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.foot-col .foot-head:hover { color: var(--accent); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.legal { font-size: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sticky-buy { display: none; }

/* reveal (only with JS, so the page never renders blank) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .sec { padding: 100px 0; }
  .glance, .mode, .builder, .team-tile { grid-template-columns: 1fr; gap: 36px; }
  .story { grid-template-columns: 1fr; }
  .beat, .beat + .beat { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .team-shot { order: -1; }
  /* builder: the preview stays in view while picking */
  .b-stage { top: 60px; z-index: 5; border-radius: 0; margin: 0 calc(var(--gut) * -1); background: var(--bg-soft); padding: 8px var(--gut) 12px; }
  .b-stage .device { max-width: 360px; margin: 0 auto; border-radius: var(--r-in); overflow: hidden; }
}

/* phone */
@media (max-width: 600px) {
  :root { --gut: 18px; }
  body { font-size: 17px; }
  .hero { padding: 116px 0 40px; }
  .hero-shot { margin-top: 44px; border-radius: var(--r-in); }
  .head { margin-bottom: 36px; }
  .head p { font-size: 18px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-in); }
  .tabs button { padding: 11px 8px; border-radius: 12px; }
  .facts b, .steps b { font-size: 20px; }
  .beat p { font-size: 20px; }
  .opts { grid-template-columns: 1fr; }
  .opts:not(.opts-wrap) button { display: flex; justify-content: space-between; align-items: center; }
  .opts button small { margin: 0; }
  .b-stage .device { max-width: 230px; }
  .b-buy .btn { flex: 1; }
  .brand-form .row { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; justify-content: center; gap: 8px; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40; padding: 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transform: translateY(150%); transition: transform .35s var(--ease); }
  .sticky-buy span { opacity: .65; font-weight: 500; }
  .sticky-buy.show { transform: none; }
  .foot { padding-bottom: 100px; }
}

/* ---------- family site additions ---------- */
.crumb { color: var(--ink-3); margin: 0 -20px; }
.crumb-name { font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand { color: var(--ink); }
.flat .dim { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .62; pointer-events: none; }
.flat .dim rect[mask] { transition: opacity .3s; }
.team-cta { margin-top: 32px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* home: one device, every meter */
.switch { margin-top: 48px; }
.tabs-center { margin: 0 auto 28px; }
.tabs-center button[aria-selected="true"] { background: var(--accent); }
.switch .hero-shot { margin-top: 0; }
.switch-cap { text-align: center; margin-top: 24px; font-size: 19px; color: var(--ink-2); min-height: 1.6em; }
.switch-cap b { font-weight: 700; }
.hero-link { display: block; transition: transform .35s var(--ease); }
.hero-link:hover { transform: translateY(-2px); }
.hero-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.switch-cta { text-align: center; margin-top: 20px; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; text-decoration: none; color: inherit; }
.card .tile { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover .tile { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.35); }
.card-name { margin-top: 18px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.card-text { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.card-more { margin-top: 10px; color: var(--ink-3); font-size: 15px; display: flex; gap: 12px; }
.card-more span { color: var(--ink); font-weight: 600; }

.story-4 { grid-template-columns: repeat(4, 1fr); }
.colour-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.swatches-lg { gap: 16px; }
.swatches-lg button { width: 52px; height: 52px; }
.colour-name { margin-top: 20px; font-size: 22px; font-weight: 600; }
.close-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .story-4 { grid-template-columns: 1fr 1fr; }
  .colour-row { grid-template-columns: 1fr; gap: 28px; }
  .crumb, .crumb-name { display: none; }
}
@media (max-width: 600px) {
  .cards, .cards-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-name { font-size: 18px; margin-top: 12px; }
  .card-text { font-size: 14px; }
  .card-more { font-size: 13px; flex-direction: column; gap: 2px; }
  .story-4 { grid-template-columns: 1fr; }
  .tabs-center { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Live device screens drawn by products/<slug>/screen.js (640x480 canvas, 2x the panel) */
.screen canvas.meter-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; background: #000; }
/* Lookup tool section: products/<slug>/tool.js owns everything inside #meterTool */
.tool { max-width: 980px; margin: 0 auto; }

/* In use: a looping clip of the meter on someone's desk */
.use { border-radius: 24px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.use video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* SEO landing pages (templates/landing.html) */
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li:first-child a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); }
.crumbs li:first-child a::before { content: "\2190"; }
.crumbs li:first-child a:hover { text-decoration: none; background: var(--tile); }
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; }
.related a { color: var(--ink-2); text-decoration: none; }
.related a:hover { color: var(--ink); text-decoration: underline; }

/* Browse row on meter pages (links to the SEO hubs) */
.sec-tight { padding-top: 24px; padding-bottom: 24px; }
.browse { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--ink-3); font-size: 15px; margin: 0; }
.browse span:first-child { margin-right: 4px; }
.browse span[aria-hidden] { display: none; }
.browse a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, box-shadow .2s; }
.browse a:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- shared blocks (templates/parts.html) ---------- */
/* in-use scene photos: three across; a swipe row on phones */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.use + .scenes { margin-top: 16px; }
.scenes figure { margin: 0; border-radius: var(--r-in); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 3; }
.scenes img { width: 100%; height: 100%; object-fit: cover; }

/* stand colours as links into the builder */
.finish-row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.finish-lab { color: var(--ink-2); }
.finish-lab b { color: var(--ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; text-decoration: none; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.chips i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -3px 6px rgba(0,0,0,.15); }
.chips small { color: var(--ink-3); font-weight: 500; font-size: 13px; }

/* the other meters */
.fam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fam-card { display: grid; gap: 16px; text-decoration: none; color: inherit; }
.fam-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-in); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fam-card:hover img { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.45); }
.fam-txt { display: grid; gap: 4px; }
.fam-txt b { font-size: 22px; letter-spacing: -.02em; color: var(--accent); }
.fam-txt span { color: var(--ink-2); font-size: 16px; }
.fam-txt em { font-style: normal; font-weight: 600; font-size: 15px; margin-top: 4px; }

/* home: one scene per meter */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mosaic a { display: grid; gap: 12px; text-decoration: none; color: var(--ink-2); font-size: 16px; }
.mosaic img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-in); transition: transform .4s var(--ease); }
.mosaic a:hover img { transform: translateY(-4px); }
.mosaic b { color: var(--accent); font-weight: 700; display: block; font-size: 19px; letter-spacing: -.02em; }

/* home: every meter's hub pages */
.find { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.find-name { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); text-decoration: none; margin-bottom: 14px; }
.find ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.find ul a { color: var(--ink-2); text-decoration: none; }
.find ul a:hover { color: var(--ink); text-decoration: underline; }

.back { margin-top: 40px; }
.related + .back { padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .fam { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 8px; scroll-padding-inline: var(--gut); }
  .fam::-webkit-scrollbar, .scenes::-webkit-scrollbar { display: none; }
  .fam-card { scroll-snap-align: start; }
  .mosaic, .find { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .scenes { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut); scroll-padding: 0 var(--gut); gap: 10px; }
  .scenes figure { scroll-snap-align: start; }
  .fam { grid-template-columns: repeat(3, 72%); gap: 14px; }
  .fam-txt b { font-size: 19px; }
  .mosaic { gap: 12px; }
  .mosaic a { font-size: 14px; }
  .mosaic b { font-size: 17px; }
  .find { gap: 28px 16px; }
  .finish-row { margin-top: 28px; }
  .chips a { font-size: 14px; }
  .close-links .btn-lg { padding: 16px 24px; font-size: 16px; }
  .crumbs { font-size: 13px; }
  .related { grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 16px; }
}
