/*
Theme Name: Ebacos
Theme URI: https://ebacos.com
Author: Ebacos SARL
Description: One-page company theme for Ebacos, yacht systems engineering in La Ciotat. Hero with animated logo, services, recent projects slider, values and commitments, partners and contact. Services, projects and partners are edited under their own admin menus; all texts are in Appearance → Customize → Ebacos homepage.
Version: 2.51.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebacos
Domain Path: /languages
*/

/* Poppins, self-hosted (no request to Google servers, GDPR friendly) */
/* Company name under the hero logo, in the logo's lettering: Open Sans Bold + PT Sans Narrow (SIL OFL, see assets/fonts). */
@font-face { font-family: "Ebacos Logo Bold"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/open-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Ebacos Logo Bold"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/open-sans-700-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Ebacos Logo Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/pt-sans-narrow-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Ebacos Logo Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/pt-sans-narrow-400-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F6F8;
  --card: #FFFFFF;
  --card-2: #F1F3F5;
  --line: #E2E5E9;
  --fg: #14171C;
  --fg-2: #3E444B;
  --muted: #5E656D;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --accent-rgb: 142 214 0;
  --lime: rgb(var(--accent-rgb));
  --lime-tint: rgb(var(--accent-rgb) / 0.14);
  --accent-ink: var(--lime);
  --on-lime: #0E1400;
  --font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
body.mode-light { color-scheme: only light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 0.97rem; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap-max, 1440px); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Shared doc elements */
.eyebrow { display: block; color: var(--accent-ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
.bar { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--lime); margin-top: 18px; }
.sub { color: var(--muted); margin: 14px 0 0; max-width: 40em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tile { width: 44px; height: 44px; border-radius: 10px; background: var(--lime-tint); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.tile svg { width: 22px; height: 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; }
.checks li::before { content: "✓"; color: var(--accent-ink); font-weight: 600; flex: none; }
.checks li span { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.btn.primary { background: var(--lime); border-color: var(--accent-ink); color: var(--on-lime); }
.btn:hover { filter: brightness(1.05); }
.btn:not(.primary):hover { border-color: var(--fg-2); }
.btn { white-space: nowrap; line-height: 1.2; }

/* Header: hidden at the top of the page, slides in as the logo flies up into it */
[id] { scroll-margin-top: 84px; }
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); --p: 1; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * -100%)); }
.js-fly .top { --p: 0; }
.top.hidden { pointer-events: none; visibility: hidden; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Logo, name, grey partner name on one line, the division line under the names. */
.brand-box { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; min-width: 0; }
.brand-box .brand, .brand-box .brand-text { display: contents; }
.brand-box .brand-slot { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin-right: 12px; }
.brand-box .word { grid-column: 2; grid-row: 1; }
.brand-box .brand-div { grid-column: 2 / span 2; grid-row: 2; line-height: 1.2; }
.brand-partner { grid-column: 3; grid-row: 1; margin-left: .35em; font-weight: 600; letter-spacing: 0.03em; font-size: 0.95rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
a.brand-partner:hover, a.brand-partner:focus-visible { color: var(--fg); }
.brand-box .brand:focus-visible .word { outline: 2px solid rgb(var(--accent-rgb) / .6); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 520px) { .brand-box .brand-slot { margin-right: 10px; } .brand-partner { grid-column: 2; grid-row: 2; margin-left: 0; font-size: 0.72rem; line-height: 1.2; } }
.brand-slot { width: 36px; height: 36px; display: block; }
.brand-slot img { width: 100%; height: 100%; display: block; }
.js-fly .brand-slot img { visibility: hidden; }
.brand .word { font-weight: 700; letter-spacing: 0.06em; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button { text-decoration: none; font: inherit; font-size: 0.88rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav .dd > button:hover, .nav .dd:focus-within > button, .nav .dd.open > button { color: var(--fg); background: var(--card-2); }
.nav .btn { margin-left: 8px; padding: 9px 18px; }
.caret { width: 10px; height: 10px; }
.dd { position: relative; }
.dd-panel { position: absolute; right: 0; top: 100%; padding-top: 10px; display: none; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { display: block; }
.dd-list { list-style: none; margin: 0; padding: 8px; width: 320px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14); }
.dd-list a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.dd-list a:hover, .dd-list a:focus-visible { background: var(--card-2); }
.dd-list .tile { width: 34px; height: 34px; border-radius: 8px; }
.dd-list .tile svg { width: 18px; height: 18px; }
.dd-list small { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 400; }
.menu-btn { display: none; }
@media (max-width: 1200px) {
  .nav > a.sec, .nav .dd { display: none; }
  .menu-btn { display: inline-flex; }
}
/* Narrow phones: tighter navbar so "Contact us" always stays on one line */
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .brand { gap: 10px; }
  .brand .word { font-size: 0.95rem; }
  .nav { gap: 6px; }
  .nav .btn { margin-left: 0; padding: 8px 12px; font-size: 0.85rem; }
}
@media (max-width: 359px) {
  .brand .word { display: none; }
}
.mobile-panel { position: absolute; right: clamp(16px, 4vw, 40px); top: calc(100% + 8px); }
.mobile-panel .dd-list { width: 300px; }
.mobile-panel .dd-list .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* The logo that travels from the hero to the navbar */
.fly { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; transform-origin: 0 0; display: none; will-change: transform; }
.js-fly .fly { display: block; }
.js-fly .hero-logo img { visibility: hidden; }

/* Screens */
.screen { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); position: relative; }
.screen:nth-of-type(even) { background: var(--bg-2); }
.head { margin-bottom: clamp(32px, 4vw, 48px); }

/* 1 · Hero */
.hero { background: radial-gradient(70% 90% at 92% 0%, rgb(var(--accent-rgb) / 0.16), rgb(var(--accent-rgb) / 0) 60%), var(--bg); padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); grid-template-areas: "logo copy" "ctas copy"; gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.hero-logo { grid-area: logo; }
.hero-logo img { width: min(320px, 100%); height: auto; display: block; }
.hero-company { margin: 16px 0 0; width: min(320px, 100%); text-align: center; color: var(--fg); line-height: 1.1; will-change: opacity, transform; }
.hero-company .l1 { display: block; font-family: "Ebacos Logo Narrow", "Arial Narrow", sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.05rem); white-space: nowrap; }
.hero-company .l1 b { font-family: "Ebacos Logo Bold", "Open Sans", Arial, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.hero-company .l2 { display: block; margin-top: 4px; font-family: "Ebacos Logo Narrow", "Arial Narrow", sans-serif; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.hero.has-media .hero-company { color: inherit; }
.hero-ctas { grid-area: ctas; display: flex; gap: 12px; flex-wrap: wrap; align-self: end; }
.hero-copy { grid-area: copy; display: grid; gap: 28px; min-width: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "logo" "copy" "ctas"; }
  .hero-logo img { width: 120px; }
  .hero-company { width: auto; margin-top: 10px; text-align: left; }
  .hero-company .l1 { font-size: 1.35rem; } .hero-company .l2 { font-size: .95rem; }
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.why { padding: 20px 22px; display: grid; gap: 14px; }
.why h3 { font-size: 1rem; font-weight: 600; }
.why .checks { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 600px) { .why .checks { grid-template-columns: 1fr; } }

/* Recent projects slider */
.projects { margin-bottom: clamp(48px, 6vw, 72px); }
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.proj-head h3 { font-size: 1.25rem; font-weight: 700; }
.proj-nav { display: flex; gap: 8px; }
.proj-nav button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.proj-nav button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.proj-nav button:disabled { opacity: 0.35; cursor: default; border-color: var(--line); color: var(--fg); }
.proj-nav svg { width: 18px; height: 18px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
@media (max-width: 960px) { .track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .track { grid-auto-columns: 86%; } }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
.proj { scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.proj-img { aspect-ratio: 16 / 10; max-width: 100%; position: relative; display: grid; place-items: center; color: var(--accent-ink); border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 80% 10%, rgb(var(--accent-rgb) / 0.18), rgb(var(--accent-rgb) / 0) 60%), linear-gradient(135deg, var(--card-2), var(--bg)); }
.proj-img svg { width: 44px; height: 44px; opacity: 0.9; }
.proj-img .ph { position: absolute; left: 12px; bottom: 10px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.proj-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.proj-body .lbl { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.proj-body h4 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.proj-body p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 24px; background: var(--lime); }
.geo { padding: 18px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .geo { grid-template-columns: 1fr; } }
.geo .lbl { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.geo .val { display: block; font-weight: 600; font-size: 0.95rem; }
.svc-icons { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.85rem; }
.svc-icons span { display: inline-flex; align-items: center; gap: 8px; }
.svc-icons svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* 2 · Vision */
.vision { padding: clamp(24px, 4vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.vision > * { min-width: 0; }
@media (max-width: 700px) { .vision { grid-template-columns: 1fr; } }
.vision blockquote { margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.vision blockquote em { font-style: normal; color: var(--accent-ink); }
.vision .mission { color: var(--muted); margin: 14px 0 0; }

/* Service cards */
.svc-grid { display: grid; gap: 16px; }
.svc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-grid.three .svc:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .svc-grid.two, .svc-grid.three { grid-template-columns: 1fr; } .svc-grid.three .svc:last-child { grid-column: auto; } }
.svc { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc-top { display: flex; gap: 16px; align-items: center; }
.svc h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.svc p { margin: 0; color: var(--muted); }
.kit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.kit .lbl { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--lime-tint); color: var(--accent-ink); }

/* 4 · Values & commitments */
.vc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .vc { grid-template-columns: 1fr; } }
.col-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.values { display: grid; gap: 12px; }
.value { padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; }
.value > div { min-width: 0; }
.value h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.value p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.commits { padding: 8px 22px; }
.commit { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.commit:last-child { border-bottom: 0; }
.commit h3 { font-size: 1rem; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.commit h3::before { content: "✓"; color: var(--accent-ink); }
.commit p { margin: 0 0 0 24px; color: var(--muted); font-size: 0.9rem; }

/* 5 · Partners */
/* Four per row (two on phones); an unfinished last row is centred. */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos > .logo-tile { flex: 0 1 calc((100% - 36px) / 4); }
@media (max-width: 700px) { .logos > .logo-tile { flex-basis: calc((100% - 12px) / 2); } }
.logo-tile { min-height: 140px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px 16px; min-width: 0; text-align: center; transition: border-color .2s; }
.logo-tile:hover { border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); }
/* Each logo gets its own frame in the logo's own proportions (--r = width / height of the file).
   Frames share one height so logos carry the same visual weight; very wide logos shrink to fit. */
.logo-frame { --r: 2.5; --h: 64px; display: block; width: min(100%, calc(var(--r) * var(--h))); aspect-ratio: var(--r); max-width: 100%; }
.logo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-frame.plate { background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 8px; padding: 6px 10px; width: min(100%, calc(var(--r) * var(--h) + 20px)); }
.logo-frame.empty { border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; padding: 0 10px; }
.logo-frame.empty span { color: var(--muted); font-weight: 600; font-size: 0.85rem; line-height: 1.2; }
.logos.admin-placeholders .logo-tile { border-style: dashed; }
.logo-tile .ph-logo { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.logo-tile .cat { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }

/* Contact */
.contact { background: radial-gradient(60% 80% at 10% 100%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--bg); padding-block: clamp(64px, 9vw, 112px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 8px 24px; }
.contact-card .row { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .lbl { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-card .val { font-weight: 600; text-align: right; }
.todo { color: var(--muted); border-bottom: 1px dashed var(--muted); font-weight: 500; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }

/* WordPress: admin bar offset for the fixed header */
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .top { top: 0; } }

/* Footer links (legal pages) */
.site-footer .footer-group { padding-block: 18px 0; }
.site-footer .footer-group p { margin: 0; max-width: 760px; font-size: 0.82rem; color: var(--fg-2); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* Hints only logged-in editors see, for sections that are still empty */
.admin-hint { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--lime); border-radius: 8px; color: var(--accent-ink); font-size: 0.82rem; background: var(--lime-tint); }
.admin-hint a { color: inherit; font-weight: 600; }
.proj-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--accent-ink); }
.contact-form { margin-top: 24px; }
a.logo-tile { text-decoration: none; color: inherit; }

/* Inner pages (legal notice, privacy policy, posts) */
.page-main { padding-top: 64px; min-height: 70vh; }
.page-main .wrap { max-width: 820px; padding-block: clamp(48px, 7vw, 88px); }
.page-main h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; }
.entry { margin-top: 32px; color: var(--fg-2); }
.entry h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.entry h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.entry a { color: var(--accent-ink); }
.entry img { max-width: 100%; height: auto; border-radius: 12px; }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.post-list li { padding: 22px; }
.post-list h2 { font-size: 1.25rem; }
.post-list a { text-decoration: none; }
.post-list time { color: var(--muted); font-size: 0.8rem; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--lime); color: var(--on-lime); border-color: var(--accent-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--lime); color: var(--on-lime); border-radius: 8px; }

/* AMS: green navbar link and feature card */
.nav > a.ams-link { color: var(--accent-ink); border: 1px solid rgb(var(--accent-rgb) / 0.4); margin-inline: 4px; }
.nav > a.ams-link svg { width: 15px; height: 15px; }
.nav > a.ams-link:hover, .nav > a.ams-link[aria-current="page"] { background: var(--lime-tint); color: var(--accent-ink); }
.dd-list a.ams-item { color: var(--accent-ink); }
.ams { margin-top: 16px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  border-color: rgb(var(--accent-rgb) / 0.35); background: radial-gradient(60% 140% at 100% 0%, rgb(var(--accent-rgb) / 0.16), rgb(var(--accent-rgb) / 0) 60%), var(--card); }
.ams .tile { width: 56px; height: 56px; border-radius: 12px; }
.ams .tile svg { width: 28px; height: 28px; }
.ams .eyebrow { margin-bottom: 8px; }
.ams h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.25; }
.ams h3 em { font-style: normal; color: var(--accent-ink); }
.ams p { margin: 8px 0 0; color: var(--muted); max-width: 44em; }
@media (max-width: 760px) {
  .ams { grid-template-columns: 1fr; gap: 16px; }
  .ams .btn { justify-self: start; }
}

/* ===== AMS product page ===== */
.ams-page { padding-top: 64px; --alarm: #F04438; }
.ams-hero { background: radial-gradient(60% 80% at 85% 10%, rgb(var(--accent-rgb) / 0.14), rgb(var(--accent-rgb) / 0) 60%), var(--bg); padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.ams-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .ams-hero .wrap { grid-template-columns: 1fr; } }
.ams-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
.ams-hero h1 em, .ams-page h2 em, .ams-reviews-title em { font-style: normal; color: var(--accent-ink); }
.ams-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Screens shown in a dark bezel, like the panel on board */
.monitor { margin: 0; }
.monitor-screen { display: block; padding: 10px; background: #0A0B0D; border: 1px solid var(--line); border-radius: 16px; cursor: zoom-in;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.16), 0 0 60px rgb(var(--accent-rgb) / 0.07); transition: border-color .2s, transform .2s; }
.monitor-screen img { display: block; width: 100%; height: auto; border-radius: 8px; }
.monitor-screen:hover { border-color: rgb(var(--accent-rgb) / 0.45); }
.monitor .monitor-screen { padding: 14px; border-radius: 20px; }

/* Systems strip */
.ams-systems { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ams-systems .wrap { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; padding-block: 22px; }
.ams-systems span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 500; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); }
.ams-systems span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* "Know why": text + example alarm */
.ams-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .ams-why { grid-template-columns: 1fr; } }
.ams-why .head { margin-bottom: 0; }
.ams-why-text { margin-top: 20px; }
.ams-why { align-items: start; }
.ams-why.no-visual { grid-template-columns: 1fr; }
.ams-why.no-visual .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .ams-why.no-visual .why-points { grid-template-columns: 1fr; } }
.why-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.why-points li { display: flex; gap: 16px; align-items: flex-start; }
.why-points li > div { min-width: 0; }
.why-points h3 { font-size: 1.02rem; }
.why-points p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Illustration: red-framed value, its trend, and the history log */
.hmi { background: #0A0B0D; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12); position: sticky; top: 88px; }
.hmi-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hmi-tile { border: 2px solid #2A2D33; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.hmi-tile.is-fault { border-color: var(--alarm); box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18); animation: fault-frame 1.6s infinite; }
@keyframes fault-frame { 50% { box-shadow: 0 0 0 6px rgba(240, 68, 56, 0.05); } }
@media (prefers-reduced-motion: reduce) { .hmi-tile.is-fault { animation: none; } }
.hmi-name { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmi-val { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hmi-val small { font-size: 0.75rem; color: var(--muted); margin-left: 2px; }
.hmi-state { font-size: 0.72rem; font-weight: 600; color: var(--alarm); }
.hmi-state.ok { color: var(--accent-ink); }
.hmi-trend { border: 1px solid #2A2D33; border-radius: 8px; padding: 10px 12px 8px; }
.hmi-label { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hmi-trend svg { display: block; width: 100%; height: 120px; }
.hmi-trend .grid line { stroke: #22262C; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hmi-trend .limit { stroke: var(--alarm); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.hmi-trend .area { fill: rgba(56, 170, 230, 0.14); }
.hmi-trend .line { fill: none; stroke: #38AAE6; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hmi-trend .dot { fill: var(--alarm); }
.hmi-axis { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.hmi-log { list-style: none; margin: 0; padding: 0; border: 1px solid #2A2D33; border-radius: 8px; }
.hmi-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 8px 12px; font-size: 0.8rem; border-top: 1px solid #22262C; align-items: center; }
.hmi-log li:first-child { border-top: 0; }
.hmi-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hmi-log span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmi-log b { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.hmi-log li.is-fault span, .hmi-log li.is-fault b { color: var(--alarm); }
@media (max-width: 900px) { .hmi { position: static; } }
@media (max-width: 420px) { .hmi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hmi-tiles .hmi-tile:last-child { display: none; } }

/* Screens gallery */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 960px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature h3 { font-size: 1.08rem; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* How we deliver: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 16px; min-width: 0; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent-ink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 8px; }
.steps h3 { font-size: 1rem; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }

.ams-body .entry { max-width: 820px; margin-top: 0; }
.ams-cta { text-align: center; }
.ams-cta .bar { margin-inline: auto; }
.ams-cta .sub { margin-inline: auto; }
.ams-cta .ams-ctas { justify-content: center; }

/* Screenshot viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 6, 8, 0.88); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1; }
/* Tall screenshots: keep the top section compact */
.monitor { display: flex; justify-content: center; }
.monitor .monitor-screen { width: fit-content; max-width: 100%; }
.monitor .monitor-screen img { width: auto; max-width: 100%; max-height: min(72vh, 640px); }

/* AMS top carousel: the active screen in front, the next ones waiting behind it */
.flow { min-width: 0; --stage-h: min(70vh, 640px); --shift: 36%; }
.flow-stage { position: relative; height: var(--stage-h); perspective: 1800px; touch-action: pan-y; }
.flow-item { position: absolute; top: 0; left: 50%; width: 72%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateX(-50%) scale(0.5); z-index: 0;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), opacity .7s, filter .7s; }
.flow-item .monitor-screen { max-width: 100%; max-height: 100%; }
.flow-item img { width: auto; height: auto; max-width: 100%; max-height: calc(var(--stage-h) - 24px); }
.flow:not(.ready) .flow-item:first-child,
.flow-item[data-pos="0"] { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); z-index: 3; }
.flow-item[data-pos="-1"], .flow-item[data-pos="1"] { opacity: 0.6; pointer-events: auto; cursor: pointer; z-index: 2; filter: brightness(0.55) saturate(0.8); }
.flow-item[data-pos="-1"] { transform: translateX(calc(-50% - var(--shift))) scale(0.78) rotateY(16deg); }
.flow-item[data-pos="1"] { transform: translateX(calc(-50% + var(--shift))) scale(0.78) rotateY(-16deg); }
.flow-item[data-pos="-2"] { opacity: 0.2; z-index: 1; transform: translateX(calc(-50% - var(--shift) * 1.6)) scale(0.6) rotateY(22deg); filter: brightness(0.4); }
.flow-item[data-pos="2"] { opacity: 0.2; z-index: 1; transform: translateX(calc(-50% + var(--shift) * 1.6)) scale(0.6) rotateY(-22deg); filter: brightness(0.4); }
.flow-item[data-pos="-1"] .monitor-screen, .flow-item[data-pos="1"] .monitor-screen { cursor: pointer; }
.flow-item[data-pos="-1"]:hover, .flow-item[data-pos="1"]:hover { filter: brightness(0.8); opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { .flow-item { transition: opacity .3s; } }
.flow-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.flow-controls button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; }
.flow-controls button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.flow-controls svg { width: 18px; height: 18px; }
.flow-caption { margin: 0; min-width: 0; flex: 0 1 320px; text-align: center; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
@media (max-width: 900px) { .flow { --stage-h: min(62vh, 560px); } }
@media (max-width: 600px) { .flow { --stage-h: min(58vh, 460px); --shift: 26%; } .flow-item { width: 78%; } }
.ams-hero { overflow: hidden; }

/* ===== About page ===== */
.about-page { padding-top: 64px; }
.about-page h1 em, .about-page h2 em { font-style: normal; color: var(--accent-ink); }
.about-hero { background: radial-gradient(60% 80% at 85% 10%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--bg); padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.about-hero > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-hero > .wrap.no-photo { grid-template-columns: minmax(0, 760px); }
@media (max-width: 900px) { .about-hero > .wrap:first-child { grid-template-columns: 1fr; } }
.about-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12); }
.figures { margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.figures > div { border-top: 2px solid var(--lime); padding-top: 14px; }
.figures dt { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.text-link { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.story { margin-top: clamp(48px, 6vw, 80px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; max-width: 900px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; position: relative; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: 104px; top: 10px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 100px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.timeline .year { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.timeline li > div { padding-left: 16px; }
.timeline h3 { font-size: 1.05rem; }
.timeline p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 20px; }
  .timeline li::before { left: 4px; } .timeline li::after { left: 0; }
  .timeline li > div { padding-left: 0; }
}
.about-body { margin-top: 40px; max-width: 820px; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
.member { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.member-photo { aspect-ratio: 4 / 5; max-width: 100%; background: linear-gradient(135deg, var(--card-2), var(--bg)); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-photo .initials { font-size: 2.6rem; font-weight: 700; color: var(--accent-ink); letter-spacing: 0.04em; }
.member-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.member-body h3 { font-size: 1.08rem; }
.member-body .role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.member-body p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.office.no-photo { grid-template-columns: minmax(0, 720px); }
@media (max-width: 900px) { .office { grid-template-columns: 1fr; } }
.office .contact-card .val { text-align: right; }
.legal { margin-top: clamp(40px, 5vw, 64px); }
.legal-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.legal-list > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.legal-list dt { color: var(--muted); font-size: 0.85rem; }
.legal-list dd { margin: 0; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
/* Office: map loads only on click (no Google cookies before consent) */
.office-side { display: grid; gap: 16px; min-width: 0; }
.map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(60% 60% at 50% 45%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 70%), var(--card); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.2); }
.map-load { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 8px; font: inherit; padding: 16px; text-align: center; }
.map-load svg { width: 40px; height: 40px; color: var(--accent-ink); }
.map-title { font-weight: 600; padding: 9px 18px; border-radius: 8px; background: var(--lime); color: var(--on-lime); }
.map-note { color: var(--muted); font-size: 0.78rem; }
.map-load:hover .map-title { filter: brightness(1.08); }

/* Certificates: filter chips + compact cards */
.cert-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-btn { font: inherit; font-size: 0.82rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip-btn span { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-btn:hover { color: var(--fg); }
.chip-btn[aria-pressed="true"] { background: var(--lime-tint); border-color: rgb(var(--accent-rgb) / 0.45); color: var(--accent-ink); }
.chip-btn[aria-pressed="true"] span { color: var(--accent-ink); }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-grid li { min-width: 0; }
.cert-grid li[hidden] { display: none !important; }
.cert { height: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; text-decoration: none; color: inherit; }
a.cert:hover { border-color: rgb(var(--accent-rgb) / 0.45); }
.cert-logo { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.cert-logo .logo-frame { --h: 44px; }
.cert-body { display: grid; gap: 3px; min-width: 0; }
.cert-cat { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.cert-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.cert-meta { color: var(--muted); font-size: 0.8rem; }
.cert-open { color: var(--muted); font-size: 1rem; }
a.cert:hover .cert-open { color: var(--accent-ink); }
.cert-more-wrap { margin: 20px 0 0; display: flex; justify-content: center; }
.certs:not(.show-all) .cert-grid li.is-extra { display: none; }
.certs.filtered .cert-grid li.is-extra { display: block; }

/* Navbar: links, Menu and Contact us share one height */
.nav > a, .nav .dd > button, .nav .btn { height: 38px; padding-block: 0; line-height: 1; font-size: 0.88rem; }
.nav .btn { padding-inline: 16px; font-weight: 600; border-width: 1px; }
@media (max-width: 420px) { .nav > a, .nav .dd > button, .nav .btn { height: 36px; font-size: 0.85rem; } .nav .btn { padding-inline: 12px; } }

/* Parent company */
.brand-text { display: grid; line-height: 1.1; }
.brand-div { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .brand-div { display: none; } }
.site-footer .group { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .group img { height: 22px; width: auto; display: block; }
.group-card { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3.5vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 36px); align-items: center; }
.group-card .logo-frame { --h: 72px; }
.group-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.group-card h2 em { font-style: normal; color: var(--accent-ink); }
.group-card p { margin: 8px 0 0; color: var(--muted); max-width: 52em; }
.group-card .eyebrow { margin-bottom: 8px; }
@media (max-width: 800px) { .group-card { grid-template-columns: 1fr; } .group-card .btn { justify-self: start; } }

/* ===== About: story timeline ===== */
.tl { --tl-progress: 0%; position: relative; list-style: none; margin: clamp(16px, 3vw, 32px) 0 0; padding: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; }
.tl::before { bottom: 0; background: var(--line); }
.tl::after { height: var(--tl-progress); background: linear-gradient(var(--lime), var(--lime)); box-shadow: 0 0 14px rgb(var(--accent-rgb) / 0.5); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: start; padding-bottom: clamp(28px, 4vw, 48px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item.is-left { grid-template-areas: "card dot year"; }
.tl-item.is-right { grid-template-areas: "year dot card"; }
.tl-card { grid-area: card; overflow: hidden; transition: border-color .4s; }
.tl-dot { grid-area: dot; justify-self: center; position: relative; z-index: 1; margin-top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; }
.tl-year { grid-area: year; margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1; color: var(--line); font-variant-numeric: tabular-nums; transition: color .4s; }
.tl-item.is-right .tl-year { text-align: right; }
.tl-item.on .tl-dot { border-color: var(--accent-ink); background: var(--lime); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.18); }
.tl-item.on .tl-year { color: var(--accent-ink); }
.tl-item.is-key .tl-dot { width: 24px; height: 24px; margin-top: 19px; }
.tl-item.is-key .tl-card { border-color: rgb(var(--accent-rgb) / 0.45); background: radial-gradient(70% 100% at 100% 0%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--card); }
.tl-photo { aspect-ratio: 16 / 9; max-width: 100%; border-bottom: 1px solid var(--line); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-body { padding: 20px 22px 22px; display: grid; gap: 6px; }
.tl-year-in { display: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-ink); }
.tl-body h3 { font-size: 1.12rem; line-height: 1.3; }
.tl-body p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
/* Cards rise in as they reach the screen (only when JavaScript runs and motion is allowed) */
.tl.tl-anim .tl-card { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .75, .2, 1), border-color .4s; }
.tl.tl-anim .tl-item.in .tl-card { opacity: 1; transform: none; }
@media (max-width: 800px) {
  .tl::before, .tl::after { left: 11px; transform: none; }
  .tl-item, .tl-item.is-left, .tl-item.is-right { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "dot card"; column-gap: 16px; }
  .tl-year { display: none; }
  .tl-year-in { display: block; }
  .tl-dot { justify-self: start; margin-top: 20px; }
  .tl-item.is-key .tl-dot { margin-left: -3px; }
}
@media (prefers-reduced-motion: reduce) { .tl-card, .tl-dot, .tl-year { transition: none; } }

/* ===== Photos & video ===== */
.hero-media, .band-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-video, .bg-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-media { position: relative; overflow: hidden; }
.hero.has-media > .wrap { position: relative; z-index: 1; }
.hero.has-media .hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, var(--dim-l, 0.55)) 0%, rgba(255, 255, 255, var(--dim-r, 0.85)) 55%, rgba(255, 255, 255, var(--dim-r, 0.85)) 100%), linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 35%); }
.hero.dim-light { --dim-l: 0.25; --dim-r: 0.6; }
.hero.dim-medium { --dim-l: 0.4; --dim-r: 0.75; }
.hero.dim-strong { --dim-l: 0.55; --dim-r: 0.88; }
.hero.has-media .card { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(6px); }

.media-band { position: relative; min-height: clamp(360px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.media-band .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0.1) 100%); }
.band-copy { position: relative; z-index: 1; width: 100%; padding-block: clamp(32px, 6vw, 72px); }
.band-copy h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; max-width: 18em; }
.band-copy h2 em { font-style: normal; color: var(--accent-ink); }
.band-copy p { margin: 14px 0 0; max-width: 40em; color: var(--fg-2); }

/* Gentle fade-in while scrolling (only with JavaScript, and only when motion is allowed) */
.reveal-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1); }
.reveal-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .svc-photo img { transition: none; } }

/* ===== Services: photo cropped to the card, kept in the background ===== */
.svc.has-photo { position: relative; overflow: hidden; isolation: isolate; border-color: rgb(var(--accent-rgb) / 0.18); --svc-top: 0.86; --svc-bottom: 0.95; }
.svc-photos-medium .svc.has-photo { --svc-top: 0.74; --svc-bottom: 0.9; }
.svc-photos-strong .svc.has-photo { --svc-top: 0.58; --svc-bottom: 0.85; }
.svc-bg { position: absolute; inset: 0; z-index: -1; }
.svc-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.2, .75, .2, 1); }
.svc-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, var(--svc-top)) 0%, rgba(255, 255, 255, var(--svc-bottom)) 70%),
              linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%); }
.svc.has-photo:hover .svc-bg img { transform: scale(1.04); }
.svc.has-photo p { color: var(--fg-2); }
.svc.has-photo .chips span { background: rgba(241, 243, 245, 0.9); }
@media (prefers-reduced-motion: reduce) { .svc-bg img { transition: none; } }

/* ===== Why choose us: one tile per point, rows always line up ===== */
.why .checks { gap: 10px; grid-auto-rows: 1fr; }
.why .checks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.88rem; line-height: 1.45; }
.why .checks li::before { content: none; }
.why-check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lime-tint); color: var(--accent-ink); display: grid; place-items: center; }
.why-check svg { width: 13px; height: 13px; }
.why-text strong { color: var(--fg); font-weight: 600; }
.why-text { color: var(--fg-2); }
@media (max-width: 600px) { .why .checks { grid-auto-rows: auto; } }

/* ===== Running lines (partners, About photo strip) ===== */
.marquee { --dur: 40s; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* Partners */
.partners { position: relative; overflow: hidden; }
.partners > .wrap { position: relative; z-index: 1; }
.partners.has-media .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.92)); }
.logo-run { position: relative; z-index: 1; padding-block: 8px; }
.logo-still .marquee-track { width: auto; animation: none; justify-content: center; }
.logo-still .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding-inline: 16px; }
.run-item { padding-inline: 10px; }
.run-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 180px; height: 128px; padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(6px); text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
a.run-logo:hover { border-color: rgb(var(--accent-rgb) / 0.5); background: rgba(255, 255, 255, 0.9); }
.run-logo .logo-frame { width: min(240px, calc(var(--r) * var(--h))); }
.run-name { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.run-logo.is-text { height: 96px; }
.run-logo.is-text .run-name { font-size: 1.1rem; }
.run-logo .cat { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* About: background media + photo strip */
.about-hero.has-media { position: relative; overflow: hidden; }
.about-hero.has-media > .wrap { position: relative; z-index: 1; }
.about-hero.has-media .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.55) 100%), linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 40%); }
.photo-strip { padding-block: 22px; background: var(--bg); border-bottom: 1px solid var(--line); }
.strip-item { margin: 0 8px; width: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Certificates: carousel of documents + on-site PDF viewer ===== */
.cert-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cert-head .head { margin-bottom: 0; }
.cert-nav button:disabled { opacity: 0.35; cursor: default; }
.certs { margin-top: clamp(24px, 3vw, 36px); }
.cert-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (max-width: 1100px) { .cert-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 800px) { .cert-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .cert-track { grid-auto-columns: 82%; } }
.doc { scroll-snap-align: start; min-width: 0; }
.doc-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; width: 100%; height: 100%; cursor: pointer; }
.doc-open:disabled { cursor: default; }
.doc-open:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 10px; }
/* The certificate as a sheet of paper (A4 proportions) */
.doc-page { position: relative; aspect-ratio: 1 / 1.414; max-width: 100%; border-radius: 6px; overflow: hidden; background: #F4F5F2; box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12), 0 0 0 1px rgba(16, 24, 40, 0.08); display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .75, .2, 1), box-shadow .35s; }
.doc-page > img, .doc-page > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-page canvas { opacity: 0; transition: opacity .4s; }
.doc-page canvas.ready { opacity: 1; }
.doc-page.no-pdf { background: var(--card-2); }
.doc-page .tile { width: 64px; height: 64px; }
.doc-page .tile svg { width: 30px; height: 30px; }
.doc-badge { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 8px; border-radius: 6px; background: var(--lime); color: var(--on-lime); }
.doc-open:not(:disabled):hover .doc-page { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 28px 50px rgba(16, 24, 40, 0.16), 0 0 0 2px rgb(var(--accent-rgb) / 0.55); }
.doc-info { display: grid; gap: 4px; min-width: 0; }
.doc-text { color: var(--muted); font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.doc-cta { margin-top: 6px; color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .doc-page { transition: none; } }

.doc-viewer { width: min(1100px, 96vw); height: min(92vh, 1000px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--fg); overflow: hidden; }
.doc-viewer[open] { display: flex; flex-direction: column; }
.doc-viewer::backdrop { background: rgba(5, 6, 8, 0.85); }
.doc-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-viewer-info { min-width: 0; }
.doc-viewer-info h3 { font-size: 1.1rem; }
.doc-viewer-meta { margin: 2px 0 0; }
.doc-viewer-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-viewer-actions .btn { height: 36px; padding: 0 14px; font-size: 0.82rem; }
.doc-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--fg); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.doc-viewer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.doc-viewer-text { margin: 0; padding: 14px 20px; color: var(--fg-2); font-size: 0.9rem; border-bottom: 1px solid var(--line); max-height: 30%; overflow: auto; }
.doc-frame { flex: 1; width: 100%; border: 0; background: #E9ECEF; }
.doc-pages { flex: 1; min-height: 0; overflow: auto; background: #EEF0F3; padding: 20px; display: grid; gap: 16px; justify-items: center; align-content: start; }
.doc-pages canvas { display: block; width: 100%; max-width: 900px; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12); }
.doc-pages .doc-loading { color: var(--fg-2); font-size: 0.9rem; padding: 40px 0; }
@media (max-width: 600px) { .doc-pages { padding: 10px; } .doc-viewer { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; } }

/* ===== Homepage: all services on one screen ===== */
.services-all .head { margin-bottom: clamp(20px, 3vw, 32px); }
.svc-all { --max: 5; --cols: min(var(--max), 5); --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.svc-all > .svc { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 1200px) { .svc-all { --cols: min(var(--max), 3); } }
@media (max-width: 820px) { .svc-all { --cols: min(var(--max), 2); } }
@media (max-width: 520px) { .svc-all { --cols: 1; } }
.svc-compact { padding: 22px 20px 20px; gap: 12px; min-height: 290px; }
.svc-compact > .tile { width: 46px; height: 46px; }
.svc-compact h3 { font-size: 1.08rem; line-height: 1.3; }
.svc-compact h3 a { color: inherit; text-decoration: none; }
.svc-compact h3 a:hover { color: var(--accent-ink); }
.svc-compact p { font-size: 0.88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.svc-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.svc-actions .btn { height: 36px; padding: 0 12px; font-size: 0.8rem; flex: 1 1 auto; }
.svc-compact.has-photo .svc-more { background: rgba(255, 255, 255, 0.7); }
.services-all .ams { margin-top: var(--gap, 14px); }

/* Key figures in the top section */
.facts { margin: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { border-top: 2px solid var(--lime); padding-top: 12px; min-width: 0; }
.fact dt { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact dd { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }

/* Projects now have their own section */
.projects-sec .projects { margin-bottom: 0; }
.vision-sec .vision { margin-bottom: 0; }

/* ===== A service's own page ===== */
.svc-page { padding-top: 64px; }
.svc-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); background: radial-gradient(60% 80% at 85% 10%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--bg); }
.svc-hero > .wrap { position: relative; z-index: 1; }
.svc-hero.has-media .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.6) 100%), linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 40%); }
.back-link { text-decoration: none; display: inline-flex; gap: 8px; }
.svc-hero-title { display: flex; align-items: center; gap: 16px; }
.svc-hero-title .tile { width: 56px; height: 56px; border-radius: 12px; }
.svc-hero-title .tile svg { width: 28px; height: 28px; }
.svc-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.svc-hero-tags { margin-top: 20px; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-main .entry { margin-top: 0; max-width: 760px; }
.svc-side { display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 900px) { .svc-side { position: static; } }
.svc-side-card { padding: 20px 22px; }
.svc-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.svc-others a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.svc-others a:hover { background: var(--card-2); color: var(--accent-ink); }
.svc-others .tile { width: 32px; height: 32px; border-radius: 8px; }
.svc-others .tile svg { width: 16px; height: 16px; }

/* Disciplines row: editable list, each item can link to its service */
ul.svc-icons { list-style: none; margin: 0; padding: 0; }
.svc-icons li { display: flex; }
.svc-icons a, .svc-icons span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.svc-icons a:hover { color: var(--fg); }
.svc-icons a:hover svg { transform: scale(1.12); }
.svc-icons svg { transition: transform .2s; }

/* White theme: device screens stay dark, like the real thing */
.hmi, .monitor-screen { --fg: #F2F3F4; --fg-2: #C9CDD1; --muted: #8F959C; --line: #2A2D33; --accent-ink: var(--lime); color: var(--fg); color-scheme: dark; }
/* Dark plate for white logos (on a white page they would disappear) */
.logo-frame.plate-dark { background: #14161A; border-radius: 8px; padding: 6px 10px; width: min(100%, calc(var(--r) * var(--h) + 20px)); }
.svc-icons li.is-ams a { color: var(--accent-ink); font-weight: 600; border: 1px solid rgb(var(--accent-rgb) / 0.45); border-radius: 999px; padding: 2px 12px; margin: -3px 0; }
.svc-icons li.is-ams a:hover { background: var(--lime-tint); color: var(--accent-ink); }
.svc-brands { gap: 5px; }
.svc-brands span { font-size: 0.72rem; padding: 3px 8px; }
.svc-brands .more { color: var(--muted); }
.svc-compact .svc-actions .btn { flex: 1 1 100%; }
.svc-cta { margin-top: clamp(24px, 3vw, 36px); display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; text-align: center; }
.svc-cta p { margin: 0; color: var(--fg-2); font-weight: 500; }
.contact-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 900px) { .contact-grid.has-map { grid-template-columns: 1fr; } }
.contact-main .contact-card { margin-top: 28px; }
.contact-side { display: grid; grid-template-rows: minmax(320px, 1fr) auto; gap: 12px; min-width: 0; }
.contact-side .map { aspect-ratio: auto; min-height: 320px; height: 100%; }
.contact-side .btn { justify-self: start; }

/* Language switcher (Polylang) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; margin-left: 6px; }
.lang-switch a { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); padding: 4px 7px; border-radius: 5px; line-height: 1; }
.lang-switch a:hover { color: var(--fg); background: var(--card-2); }
.lang-switch a[aria-current="true"] { color: var(--on-lime); background: var(--lime); }
.lang-switch .lang-off { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); padding: 4px 7px; line-height: 1; opacity: .4; text-decoration: line-through; cursor: help; }
.lang-switch.in-panel { display: none; }
@media (max-width: 520px) {
  .lang-switch.in-nav { display: none; }
  .mobile-panel .lang-switch.in-panel { display: flex; justify-content: center; margin: 8px 0 0; background: var(--card); box-shadow: var(--shadow); }
  .mobile-panel .lang-switch.in-panel a, .mobile-panel .lang-switch.in-panel .lang-off { flex: 1; text-align: center; padding: 9px; font-size: 0.82rem; }
}
.nav > a.sec.is-here { color: var(--fg); }
.nav > a.sec.is-here::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--lime); }
.nav > a.sec { position: relative; }

/* How we work: one grid of values */
.values-grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.values-grid > * { flex: 0 1 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: 0; }
.values-grid[style*="--n:4"] { --cols: 2; }
@media (max-width: 1000px) { .values-grid { --cols: 2; } }
@media (max-width: 640px) { .values-grid, .values-grid[style*="--n:4"] { --cols: 1; } }
.values-grid .value { flex-direction: column; gap: 14px; padding: 24px; height: auto; }
h2 em { font-style: normal; color: var(--accent-ink); }

/* Brand logos on a service page */
.svc-brand-block { margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line); }
.brand-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-logo { height: 96px; display: grid; place-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--fg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.brand-logo .logo-frame { width: min(100%, calc(var(--r) * var(--h))); }
a.brand-logo:hover { border-color: rgb(var(--accent-rgb) / 0.6); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-name { font-weight: 600; font-size: 0.95rem; text-align: center; }
.brand-logo.is-text { height: auto; min-height: 72px; padding-block: 12px; }
.brand-logo.is-text .brand-name { letter-spacing: .02em; line-height: 1.3; }
.brand-logo.is-text .brand-name, .run-logo.is-text .run-name { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
a.brand-logo.is-text .brand-name::after, a.run-logo.is-text .run-name::after { content: " \2197"; font-size: .8em; opacity: .45; }

/* Service cards: bigger text, the whole short description shows */
.svc-compact { padding: 24px 22px 22px; }
.svc-compact h3 { font-size: 1.15rem; }
.svc-compact p { font-size: 0.97rem; line-height: 1.55; color: var(--fg-2); -webkit-line-clamp: unset; display: block; overflow: visible; }
.svc-brands span { font-size: 0.78rem; padding: 4px 9px; }
.svc-compact .svc-actions .btn { height: 40px; font-size: 0.88rem; }
@media (min-width: 1201px) and (max-width: 1360px) { .svc-compact { padding: 20px 16px 18px; } .svc-compact p { font-size: 0.92rem; } }

/* Process steps: each line is a progress bar driven by scrolling (see main.js) */
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.steps.steps-anim li::after { transition: transform .12s linear; }
.steps.steps-anim li::before { opacity: 0.35; transition: opacity .3s, transform .3s; display: inline-block; }
.steps.steps-anim li.is-active::before, .steps.steps-anim li.is-done::before { opacity: 1; }
.steps.steps-anim li.is-active::before { transform: scale(1.15); transform-origin: left center; }
.steps.steps-anim li h3 { transition: color .3s; }
.steps.steps-anim li:not(.is-active):not(.is-done) h3 { color: var(--muted); }

/* Cookie banner */
.cookie-banner { position: fixed; left: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px); z-index: 60; width: min(420px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18); padding: 18px 20px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-title { margin: 0 0 6px; font-weight: 700; }
.cookie-text { margin: 0; font-size: 0.86rem; color: var(--fg-2); line-height: 1.5; }
.cookie-text a { color: var(--fg); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { width: 100%; }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ------------------------------------------------------------------
   Service page (v2): readable text, systems, steps, brands, projects
   ------------------------------------------------------------------ */
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.svc-hero-grid.has-figure { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
@media (max-width: 860px) { .svc-hero-grid.has-figure { grid-template-columns: 1fr; } }
.svc-lead { margin: 20px 0 0; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--fg); font-weight: 500; }
.svc-figure { padding: 28px 30px; display: grid; gap: 6px; border-top: 4px solid var(--lime); }
.svc-figure-num { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--fg); }
.svc-figure-lbl { color: var(--fg-2); font-size: 1rem; line-height: 1.4; }

.svc-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-intro-grid.single { grid-template-columns: minmax(0, 860px); }
@media (max-width: 900px) { .svc-intro-grid { grid-template-columns: 1fr; } }
.svc-text { margin-top: 0; max-width: 680px; font-size: 1.12rem; line-height: 1.75; color: var(--fg); }
.svc-text > :first-child { margin-top: 0; }
.svc-text p { margin: 0 0 1.1em; }
.svc-text h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
.svc-text h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.svc-text ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.svc-text ul li { position: relative; padding-left: 26px; }
.svc-text ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.svc-systems { padding: 24px 26px; position: sticky; top: 88px; }
@media (max-width: 900px) { .svc-systems { position: static; } }
.systems-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.systems-list li { font-size: 0.9rem; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: var(--lime-tint); color: var(--fg); border: 1px solid rgb(var(--accent-rgb) / 0.25); }

.svc-what .steps h3 { font-size: 1.05rem; line-height: 1.35; }

.svc-brands-band .brand-logos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.svc-brands-band .brand-logo { height: 120px; padding: 18px 24px; }
.svc-brands-band .brand-logo .logo-frame { height: 60px; width: min(100%, calc(var(--r) * 60px)); aspect-ratio: auto; }
.svc-brands-band .brand-name { font-size: 1.1rem; }

.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }

.svc-others-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.svc-other { position: relative; height: 100%; display: grid; align-content: start; gap: 10px; padding: 22px 22px 46px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc-other:hover { border-color: rgb(var(--accent-rgb) / 0.6); transform: translateY(-3px); }
.svc-other-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.svc-other-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.svc-other-go { position: absolute; right: 22px; bottom: 18px; color: var(--accent-ink); font-weight: 700; transition: transform .2s; }
.svc-other:hover .svc-other-go { transform: translateX(4px); }
@media (max-width: 600px) { .svc-brands-band .brand-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .svc-brands-band .brand-logo { height: 96px; padding: 12px; } .svc-brands-band .brand-logo .logo-frame { height: 44px; width: min(100%, calc(var(--r) * 44px)); } }

.contact-card .val .who { font-weight: 700; }
.contact-card .val br + a, .contact-card .val .who + br + a { font-weight: 500; }


/* Service page: photos next to the text */
.svc-intro-grid.has-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
@media (max-width: 900px) { .svc-intro-grid.has-photos { grid-template-columns: 1fr; } }
.svc-photos { display: grid; gap: 12px; }
.svc-photos.n2 { grid-template-columns: 1fr 1fr; }
.svc-photos.n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.svc-photos.n3 .svc-photo:first-child { grid-row: span 2; }
.svc-photo { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; min-height: 0; }
.svc-photos.n1 .svc-photo { aspect-ratio: 4 / 3; }
.svc-photos.n2 .svc-photo { aspect-ratio: 3 / 4; }
.svc-photos.n3 .svc-photo { aspect-ratio: auto; min-height: 160px; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.svc-photo:hover img { transform: scale(1.04); }
.svc-text > p:first-child { font-size: 1.25rem; line-height: 1.6; font-weight: 500; }

/* Service page: interactive system tiles */
.svc-systems-sec { background: var(--bg-2); }
.systems-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.systems-count { color: var(--muted); font-size: 0.9rem; margin-bottom: clamp(32px, 4vw, 48px); }
.systems-count b { display: block; font-size: 2.6rem; line-height: 1; color: var(--accent-ink); font-weight: 700; }
.systems-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 520px) { .systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.sys { border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s, transform .25s; }
.reveal-on .sys.rv { transition-delay: calc(var(--d, 0) * 45ms); }
.sys:hover, .sys.is-open { border-color: rgb(var(--accent-rgb) / 0.55); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1); }
.sys-tile { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: default; }
button.sys-tile { cursor: pointer; }
.sys-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--lime-tint); color: var(--accent-ink); transition: background .25s, color .25s, transform .35s cubic-bezier(.2, .75, .2, 1); }
.sys-ico svg { width: 22px; height: 22px; }
.sys:hover .sys-ico, .sys.is-open .sys-ico { background: var(--lime); color: var(--on-lime); transform: rotate(-6deg) scale(1.06); }
.sys-name { font-weight: 600; font-size: 0.97rem; line-height: 1.3; flex: 1; }
.sys-more { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: transform .3s, border-color .25s, background .25s; }
.sys-more::before, .sys-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.sys-more::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.sys.is-open .sys-more { transform: rotate(180deg); border-color: var(--lime); background: var(--lime-tint); }
.sys.is-open .sys-more::after { transform: translate(-50%, -50%) rotate(0deg); }
.sys-desc { margin: 0; padding: 2px 16px 16px; color: var(--fg-2); font-size: 0.9rem; line-height: 1.5; animation: sys-open .3s ease; }
@keyframes sys-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .sys-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; } .sys-more { position: absolute; top: 12px; right: 12px; } .sys { position: relative; } .sys-desc { padding: 0 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .sys, .sys-ico, .sys-more, .svc-photo img { transition: none; } .sys-desc { animation: none; } }

/* ------------------------------------------------------------------
   Dark colours: the AMS page always (body.theme-dark), and every page when the
   visitor's device is in dark mode (body.mode-auto), instead of the phone's own conversion.
   ------------------------------------------------------------------ */
body.theme-dark {
  --bg: #14161A; --bg-2: #171A1E; --card: #1C1F24; --card-2: #22262C; --line: #2A2D33;
  --fg: #F2F3F4; --fg-2: #C9CDD1; --muted: #8F959C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
body.theme-dark .top { background: rgba(20, 22, 26, 0.9); }
body.theme-dark .hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, var(--dim-l, 0.55)) 0%, rgba(20, 22, 26, var(--dim-r, 0.85)) 55%, rgba(20, 22, 26, var(--dim-r, 0.85)) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.9), rgba(20, 22, 26, 0) 35%); }
body.theme-dark .hero.has-media .card { background: rgba(20, 22, 26, 0.78); }
body.theme-dark .media-band .band-media::after { background: linear-gradient(0deg, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.35) 45%, rgba(20, 22, 26, 0.1) 100%); }
body.theme-dark .svc-bg::after { background: linear-gradient(180deg, rgba(20, 22, 26, var(--svc-top)) 0%, rgba(20, 22, 26, var(--svc-bottom)) 70%),
              linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%); }
body.theme-dark .partners.has-media .band-media::after { background: linear-gradient(180deg, rgba(20, 22, 26, 0.9), rgba(20, 22, 26, 0.72) 50%, rgba(20, 22, 26, 0.92)); }
body.theme-dark .run-logo { background: rgba(20, 22, 26, 0.72); }
body.theme-dark a.run-logo:hover { background: rgba(20, 22, 26, 0.9); }
body.theme-dark .about-hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.7) 60%, rgba(20, 22, 26, 0.55) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.95), rgba(20, 22, 26, 0) 40%); }
body.theme-dark .svc-compact.has-photo .svc-more { background: rgba(20, 22, 26, 0.7); }
body.theme-dark .svc-hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, 0.94) 0%, rgba(20, 22, 26, 0.78) 55%, rgba(20, 22, 26, 0.6) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.95), rgba(20, 22, 26, 0) 40%); }
body.theme-dark .run-logo, body.theme-dark .brand-logo { background: #F4F5F6; border-color: transparent; color: #14171C; }
body.theme-dark .run-logo .cat { color: #5E656D; }
body.theme-dark .site-footer .group img:not(.pl-dual) { background: #F4F5F6; border-radius: 6px; padding: 3px 6px; }
body.theme-dark .sys:hover, body.theme-dark .sys.is-open { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
body.theme-dark .cookie-banner { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
body.theme-dark .svc.has-photo .chips span { background: rgba(34, 38, 44, 0.85); }
@media (prefers-color-scheme: dark) {
  body.mode-auto {
  --bg: #14161A; --bg-2: #171A1E; --card: #1C1F24; --card-2: #22262C; --line: #2A2D33;
  --fg: #F2F3F4; --fg-2: #C9CDD1; --muted: #8F959C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
  }
body.mode-auto .top { background: rgba(20, 22, 26, 0.9); }
body.mode-auto .hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, var(--dim-l, 0.55)) 0%, rgba(20, 22, 26, var(--dim-r, 0.85)) 55%, rgba(20, 22, 26, var(--dim-r, 0.85)) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.9), rgba(20, 22, 26, 0) 35%); }
body.mode-auto .hero.has-media .card { background: rgba(20, 22, 26, 0.78); }
body.mode-auto .media-band .band-media::after { background: linear-gradient(0deg, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.35) 45%, rgba(20, 22, 26, 0.1) 100%); }
body.mode-auto .svc-bg::after { background: linear-gradient(180deg, rgba(20, 22, 26, var(--svc-top)) 0%, rgba(20, 22, 26, var(--svc-bottom)) 70%),
              linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%); }
body.mode-auto .partners.has-media .band-media::after { background: linear-gradient(180deg, rgba(20, 22, 26, 0.9), rgba(20, 22, 26, 0.72) 50%, rgba(20, 22, 26, 0.92)); }
body.mode-auto .run-logo { background: rgba(20, 22, 26, 0.72); }
body.mode-auto a.run-logo:hover { background: rgba(20, 22, 26, 0.9); }
body.mode-auto .about-hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.7) 60%, rgba(20, 22, 26, 0.55) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.95), rgba(20, 22, 26, 0) 40%); }
body.mode-auto .svc-compact.has-photo .svc-more { background: rgba(20, 22, 26, 0.7); }
body.mode-auto .svc-hero.has-media .hero-media::after { background: linear-gradient(90deg, rgba(20, 22, 26, 0.94) 0%, rgba(20, 22, 26, 0.78) 55%, rgba(20, 22, 26, 0.6) 100%), linear-gradient(0deg, rgba(20, 22, 26, 0.95), rgba(20, 22, 26, 0) 40%); }
body.mode-auto .run-logo, body.mode-auto .brand-logo { background: #F4F5F6; border-color: transparent; color: #14171C; }
body.mode-auto .run-logo .cat { color: #5E656D; }
body.mode-auto .site-footer .group img:not(.pl-dual) { background: #F4F5F6; border-radius: 6px; padding: 3px 6px; }
body.mode-auto .sys:hover, body.mode-auto .sys.is-open { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
body.mode-auto .cookie-banner { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
body.mode-auto .svc.has-photo .chips span { background: rgba(34, 38, 44, 0.85); }
  body.mode-auto .btn:not(.primary):hover { border-color: var(--fg-2); }
}
body.theme-dark .about-photo img, body.theme-dark .monitor-screen { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgb(var(--accent-rgb) / 0.08); }
body.theme-dark .btn:not(.primary):hover { border-color: var(--fg-2); }


/* ------------------------------------------------------------------
   Service hero v3: full description at the top, photos and key figure beside it
   ------------------------------------------------------------------ */
.svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
@media (max-width: 900px) { .svc-hero-grid.has-side { grid-template-columns: 1fr; } }
.svc-hero-side { display: grid; gap: 14px; min-width: 0; }
.svc-hero-side .svc-figure { justify-self: start; min-width: 240px; }
.svc-hero-side .svc-photos ~ .svc-figure { margin-top: -54px; margin-left: 18px; position: relative; z-index: 1; }
.svc-hero-text { margin-top: 22px; max-width: 640px; font-size: 1.06rem; line-height: 1.7; color: var(--fg); }
.svc-hero-text > p:first-child { font-size: 1.22rem; line-height: 1.55; font-weight: 500; }
.svc-hero-text h2, .svc-hero-text h3 { margin-top: 1.2em; }
.svc-hero .ams-ctas { margin-top: 26px; }

/* ------------------------------------------------------------------
   PLC page style (Services → edit → Page style: PLC)
   ------------------------------------------------------------------ */
.is-plc { --plc-on: #22C55E; --plc-off: #A9AFB6; --plc-dark: #2B3036; --plc-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.is-plc .eyebrow { font-family: var(--plc-mono); letter-spacing: 0.12em; }
.is-plc .back-link::before { content: none; }
.is-plc .svc-figure { background: #1B1F24; border: 1px solid #2E343B; border-top: 4px solid var(--plc-on); color: #CFD6DD; }
.is-plc .svc-figure-num { font-family: var(--plc-mono); color: #7CF29A; text-shadow: 0 0 12px rgba(124, 242, 154, .45); letter-spacing: 0.04em; }
.is-plc .svc-figure-lbl { color: #9AA3AD; font-family: var(--plc-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* The rack */
.plc { display: grid; gap: 16px; }
.plc-rack { position: relative; display: flex; align-items: center; gap: 6px; padding: 26px 20px 30px; border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin;
  background: radial-gradient(circle, rgba(16, 24, 40, .07) 1.2px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(#ECEEF1, #E2E5E9); }
.plc-rack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 36px; transform: translateY(-50%); z-index: 0; min-width: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .14) 16px 26px) 0 50% / 100% 10px no-repeat, linear-gradient(#D5D9DE, #AEB4BB 45%, #DCE0E4 55%, #B3B9C0); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.plc-cpu, .plc-mod { position: relative; z-index: 1; flex: 1 0 112px; min-height: 260px; border-radius: 6px; display: grid; grid-template-rows: auto auto 1fr auto auto; justify-items: center; align-items: center; gap: 10px; padding: 10px 8px 12px; }
.plc-cpu { flex: 0 0 128px; background: linear-gradient(180deg, #343A42, #22272D); border: 1px solid #1A1E23; color: #E7EAEE; box-shadow: 0 2px 0 #15181C, 0 10px 18px rgba(16, 24, 40, .18); }
.plc-cpu-brand { font-weight: 800; letter-spacing: 0.12em; font-size: 0.8rem; }
.plc-cpu-type { font-family: var(--plc-mono); font-size: 0.7rem; color: #9AA3AD; }
.plc-cpu-leds { display: grid; gap: 6px; font-family: var(--plc-mono); font-size: 0.62rem; letter-spacing: .08em; color: #AEB6BF; justify-self: stretch; padding: 0 10px; }
.plc-cpu-leds span { display: flex; align-items: center; gap: 6px; }
.plc-cpu-leds .run i { background: var(--plc-on); box-shadow: 0 0 6px var(--plc-on); }
.plc-cpu-leds .ok i { animation: plc-blink 1s steps(1) infinite; }
.plc-cpu-port { width: 38px; height: 30px; border-radius: 3px; background: #0E1013; box-shadow: inset 0 0 0 3px #4A515A; }
.plc-mod { cursor: pointer; font: inherit; color: var(--fg); text-align: center; background: linear-gradient(180deg, #FAFBFC, #E7EAED); border: 1px solid #C3C8CF; box-shadow: 0 2px 0 #B9BFC6, 0 8px 16px rgba(16, 24, 40, .08); transition: transform .25s cubic-bezier(.2, .75, .2, 1), box-shadow .25s, border-color .25s; }
.plc-mod:hover { transform: translateY(-4px); }
.plc-mod[aria-selected="true"] { transform: translateY(-10px); border-color: var(--lime); box-shadow: 0 2px 0 var(--lime), 0 18px 30px rgb(var(--accent-rgb) / .25); }
.plc-mod:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.plc-mod-code { justify-self: stretch; font-family: var(--plc-mono); font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--plc-dark); border-radius: 3px; padding: 3px 0; letter-spacing: .1em; }
.plc-mod[aria-selected="true"] .plc-mod-code { background: var(--lime); color: var(--on-lime); }
.plc-leds { display: grid; grid-template-columns: repeat(2, 7px); gap: 6px 10px; padding: 6px 10px; background: #2B3036; border-radius: 4px; }
.plc-leds i { animation: plc-io 2.8s steps(1) infinite; animation-delay: calc(var(--n) * -0.35s - var(--k, 0) * 0.2s); }
.plc-mod[aria-selected="true"] .plc-leds i { animation: none; background: var(--plc-on); box-shadow: 0 0 6px var(--plc-on); }
.plc-mod-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-tint); color: var(--accent-ink); }
.plc-mod-ico svg { width: 22px; height: 22px; }
.plc-mod[aria-selected="true"] .plc-mod-ico { background: var(--lime); color: var(--on-lime); }
.plc-mod-name { font-size: 0.8rem; font-weight: 700; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.plc-terms { display: flex; gap: 5px; }
.plc-terms i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F2F4F6, #9AA1A9 70%); box-shadow: inset 0 0 0 1px #8A929B; position: relative; }
.plc-terms i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #6B737C; transform: rotate(-35deg); }
.plc-cpu .plc-terms i { background: radial-gradient(circle at 40% 35%, #8A929B, #4A515A 70%); box-shadow: inset 0 0 0 1px #15181C; }

/* Properties pane, like engineering software */
.plc-props { border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.plc-props-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.plc-props-tabs span { padding: 7px 14px; border-radius: 6px 6px 0 0; }
.plc-props-tabs .on { background: var(--card); color: var(--fg); box-shadow: inset 0 2px 0 var(--lime); }
.plc-props-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: start; padding: 20px 22px; }
@media (max-width: 640px) { .plc-props-body { grid-template-columns: auto minmax(0, 1fr); } .plc-props-state { grid-column: 1 / -1; justify-self: start; } }
.plc-props-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.plc-props-ico svg { width: 26px; height: 26px; }
.plc-props dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)) 1fr; gap: 10px 28px; }
.plc-props dl > div { display: grid; gap: 2px; }
.plc-props dl > .wide { grid-column: 1 / -1; }
.plc-props dt { font-family: var(--plc-mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plc-props dd { margin: 0; color: var(--fg-2); line-height: 1.55; }
.plc-props dd.mono { font-family: var(--plc-mono); color: var(--accent-ink); font-weight: 700; }
.plc-props dd.strong { font-weight: 700; color: var(--fg); font-size: 1.1rem; }
.plc-props-state { display: inline-flex; align-items: center; gap: 7px; font-family: var(--plc-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; color: #15803D; border: 1px solid rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); border-radius: 4px; padding: 4px 9px; }
.plc-props.swap .plc-props-body > * { animation: scada-in .4s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes scada-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Ladder rungs for "What we do" (energised one by one as you scroll) */
.ladder { list-style: none; margin: 0; padding: 6px 0; border-left: 4px solid var(--plc-dark); border-right: 4px solid var(--plc-dark); background: var(--card); border-radius: 4px; }
.rung { --fill: 1; display: grid; grid-template-columns: 70px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0; row-gap: 6px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rung:last-child { border-bottom: 0; }
.rung-no { grid-row: 1 / span 2; align-self: center; text-align: center; font-family: var(--plc-mono); font-size: 0.72rem; color: var(--muted); }
.rung-label { grid-column: 2; grid-row: 1; margin: 0 24px 0 34px; font-size: 1.02rem; font-weight: 700; line-height: 1.3; transition: color .3s; }
.rung-line { grid-column: 2; grid-row: 2; display: flex; align-items: center; height: 24px; }
.rung-line::before, .rung-line::after { content: ""; height: 2px; flex: 0 0 34px; background: var(--plc-off); }
.rung-line::after { flex-basis: 24px; }
.rung-contact, .rung-coil { flex: none; width: 24px; height: 24px; border: 2px solid var(--plc-off); border-top-color: transparent; border-bottom-color: transparent; transition: border-color .3s, box-shadow .3s; }
.rung-contact { margin: 0 2px; }
.rung-coil { border-radius: 50%; margin: 0 2px; }
.rung-wire { flex: 1; height: 2px; background: linear-gradient(90deg, var(--plc-on) calc(var(--fill) * 100%), var(--plc-off) 0); }
.rung.is-active .rung-line::before, .rung.is-done .rung-line::before, .rung:not(.is-pending) .rung-line::before { background: var(--plc-on); }
.rung.is-done .rung-line::after { background: var(--plc-on); }
.rung.is-active .rung-contact, .rung.is-done .rung-contact { border-left-color: var(--plc-on); border-right-color: var(--plc-on); box-shadow: 0 0 10px rgba(34, 197, 94, .35); }
.rung.is-done .rung-coil { border-left-color: var(--plc-on); border-right-color: var(--plc-on); box-shadow: 0 0 10px rgba(34, 197, 94, .35); }
.ladder.steps-anim .rung:not(.is-active):not(.is-done) .rung-label { color: var(--muted); }
.ladder.steps-anim .rung:not(.is-active):not(.is-done) .rung-line::before { background: var(--plc-off); }
.ladder:not(.steps-anim) .rung .rung-contact, .ladder:not(.steps-anim) .rung .rung-coil { border-left-color: var(--plc-on); border-right-color: var(--plc-on); }
.ladder:not(.steps-anim) .rung .rung-line::after { background: var(--plc-on); }

/* Brands as nameplates on the PLC page */
.is-plc .brand-logo { border-radius: 6px; border-color: #C3C8CF; background: linear-gradient(180deg, #FAFBFC, #EEF0F3); position: relative; }
.is-plc .brand-logo::before, .is-plc .brand-logo::after { content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F2F4F6, #9AA1A9 70%); box-shadow: inset 0 0 0 1px #8A929B; }
.is-plc .brand-logo::before { left: 8px; }
.is-plc .brand-logo::after { right: 8px; }
@media (prefers-reduced-motion: reduce) { .plc-io i, .plc-leds i, .plc-st i, .plc-cpu-leds i { animation: none !important; } .plc-mod { transition: none; } }

/* PLC hero: SCL editor on the right, wider text on the left */

.svc-hero-text { max-width: 680px; }
.svc-hero-text p { margin: 0 0 1em; }
.scl { margin: 0; border-radius: 14px; overflow: hidden; background: #1A1D22; border: 1px solid #2A2F36; box-shadow: 0 30px 60px rgba(16, 24, 40, .25); color: #D7DCE2; color-scheme: dark; }
.scl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 0; background: #23272D; border-bottom: 1px solid #2E333A; font-size: 0.78rem; }
.scl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1A1D22; border-right: 1px solid #2E333A; box-shadow: inset 0 2px 0 var(--lime); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #E8ECF1; }
.scl-tab em { font-style: normal; color: #8A939D; }
.scl-ico { font-size: 0.6rem; font-weight: 800; padding: 2px 4px; border-radius: 3px; background: #2F6FED; color: #fff; letter-spacing: .04em; }
.scl-lang { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.7rem; color: #8A939D; letter-spacing: .12em; }
.scl-code { margin: 0; padding: 14px 0 16px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(0.72rem, 0.95vw, 0.84rem); line-height: 1.65; overflow-x: auto; }
.scl-code .ln { display: block; white-space: pre; padding-right: 16px; }
.scl-code .no { display: inline-block; width: 3.2em; padding-right: 1em; text-align: right; color: #4E5661; user-select: none; }
.scl-code .tx { display: inline-block; vertical-align: bottom; overflow: hidden; }
.scl-code .k { color: #7AA2F7; font-weight: 600; }
.scl-code .t { color: #E0AF68; }
.scl-code .s { color: #9ECE6A; }
.scl-code .v { color: #F2A55C; }
.scl-code .n { color: #FFB86C; }
.scl-code .c { color: #6B7480; font-style: italic; }
.scl.typing .ln .tx { width: 0; }
.scl.typing .ln.typed .tx { width: calc(var(--len) * 1ch + 1px); transition: width calc(var(--len) * 16ms) steps(var(--len), end); }
.scl.typing .ln:not(.typed) .no { opacity: .35; }
.scl .ln.cur { background: rgba(255, 255, 255, .04); }
.scl .ln.cur .tx { overflow: visible; }
.scl .ln.cur .tx::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--lime); animation: scl-caret 1s steps(1) infinite; }
@keyframes scl-caret { 50% { opacity: 0; } }
.scl-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; background: #202429; border-top: 1px solid #2E333A; font-size: 0.72rem; color: #9AA3AD; }
.scl-status .ok { display: inline-flex; align-items: center; gap: 7px; color: #8FE3B5; }
.scl-status .ok i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 6px #22C55E; }
.scl-status .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.svc-hero-side .scl ~ .svc-figure { margin: 0; }
.svc-photo-row .svc-photos.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; }
.svc-photo-row .svc-photos.row .svc-photo { aspect-ratio: 4 / 3; grid-row: auto; }
@media (max-width: 700px) { .svc-photo-row .svc-photos.row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .scl .ln.cur .tx::after { animation: none; } }

/* PLC LEDs (modules, CPU, properties pane) */
.plc-leds i, .plc-cpu-leds i, .plc-props-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--plc-off); }
.plc-props-state i, .plc-cpu-leds .run i { background: var(--plc-on); box-shadow: 0 0 6px var(--plc-on); }
.plc-cpu-leds .ok i { animation: plc-blink 1s steps(1) infinite; }
.plc-leds i { animation: plc-io 2.8s steps(1) infinite; animation-delay: calc(var(--n) * -0.35s - var(--k, 0) * 0.2s); }
.plc-mod[aria-selected="true"] .plc-leds i { animation: none; background: var(--plc-on); box-shadow: 0 0 6px var(--plc-on); }
@keyframes plc-blink { 50% { background: var(--plc-on); box-shadow: 0 0 6px var(--plc-on); } }
@keyframes plc-io { 0%, 45% { background: var(--plc-off); box-shadow: none; } 46%, 100% { background: var(--plc-on); box-shadow: 0 0 5px var(--plc-on); } }
@media (prefers-reduced-motion: reduce) { .plc-leds i, .plc-cpu-leds i { animation: none !important; } }

/* PLC hero, calm version: the SCL program as a faint background on the right */
.is-plc .svc-hero { position: relative; overflow: hidden; }
.plc-code-bg { position: absolute; top: 0; bottom: 0; right: 0; width: min(54%, 820px); display: flex; align-items: center; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-composite: intersect; }
.plc-code-bg pre { margin: 0; padding: 0 clamp(16px, 4vw, 48px); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(0.78rem, 1vw, 0.95rem); line-height: 1.8; color: var(--fg); opacity: 0.16; white-space: pre; }
.plc-code-bg .ln { display: block; }
.plc-code-bg .k { font-weight: 700; }
.plc-code-bg .c { font-style: italic; }
.plc-code-bg .v, .plc-code-bg .n { color: var(--accent-ink); }
.is-plc .svc-hero > .wrap { position: relative; z-index: 1; }
.is-plc .svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); }
.is-plc .svc-hero-side { justify-items: end; }
.is-plc .svc-hero-text { max-width: 720px; }
@media (max-width: 900px) { .plc-code-bg { width: 100%; } .plc-code-bg pre { opacity: 0.07; } .is-plc .svc-hero-grid.has-side { grid-template-columns: 1fr; } .is-plc .svc-hero-side { justify-items: start; } }

/* ------------------------------------------------------------------
   Service pages: tighter spacing, more information per screen
   ------------------------------------------------------------------ */
.svc-page .screen { padding-block: clamp(40px, 5vw, 64px); }
.svc-page .head { margin-bottom: clamp(20px, 2.5vw, 28px); }
.svc-page h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.svc-page .svc-hero { padding-block: clamp(36px, 5vw, 64px); }
.svc-page .ams-cta { padding-block: clamp(44px, 6vw, 72px); }
/* Hero facts */
.svc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 320px; }
.svc-facts li { border: 1px solid var(--line); background: var(--card); border-radius: 10px; box-shadow: var(--shadow); }
.svc-facts li > a, .svc-facts li { text-decoration: none; color: inherit; }
.svc-facts li > a, .svc-facts li:not(:has(a)) { display: flex; align-items: baseline; gap: 6px; padding: 10px 12px; }
.svc-facts b { font-size: 1.4rem; line-height: 1; color: var(--accent-ink); }
.svc-facts span { font-size: 0.82rem; color: var(--fg-2); }
.svc-facts a:hover span { color: var(--fg); text-decoration: underline; }
.is-plc .svc-facts b { font-family: var(--plc-mono); }
.is-plc .svc-hero-side { justify-items: end; gap: 10px; }
.is-plc .svc-hero-side .svc-figure { width: 100%; max-width: 320px; }
/* Brands inside the systems section */
.svc-brands-strip { margin-top: 24px; }
.svc-brands-strip .col-title { margin-bottom: 10px; }
.svc-brands-strip .brand-logos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.svc-brands-strip .brand-logo { height: 76px; padding: 12px 16px; }
.svc-brands-strip .brand-logo .logo-frame { height: 40px; width: min(100%, calc(var(--r) * 40px)); aspect-ratio: auto; }
.svc-brands-strip .brand-name { font-size: 0.95rem; }
/* What we do + AMS side by side */
.svc-what-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 960px) { .svc-what-grid { grid-template-columns: 1fr; } }
.svc-what-aside .ams { margin: 0; grid-template-columns: 1fr; gap: 14px; padding: 24px; }
.svc-what-aside .ams h3 { font-size: 1.25rem; }
.svc-what-aside .ams .btn { justify-self: start; }
/* Compact ladder: label and rung on one line */
.rung { grid-template-columns: 64px minmax(160px, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto; align-items: center; padding: 10px 0; }
.rung-no { grid-row: 1; grid-column: 1; }
.rung-label { grid-column: 2; grid-row: 1; margin: 0 16px 0 0; font-size: 0.98rem; }
.rung-line { grid-column: 3; grid-row: 1; padding-right: 0; }
.rung-line::before { flex-basis: 16px; }
@media (max-width: 640px) { .rung { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 4px; } .rung-no { grid-row: 1 / span 2; } .rung-label { grid-column: 2; grid-row: 1; } .rung-line { grid-column: 2; grid-row: 2; } }
/* Service pages: shorter certificate previews (the top of the document) */
.svc-page .doc-page { aspect-ratio: 4 / 3; }
.svc-page .doc-page > img, .svc-page .doc-page > canvas { align-self: start; width: 100%; height: auto; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------------
   Electronics (PCB) page style
   ------------------------------------------------------------------ */
.is-pcb .svc-hero { position: relative; overflow: hidden; }
.pcb-bg { position: absolute; top: 0; bottom: 0; right: 0; width: min(56%, 860px); pointer-events: none; z-index: 0; opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220' viewBox='0 0 360 220'%3E%3Cg fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 34h86l22 22h64l16-16h172'/%3E%3Cpath d='M0 96h44l26 26h96l22-22h70l22 22h60'/%3E%3Cpath d='M0 172h126l22-22h44l22 22h146'/%3E%3Cpath d='M60 0v18l14 16'/%3E%3Cpath d='M226 0v26l-14 14'/%3E%3Cpath d='M300 220v-30l-18-18'/%3E%3Cpath d='M150 220v-22l12-12'/%3E%3Crect x='232' y='60' width='46' height='26' rx='2'/%3E%3Cpath d='M238 60v-6M246 60v-6M254 60v-6M262 60v-6M270 60v-6M238 86v6M246 86v6M254 86v6M262 86v6M270 86v6'/%3E%3Crect x='92' y='136' width='22' height='12' rx='1.5'/%3E%3C/g%3E%3Cg fill='%2364748B'%3E%3Ccircle cx='86' cy='34' r='3.2'/%3E%3Ccircle cx='172' cy='56' r='3.2'/%3E%3Ccircle cx='70' cy='122' r='3.2'/%3E%3Ccircle cx='188' cy='100' r='3.2'/%3E%3Ccircle cx='148' cy='150' r='3.2'/%3E%3Ccircle cx='214' cy='172' r='3.2'/%3E%3Ccircle cx='282' cy='172' r='3.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%2364748B' stroke-width='1.6'%3E%3Ccircle cx='330' cy='40' r='5'/%3E%3Ccircle cx='30' cy='200' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 360px 220px repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%); mask-composite: intersect; }
.is-pcb .svc-hero > .wrap { position: relative; z-index: 1; }
.is-pcb .svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); }
.is-pcb .svc-hero-side { justify-items: end; gap: 10px; }
.is-pcb .svc-hero-side .svc-figure { width: 100%; max-width: 320px; }
.is-pcb .svc-hero-text { max-width: 720px; }
@media (max-width: 900px) { .pcb-bg { width: 100%; opacity: .14; } .is-pcb .svc-hero-grid.has-side { grid-template-columns: 1fr; } .is-pcb .svc-hero-side { justify-items: start; } }


/* Steps typed in lower case still start with a capital */
.steps h3::first-letter, .rung-label::first-letter, .sys-name::first-letter, .plc-mod-name::first-letter, .sch-name::first-letter { text-transform: uppercase; }

/* Electronics: interactive system diagram, drawn like an electrical schematic */
.sch { display: grid; gap: 16px; --ink: var(--fg); --ink-2: var(--muted); }
.sch-sheet { --trunk: 44px; position: relative; border-radius: 6px; padding: 78px 26px 70px 84px; border: 1px solid var(--line); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -10px;
  background-color: var(--card); background-image: linear-gradient(rgb(37 99 235 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(37 99 235 / .055) 1px, transparent 1px); background-size: 20px 20px; }
.sch-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sch-wires .bus { stroke-width: 2.8; }
.sch-wires .dot { fill: var(--ink); stroke: none; }
.sch-wires .src { fill: var(--card); }
.sch-wires text { fill: var(--ink-2); stroke: none; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: .08em; }
.sch-wires .live { stroke: var(--lime); stroke-width: 2.4; transition: stroke-dashoffset .7s cubic-bezier(.3, .7, .3, 1); }
.sch-wires .live-dot { fill: var(--lime); stroke: none; }
.sch-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 24px; row-gap: 52px; }
@media (max-width: 520px) { .sch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 48px; } .sch-sheet { --trunk: 30px; padding: 74px 12px 74px 50px; } }
.sch-comp { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 4px 8px; background: none; border: 0; border-radius: 8px; color: var(--ink); font: inherit; cursor: pointer; text-align: center; }
.sch-fuse svg { display: block; width: 12px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; visibility: hidden; }
.sch-wires .fuse rect { fill: var(--card); }
.sch-wires .fuse.on { stroke: var(--lime); }
.sch-wires .fuse polyline { fill: none; }
.sch-wires .fuse.on rect { stroke-width: 1.9; }
.sch-wires .dot.on { fill: var(--lime); }
.sch-sym { display: grid; place-items: center; width: 92px; height: 66px; border-radius: 8px; transition: background .25s, color .25s; color: var(--ink); }
.sch-sym svg.sym, .sym-block > svg { width: 88px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sym-block { display: grid; place-items: center; }
.sym-block > svg { grid-area: 1 / 1; }
.sym-block > svg:last-child { width: 24px; height: 24px; stroke-width: 2; }
.sch-ref { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .66rem; color: var(--ink-2); transition: color .25s; }
.sch-name { font-size: .84rem; font-weight: 600; line-height: 1.25; max-width: 170px; }
.sch-comp:hover .sch-sym { color: var(--accent-ink); }
.sch-comp[aria-selected="true"] .sch-fuse svg { stroke: var(--lime); }
.sch-comp[aria-selected="true"] .sch-sym { color: var(--accent-ink); background: var(--lime-tint); }
.sch-comp[aria-selected="true"] .sch-ref { color: var(--accent-ink); font-weight: 700; }
.sch-comp:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sch-title { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: auto auto; border: 1px solid var(--ink-2); background: var(--card); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .6rem; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; }
.sch-title span { padding: 3px 8px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.sch-title span:nth-child(-n+2) { border-top: 0; }
.sch-title span:nth-child(odd) { border-left: 0; }
.sch-title span:first-child { color: var(--fg); font-weight: 700; }
.sch-props-ico svg.sym, .sch-props-ico .sym-block > svg { width: 40px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.sch-props-ico .sym-block > svg:last-child { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .sch-wires .live, .sch-sym, .sch-fuse svg { transition: none; } }

/* ------------------------------------------------------------------
   Navigation page style: chart + radar background, glass bridge
   ------------------------------------------------------------------ */
.is-nav .svc-hero { position: relative; overflow: hidden; }
.nav-bg-wrap { position: absolute; top: 0; bottom: 0; right: 0; width: min(60%, 920px); pointer-events: none; z-index: 0; color: var(--fg); opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
.nav-bg { display: block; width: 100%; height: 100%; }
.nav-bg path, .nav-bg circle, .nav-bg ellipse { vector-effect: non-scaling-stroke; }
.nb-grid path { fill: none; stroke: currentColor; stroke-opacity: .12; stroke-width: 1; }
.nb-grid .tick { stroke-opacity: .28; }
.nb-chart path { fill: none; stroke: #2F6FA8; stroke-opacity: .45; stroke-width: 1; }
.nb-chart .c1 { stroke-dasharray: 7 4; }
.nb-chart .c2 { stroke-dasharray: 2 4; }
.nb-chart .c3 { stroke-dasharray: 12 3 2 3; }
.nb-chart .land { fill: #D9B86C; fill-opacity: .2; stroke: currentColor; stroke-opacity: .5; stroke-width: 1.2; }
.nb-chart text { fill: currentColor; fill-opacity: .45; font-size: 11px; font-style: italic; }
.nb-chart .lat, .nb-chart .lbl { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-style: normal; font-size: 10px; letter-spacing: .08em; }
.nb-chart .light path { fill: currentColor; fill-opacity: .5; stroke: none; }
.nb-chart .light .flare { fill: #C026D3; fill-opacity: .3; }
.nb-radar circle, .nb-radar .tick, .nb-radar .hdg { fill: none; stroke: var(--lime); stroke-opacity: .55; stroke-width: 1; }
.nb-radar .echo { fill: var(--lime); fill-opacity: .42; }
.nb-radar .ais path { fill: none; stroke: #15803D; stroke-opacity: .75; }
.nb-radar .own { fill: none; stroke: var(--lime); stroke-width: 1.5; }
.nb-radar .sweep { fill: var(--lime); opacity: .3; transform-box: view-box; transform-origin: 430px 330px; animation: br-spin 16s linear infinite; }
.nb-radar .sweep .beam { fill: none; stroke: var(--lime); stroke-width: 1.2; }
.is-nav .svc-hero > .wrap { position: relative; z-index: 1; }
.is-nav .svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); }
.is-nav .svc-hero-side { justify-items: end; gap: 10px; }
.is-nav .svc-hero-side .svc-figure { width: 100%; max-width: 320px; }
.is-nav .svc-hero-text { max-width: 720px; }
@media (max-width: 900px) { .nav-bg-wrap { width: 100%; opacity: .26; } .is-nav .svc-hero-grid.has-side { grid-template-columns: 1fr; } .is-nav .svc-hero-side { justify-items: start; } }

.bridge { --desk-1: #E4E8EC; --desk-2: #D3D9DF; --desk-edge: #B7C0C9; --desk-ink: #4B535C; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
body.theme-dark .bridge { --desk-1: #2A3037; --desk-2: #22272D; --desk-edge: #3A424B; --desk-ink: #A9B2BB; }
@media (prefers-color-scheme: dark) { body.mode-auto .bridge { --desk-1: #2A3037; --desk-2: #22272D; --desk-edge: #3A424B; --desk-ink: #A9B2BB; } }
.bridge-helm, .bridge .plc-props { min-width: 0; }
.bridge-helm { display: grid; justify-items: center; }
/* The big displays: segments of black glass joined edge to edge; the outer ones turn in, as on a curved helm. */
.bridge-glass { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; width: 94%; perspective: 1700px; }
.bridge-glass.n-1 { width: min(460px, 100%); }
.bridge-glass.n-2 { width: min(720px, 100%); }
.bridge-glass > .br-scr { position: relative; padding: 6px 6px 0; border-radius: 3px; background: linear-gradient(180deg, #1A1E23 0%, #0A0C0E 100%); box-shadow: 0 14px 28px rgb(16 24 40 / .16); }
.bridge-glass > .br-scr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / .1) 0%, transparent 26%, transparent 72%, rgb(255 255 255 / .04) 86%, transparent 96%); }
.bridge-glass > .br-scr:first-child { border-top-left-radius: 10px; }
.bridge-glass > .br-scr:last-child { border-top-right-radius: 10px; }
.bridge-glass.n-3 > .br-scr:first-child, .bridge-glass.n-4 > .br-scr:first-child, .bridge-glass.n-5 > .br-scr:first-child { transform: rotateY(20deg); transform-origin: right center; }
.bridge-glass.n-3 > .br-scr:last-child, .bridge-glass.n-4 > .br-scr:last-child, .bridge-glass.n-5 > .br-scr:last-child { transform: rotateY(-20deg); transform-origin: left center; }
.br-scr { display: grid; align-content: start; min-width: 0; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.br-screen { position: relative; display: block; border-radius: 2px; overflow: hidden; background: #000; filter: saturate(.6) brightness(.94); transition: filter .3s, box-shadow .3s; }
.br-screen .disp { display: block; width: 100%; height: auto; }
.br-scr:hover .br-screen { filter: saturate(.85); }
.br-scr[aria-selected="true"] .br-screen { filter: none; box-shadow: 0 0 0 2px var(--lime); }
.br-cap { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 5px 2px 6px; font-size: .72rem; font-weight: 600; line-height: 1.2; color: #8A949E; transition: color .25s; }
.br-ico { display: none; }
.br-code { flex: none; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .62rem; opacity: .75; }
.br-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-name::first-letter { text-transform: uppercase; }
.br-scr:hover .br-cap { color: #D5DBE0; }
.br-scr[aria-selected="true"] .br-cap { color: #FFFFFF; }
.br-scr[aria-selected="true"] .br-code { color: var(--lime); opacity: 1; font-weight: 700; }
.br-scr:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
/* The console desk below: light, sloping towards the helmsman, with the small heads set into it. */
.bridge-desk { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; margin-top: -1px; padding: 16px 6% 16px; background: linear-gradient(180deg, var(--desk-2) 0%, var(--desk-1) 22%, var(--desk-1) 100%); box-shadow: inset 0 6px 10px -6px rgb(16 24 40 / .35), inset 0 -1px 0 var(--desk-edge); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); border-radius: 0 0 14px 14px; }
.bridge-heads { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 128px)); justify-content: center; gap: 12px 14px; min-width: 0; }
.bridge-heads:empty { display: block; }
.bridge-heads .br-scr { gap: 0; }
.bridge-heads .br-screen { border: 4px solid #121519; border-radius: 6px; box-shadow: 0 1px 0 rgb(255 255 255 / .5), 0 5px 10px rgb(16 24 40 / .22); }
.bridge-heads .br-scr[aria-selected="true"] .br-screen { border-color: #121519; box-shadow: 0 0 0 2px var(--lime), 0 5px 10px rgb(16 24 40 / .22); }
.bridge-heads .br-cap { justify-content: center; padding: 6px 0 0; color: var(--desk-ink); }
.bridge-heads .br-scr:hover .br-cap, .bridge-heads .br-scr[aria-selected="true"] .br-cap { color: var(--fg); }
.disp text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.disp-gen { display: grid !important; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 3; background: #04111B; color: #2FB8A8; position: relative; }
.br-scr.is-generic .disp-gen { aspect-ratio: 4 / 3; }
.disp-gen-bar { position: absolute; top: 0; left: 0; right: 0; padding: 3px 7px; background: rgb(0 0 0 / .45); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: #7F98AD; }
.disp-gen-ico svg { width: 34px; height: 34px; }
.disp-gen-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.disp-gen-bars i { width: 4px; background: #34D399; border-radius: 1px; height: calc(var(--h, 6) * 1px); }
.disp-gen-bars i:nth-child(1) { --h: 5; } .disp-gen-bars i:nth-child(2) { --h: 8; } .disp-gen-bars i:nth-child(3) { --h: 11; } .disp-gen-bars i:nth-child(4) { --h: 14; } .disp-gen-bars i:nth-child(5) { --h: 16; opacity: .3; }

/* Only the selected (or hovered) screen runs its page: radar sweep, sounder, route, Navtex… */
.disp .sweep { transform-box: view-box; animation: br-spin 4s linear infinite; }
.disp .scroll { animation: br-scroll 10s linear infinite; }
.is-instr .disp .scroll { animation-name: br-scroll-half; animation-duration: 7s; }
.disp .route { animation: br-dash 1.4s linear infinite; }
.disp .pulse { transform-box: view-box; animation: br-pulse 2.2s ease-out infinite; }
.disp .blink { animation: br-blink 1.6s steps(2, jump-none) infinite; }
.disp .roll { animation: br-roll 16s linear infinite; }
.disp .needle { transform-box: view-box; animation: br-sway 4.5s ease-in-out infinite alternate; }
.disp .rose { transform-box: view-box; animation: br-sway-s 6s ease-in-out infinite alternate; }
.disp .bars rect { animation: br-bars 2.4s ease-in-out infinite; }
.disp .bars rect:nth-child(2n) { animation-delay: -.8s; }
.disp .bars rect:nth-child(3n) { animation-delay: -1.6s; }
.br-scr .anim { animation-play-state: paused; }
.bridge.is-live .br-scr[aria-selected="true"] .anim, .bridge.is-live .br-scr:hover .anim { animation-play-state: running; }
@keyframes br-spin { to { transform: rotate(360deg); } }
@keyframes br-scroll { to { transform: translateX(-160px); } }
@keyframes br-scroll-half { to { transform: translateX(-80px); } }
@keyframes br-dash { to { stroke-dashoffset: -16; } }
@keyframes br-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes br-blink { 50% { opacity: .25; } }
@keyframes br-roll { to { transform: translateY(-154px); } }
@keyframes br-sway { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
@keyframes br-sway-s { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes br-bars { 50% { opacity: .45; } }

@media (max-width: 900px) {
  .bridge-glass { width: 100%; }
  .bridge-glass > .br-scr { transform: none !important; }
}
@media (max-width: 700px) {
  .bridge-glass, .bridge-glass.n-3, .bridge-glass.n-4, .bridge-glass.n-5 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridge-glass.n-1 { grid-template-columns: minmax(0, 1fr); }
  .bridge-glass > .br-scr { border-radius: 3px !important; }
  .bridge-glass > .br-scr:first-child { border-top-left-radius: 10px !important; }
  .bridge-glass > .br-scr:nth-child(2) { border-top-right-radius: 10px !important; }
  .bridge-desk { padding: 14px 12px; clip-path: none; }
  .bridge-heads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .br-cap { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .disp .anim, .disp .sweep, .disp .scroll, .nb-radar .sweep { animation: none !important; } .br-screen { transition: none; } }

/* ------------------------------------------------------------------
   Audio-visual page style: routing matrix background, yacht + panel + phone
   ------------------------------------------------------------------ */
.is-av .svc-hero { position: relative; overflow: hidden; }
.av-bg-wrap { position: absolute; top: 0; bottom: 0; right: 0; width: min(60%, 920px); pointer-events: none; z-index: 0; color: var(--fg); opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
.av-bg { display: block; width: 100%; height: 100%; }
.av-bg .wf { fill: none; stroke: currentColor; stroke-opacity: .3; stroke-width: 1.4; }
.av-bg .ph { stroke: var(--lime); stroke-width: 1.5; stroke-opacity: .8; }
.av-bg .mx path { fill: none; stroke: currentColor; stroke-opacity: .16; }
.av-bg .lab text { fill: currentColor; fill-opacity: .55; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 9.5px; letter-spacing: .08em; }
.av-bg .on { fill: var(--lime); fill-opacity: .6; }
.av-bg .off { fill: currentColor; fill-opacity: .28; }
.av-bg .mt { fill: var(--lime); fill-opacity: .45; }
.is-av .svc-hero > .wrap { position: relative; z-index: 1; }
.is-av .svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); }
.is-av .svc-hero-side { justify-items: end; gap: 10px; }
.is-av .svc-hero-side .svc-figure { width: 100%; max-width: 320px; }
.is-av .svc-hero-text { max-width: 720px; }
@media (max-width: 900px) { .av-bg-wrap { width: 100%; opacity: .2; } .is-av .svc-hero-grid.has-side { grid-template-columns: 1fr; } .is-av .svc-hero-side { justify-items: start; } }

.av { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.av-top { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 26px; align-items: center; min-width: 0; }
.av-stage { position: relative; min-width: 0; padding: 10px 14px 6px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -7px;
  background-color: var(--card); background-image: linear-gradient(rgb(37 99 235 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(37 99 235 / .05) 1px, transparent 1px); background-size: 20px 20px; }
.av-stage:not(.is-live) .av-diag * { animation-play-state: paused !important; }
.av-panel { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.av-panel-screen { padding: 12px 14px 14px; color: var(--fg); }
.av-panel-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.av-panel-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.av-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; align-content: start; }
.av-tile { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 8px 26px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--fg-2); font: inherit; text-align: left; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.av-tile:hover { border-color: color-mix(in srgb, var(--muted) 40%, transparent); color: var(--fg); }
.av-tile:active { transform: scale(.97); }
.av-tile-ico { flex: none; display: grid; color: var(--muted); transition: color .25s; }
.av-tile-ico svg { width: 18px; height: 18px; }
.av-tile-name { min-width: 0; font-size: .8rem; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.av-tile-name::first-letter { text-transform: uppercase; }
.av-tile-dot { position: absolute; top: 50%; right: 10px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line); transition: background .25s; }
.av-tile[aria-selected="true"] { border-color: rgb(var(--accent-rgb) / .6); background: rgb(var(--accent-rgb) / .08); color: var(--fg); }
.av-tile[aria-selected="true"] .av-tile-ico { color: var(--lime); }
.av-tile[aria-selected="true"] .av-tile-dot { background: var(--lime); }
.av-tile:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.av-detail { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); box-shadow: none; }
.av-detail .plc-props-body { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
.av-detail dt { color: var(--muted); }
.av-detail dd { color: var(--fg-2); }
.av-detail dd.strong { color: var(--fg); }
.av-detail dd.mono { color: var(--lime); }
.av-level, .av-phone-level { display: block; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.av-level { grid-column: 1 / -1; }
.av-level i, .av-phone-level i { display: block; width: 68%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--lime), rgb(var(--accent-rgb) / .45)); animation: av-level 3.2s ease-in-out infinite alternate; }
.av-phone { position: relative; justify-self: center; width: 224px; padding: 9px; border-radius: 40px; background: #0A0C10; box-shadow: 0 0 0 2px #2A3038, 0 30px 60px rgb(16 24 40 / .3); color-scheme: dark; }
.av-phone-screen { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 40px 14px 14px; border-radius: 32px; background: linear-gradient(180deg, #151C26, #0A0E14); color: #E6EBF0; overflow: hidden; }
.av-phone-notch { position: absolute; top: 9px; left: 50%; width: 66px; height: 18px; border-radius: 10px; background: #000; transform: translateX(-50%); }
.av-phone-top { position: absolute; top: 12px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: #8D98A4; }
.av-phone-card { display: grid; justify-items: center; gap: 8px; padding: 16px 12px 14px; border: 1px solid #222A33; border-radius: 18px; background: #121921; text-align: center; }
.av-phone-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--lime); color: var(--on-lime); box-shadow: 0 8px 24px rgb(var(--accent-rgb) / .35); }
.av-phone-ico svg { width: 26px; height: 26px; }
.av-phone-name { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.av-phone-name::first-letter { text-transform: uppercase; }
.av-phone-zone { font-size: .7rem; line-height: 1.35; color: #8D98A4; }
.av-phone-level { width: 100%; margin-top: 4px; }
.av-phone-play { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.av-phone-play i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #3A4450; }
.av-phone-play b { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #E6EBF0; }
.av-phone-play b::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 11px solid #0A0E14; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.av-phone-card.swap > * { animation: scada-in .4s cubic-bezier(.2, .75, .2, 1) both; }
.av-phone-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
.av-phone-scenes > span { padding: 7px 4px; border: 1px solid #222A33; border-radius: 10px; background: #10161D; font-size: .62rem; font-weight: 600; text-align: center; color: #8D98A4; transition: color .25s, background .25s, border-color .25s; }
.av-phone-scenes > span.on { border-color: rgb(var(--accent-rgb) / .6); background: rgb(var(--accent-rgb) / .14); color: #FFFFFF; }
.av-phone-label { margin-top: 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #66717C; }
.av-phone-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 7px 4px; border: 1px solid #222A33; border-radius: 16px; background: #121921; }
.av-phone-nav button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: #7D8894; cursor: pointer; transition: color .25s, background .25s; }
.av-phone-nav button svg { width: 16px; height: 16px; }
.av-phone-nav button.on { color: var(--lime); background: rgb(var(--accent-rgb) / .14); }
@keyframes av-level { from { width: 38%; } to { width: 82%; } }
@media (max-width: 960px) { .av-top { grid-template-columns: minmax(0, 1fr); } .av-phone { display: none; } }
@media (max-width: 640px) {
  .av-stage { border-radius: 12px; }
  .av-panel { border-radius: 12px; }
  .av-panel-screen { padding: 10px; }
  .av-panel-main { grid-template-columns: minmax(0, 1fr); }
  .av-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .av-tile { min-height: 44px; padding: 8px 22px 8px 8px; }
  .av-tile-name { font-size: .74rem; }
}
@media (max-width: 380px) { .av-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .av-diag *, .av-level i, .av-phone-level i { animation: none !important; } }

/* active equipment in the accent colour */
/* cables of the active system: highlighted, signal flowing from the rack */
/* music */
/* screens */
.av-stage.fx-in[data-fx="tv"] .lift { animation: avp-lift 1.2s cubic-bezier(.3, .7, .3, 1) both, avp-tv 3s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
/* lights: rooms switch on one after another, dim and come back */
/* DJ: moving light pools on the aft deck */
/* shades close and open again */
/* control: panels and Wi-Fi */
/* cameras */

.av-diag { display: block; width: 100%; height: auto; --acc: var(--lime); }
.av-diag text { font-size: 12.5px; font-weight: 600; fill: var(--fg); }
.av-diag .nd { opacity: .38; transition: opacity .45s; }
.av-diag .nb { fill: var(--card); stroke: var(--line); stroke-width: 1.4; transition: fill .45s, stroke .45s; }
.av-diag .hub .nb { stroke: color-mix(in srgb, var(--muted) 45%, transparent); }
.av-diag .hub text { font-weight: 700; }
.av-diag .ni { color: var(--muted); transition: color .45s; }
.av-diag .lk { fill: none; stroke: var(--muted); stroke-opacity: .3; stroke-width: 1.5; stroke-dasharray: 4 4; transition: stroke .45s, stroke-opacity .45s; }
.av-diag .core-node { opacity: 1; }
.av-diag .core-node .nb { fill: var(--fg); stroke: none; }
.av-diag .core-node .ni { color: var(--acc); }
.av-diag .core-node text { fill: var(--bg); text-anchor: middle; }
.av-diag .core-node .t1 { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.av-diag .core-node .t2 { font-size: 10px; font-weight: 500; fill-opacity: .7; }
.av-diag .core-ring { fill: none; stroke: var(--acc); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.av-stage.is-live .core-ring { animation: avd-ring 2.4s ease-out infinite; }
.av-stage[data-fx="audio"] .nd.dev.f-audio .ni, .av-stage[data-fx="tv"] .nd.dev.f-tv .ni, .av-stage[data-fx="light"] .nd.dev.f-light .ni, .av-stage[data-fx="shade"] .nd.dev.f-shade .ni, .av-stage[data-fx="dj"] .nd.dev.f-dj .ni, .av-stage[data-fx="cinema"] .nd.dev.f-cinema .ni, .av-stage[data-fx="ctrl"] .nd.dev.f-ctrl .ni, .av-stage[data-fx="cam"] .nd.dev.f-cam .ni { animation: avd-beat 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.av-diag .dt { fill: var(--card); stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.4; transition: fill .4s, stroke .4s; }
/* the chosen system lights up: its controller, devices and links */
.av-stage[data-sel="0"] .s-0.nd, .av-stage[data-sel="1"] .s-1.nd, .av-stage[data-sel="2"] .s-2.nd, .av-stage[data-sel="3"] .s-3.nd, .av-stage[data-sel="4"] .s-4.nd, .av-stage[data-sel="5"] .s-5.nd, .av-stage[data-sel="6"] .s-6.nd, .av-stage[data-sel="7"] .s-7.nd, .av-stage[data-fx="net"] .nd, .av-stage[data-fx="ctrl"] .nd.hub { opacity: 1; }
.av-stage[data-sel="0"] .s-0.nd .nb, .av-stage[data-sel="1"] .s-1.nd .nb, .av-stage[data-sel="2"] .s-2.nd .nb, .av-stage[data-sel="3"] .s-3.nd .nb, .av-stage[data-sel="4"] .s-4.nd .nb, .av-stage[data-sel="5"] .s-5.nd .nb, .av-stage[data-sel="6"] .s-6.nd .nb, .av-stage[data-sel="7"] .s-7.nd .nb, .av-stage[data-fx="net"] .nd:not(.core-node) .nb { fill: rgb(var(--accent-rgb) / .1); stroke: var(--acc); }
.av-stage[data-sel="0"] .s-0.nd .ni, .av-stage[data-sel="1"] .s-1.nd .ni, .av-stage[data-sel="2"] .s-2.nd .ni, .av-stage[data-sel="3"] .s-3.nd .ni, .av-stage[data-sel="4"] .s-4.nd .ni, .av-stage[data-sel="5"] .s-5.nd .ni, .av-stage[data-sel="6"] .s-6.nd .ni, .av-stage[data-sel="7"] .s-7.nd .ni, .av-stage[data-fx="net"] .nd:not(.core-node) .ni { color: var(--acc); }
.av-stage[data-sel="0"] .s-0.lk, .av-stage[data-sel="1"] .s-1.lk, .av-stage[data-sel="2"] .s-2.lk, .av-stage[data-sel="3"] .s-3.lk, .av-stage[data-sel="4"] .s-4.lk, .av-stage[data-sel="5"] .s-5.lk, .av-stage[data-sel="6"] .s-6.lk, .av-stage[data-sel="7"] .s-7.lk, .av-stage[data-fx="net"] .lk, .av-stage[data-fx="ctrl"] .lk.core { stroke: var(--acc); stroke-opacity: .95; stroke-width: 2; stroke-dasharray: 6 5; animation: avd-flow .9s linear infinite; }
.av-stage[data-sel="0"] .s-0.dt, .av-stage[data-sel="1"] .s-1.dt, .av-stage[data-sel="2"] .s-2.dt, .av-stage[data-sel="3"] .s-3.dt, .av-stage[data-sel="4"] .s-4.dt, .av-stage[data-sel="5"] .s-5.dt, .av-stage[data-sel="6"] .s-6.dt, .av-stage[data-sel="7"] .s-7.dt, .av-stage[data-fx="net"] .dt, .av-stage[data-fx="ctrl"] .dt.core { fill: var(--acc); stroke: var(--acc); stroke-opacity: 1; }
.av-stage[data-sel="0"] .s-0.nd.dev .ni, .av-stage[data-sel="1"] .s-1.nd.dev .ni, .av-stage[data-sel="2"] .s-2.nd.dev .ni, .av-stage[data-sel="3"] .s-3.nd.dev .ni, .av-stage[data-sel="4"] .s-4.nd.dev .ni, .av-stage[data-sel="5"] .s-5.nd.dev .ni, .av-stage[data-sel="6"] .s-6.nd.dev .ni, .av-stage[data-sel="7"] .s-7.nd.dev .ni { animation: avd-beat 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.av-stage[data-sel="0"] .s-0.nd.dev.ic-bulb .nb, .av-stage[data-sel="1"] .s-1.nd.dev.ic-bulb .nb, .av-stage[data-sel="2"] .s-2.nd.dev.ic-bulb .nb, .av-stage[data-sel="3"] .s-3.nd.dev.ic-bulb .nb, .av-stage[data-sel="4"] .s-4.nd.dev.ic-bulb .nb, .av-stage[data-sel="5"] .s-5.nd.dev.ic-bulb .nb, .av-stage[data-sel="6"] .s-6.nd.dev.ic-bulb .nb, .av-stage[data-sel="7"] .s-7.nd.dev.ic-bulb .nb { animation: avd-dim 3.6s ease-in-out infinite; }
.av-stage[data-sel="0"] .s-0.nd.dev.ic-tv .ni, .av-stage[data-sel="1"] .s-1.nd.dev.ic-tv .ni, .av-stage[data-sel="2"] .s-2.nd.dev.ic-tv .ni, .av-stage[data-sel="3"] .s-3.nd.dev.ic-tv .ni, .av-stage[data-sel="4"] .s-4.nd.dev.ic-tv .ni, .av-stage[data-sel="5"] .s-5.nd.dev.ic-tv .ni, .av-stage[data-sel="6"] .s-6.nd.dev.ic-tv .ni, .av-stage[data-sel="7"] .s-7.nd.dev.ic-tv .ni { animation: avd-tv 3s steps(1) infinite; }
.av-diag .nm { font-weight: 700; }
.av-diag .dev .nm { font-weight: 600; }
.av-diag .sb { font: 600 8.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; fill: var(--muted); }
@keyframes avd-flow { to { stroke-dashoffset: -22; } }
@keyframes avd-ring { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
@keyframes avd-beat { 50% { transform: scale(1.15); } }
@keyframes avd-dim { 0%, 100% { fill: rgb(251 191 36 / .35); } 50% { fill: rgb(251 191 36 / .06); } }
@keyframes avd-tv { 0% { color: #3B82F6; } 33% { color: #8B5CF6; } 66% { color: #EC4899; } }
@media (max-width: 640px) { .av-diag text { font-size: 15px; } .av-stage { padding: 6px; } }

.av-phone-level { background: #1F2730; }
.av-detail dd.strong::first-letter, .plc-props dd.strong::first-letter { text-transform: uppercase; }
.av-detail .plc-props-ico { width: 44px; height: 44px; border-radius: 10px; }

/* ------------------------------------------------------------------
   IT & networking page style: equipment background, network rack
   ------------------------------------------------------------------ */
.is-it .svc-hero { position: relative; overflow: hidden; }
.it-bg-wrap { position: absolute; top: 0; bottom: 0; right: 0; width: min(60%, 920px); pointer-events: none; z-index: 0; color: var(--fg); opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
.it-bg { display: block; width: 100%; height: 100%; }
.it-bg .cs, .it-bg .ear { fill: none; stroke: currentColor; stroke-opacity: .5; stroke-width: 1.2; }
.it-bg text { fill: currentColor; fill-opacity: .55; font: 600 9px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; }
.it-bg .rj { fill: none; stroke: currentColor; stroke-opacity: .55; }
.it-bg .sfp { fill: none; stroke: #0891B2; stroke-opacity: .7; }
.it-bg .ld, .it-bg .pw { fill: #16A34A; fill-opacity: .7; }
.it-bg .ap circle { fill: none; stroke: currentColor; stroke-opacity: .45; stroke-width: 1.2; }
.it-bg .ap .pw { fill: var(--lime); stroke: none; }
.it-bg .wf { fill: none; stroke: var(--lime); stroke-opacity: .5; stroke-width: 1.4; }
.is-it .svc-hero > .wrap { position: relative; z-index: 1; }
.is-it .svc-hero-grid.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); }
.is-it .svc-hero-side { justify-items: end; gap: 10px; }
.is-it .svc-hero-side .svc-figure { width: 100%; max-width: 320px; }
.is-it .svc-hero-text { max-width: 720px; }
@media (max-width: 900px) { .it-bg-wrap { width: 100%; opacity: .16; } .is-it .svc-hero-grid.has-side { grid-template-columns: 1fr; } .is-it .svc-hero-side { justify-items: start; } }

.it { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; --cu: #7F9CC4; --fb: #5FB0BE; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.it-stage { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; align-items: center; gap: 70px; min-width: 0; padding: 34px 30px 40px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  background-color: var(--card); background-image: linear-gradient(rgb(37 99 235 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(37 99 235 / .045) 1px, transparent 1px); background-size: 20px 20px; }
.it-cables, .it-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.it-front { z-index: 2; }
.it-cables path, .it-front path { fill: none; stroke-linecap: round; transition: stroke-opacity .35s, stroke-width .35s; }
.it-cables .cb, .it-front .cb { stroke-width: 2.2; stroke-opacity: .55; }
.it-cables .copper, .it-front .copper { stroke: var(--cu); } .it-cables .fiber, .it-front .fiber { stroke: var(--fb); }
.it-cables .pl, .it-front .pl { stroke: #FFFFFF; stroke-width: 1.6; stroke-dasharray: 2 16; stroke-opacity: 0; }
.it-cables circle, .it-front circle { fill: var(--card); stroke-width: 1.6; }
.it-cables circle.copper, .it-front circle.copper { stroke: var(--cu); } .it-cables circle.fiber, .it-front circle.fiber { stroke: var(--fb); }
.it-stage[data-sel="0"] .cb.s-0, .it-stage[data-sel="1"] .cb.s-1, .it-stage[data-sel="2"] .cb.s-2, .it-stage[data-sel="3"] .cb.s-3, .it-stage[data-sel="4"] .cb.s-4, .it-stage[data-sel="5"] .cb.s-5, .it-stage[data-sel="6"] .cb.s-6, .it-stage[data-sel="7"] .cb.s-7, .it-stage[data-sel="8"] .cb.s-8, .it-stage[data-sel="9"] .cb.s-9, .it-stage[data-sel="10"] .cb.s-10, .it-stage[data-sel="11"] .cb.s-11 { stroke-opacity: 1; stroke-width: 3; }
.it-stage[data-sel="0"] .pl.s-0, .it-stage[data-sel="1"] .pl.s-1, .it-stage[data-sel="2"] .pl.s-2, .it-stage[data-sel="3"] .pl.s-3, .it-stage[data-sel="4"] .pl.s-4, .it-stage[data-sel="5"] .pl.s-5, .it-stage[data-sel="6"] .pl.s-6, .it-stage[data-sel="7"] .pl.s-7, .it-stage[data-sel="8"] .pl.s-8, .it-stage[data-sel="9"] .pl.s-9, .it-stage[data-sel="10"] .pl.s-10, .it-stage[data-sel="11"] .pl.s-11 { stroke-opacity: .9; animation: it-flow 1.2s linear infinite; }
.it-stage[data-sel="0"] circle.s-0, .it-stage[data-sel="1"] circle.s-1, .it-stage[data-sel="2"] circle.s-2, .it-stage[data-sel="3"] circle.s-3, .it-stage[data-sel="4"] circle.s-4, .it-stage[data-sel="5"] circle.s-5, .it-stage[data-sel="6"] circle.s-6, .it-stage[data-sel="7"] circle.s-7, .it-stage[data-sel="8"] circle.s-8, .it-stage[data-sel="9"] circle.s-9, .it-stage[data-sel="10"] circle.s-10, .it-stage[data-sel="11"] circle.s-11 { fill: currentColor; }
.it-col { position: relative; z-index: 1; display: grid; gap: 14px; align-content: center; }
.it-col-t { font: 700 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.it-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg-2); font: inherit; text-align: left; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.it-card:hover { border-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.it-card.is-deco { cursor: default; opacity: .7; }
.it-card[aria-selected="true"] { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.it-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.it-card-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.it-card-h b { display: block; font-size: .86rem; line-height: 1.2; color: var(--fg); }
.it-card-h b::first-letter { text-transform: uppercase; }
.it-card-h i { display: block; font: 500 .62rem var(--mono); letter-spacing: .06em; color: var(--muted); font-style: normal; text-transform: uppercase; }
.it-card-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); color: var(--muted); transition: color .3s, background .3s; }
.it-card-ico svg { width: 17px; height: 17px; }
.it-card[aria-selected="true"] .it-card-ico { color: var(--lime); background: rgb(var(--accent-rgb) / .1); }
.it-devs { display: grid; gap: 6px; }
.it-dev { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; background: var(--bg-2); font-size: .74rem; font-weight: 600; color: var(--fg-2); }
.it-dev svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.it-stage[data-sel="0"] .it-dev.s-0, .it-stage[data-sel="1"] .it-dev.s-1, .it-stage[data-sel="2"] .it-dev.s-2, .it-stage[data-sel="3"] .it-dev.s-3, .it-stage[data-sel="4"] .it-dev.s-4, .it-stage[data-sel="5"] .it-dev.s-5, .it-stage[data-sel="6"] .it-dev.s-6, .it-stage[data-sel="7"] .it-dev.s-7, .it-stage[data-sel="8"] .it-dev.s-8, .it-stage[data-sel="9"] .it-dev.s-9, .it-stage[data-sel="10"] .it-dev.s-10, .it-stage[data-sel="11"] .it-dev.s-11 { background: rgb(var(--accent-rgb) / .08); }
.it-stage[data-sel="0"] .it-dev svg.s-0, .it-stage[data-sel="1"] .it-dev svg.s-1, .it-stage[data-sel="2"] .it-dev svg.s-2, .it-stage[data-sel="3"] .it-dev svg.s-3, .it-stage[data-sel="4"] .it-dev svg.s-4, .it-stage[data-sel="5"] .it-dev svg.s-5, .it-stage[data-sel="6"] .it-dev svg.s-6, .it-stage[data-sel="7"] .it-dev svg.s-7, .it-stage[data-sel="8"] .it-dev svg.s-8, .it-stage[data-sel="9"] .it-dev svg.s-9, .it-stage[data-sel="10"] .it-dev svg.s-10, .it-stage[data-sel="11"] .it-dev svg.s-11 { color: var(--lime); }
.it-rack { position: relative; z-index: 1; padding: 12px 30px 14px; border-radius: 8px; background: linear-gradient(90deg, #262A30, #30353C 5%, #30353C 95%, #262A30); box-shadow: 0 14px 30px rgb(16 24 40 / .14); }
.it-rack::before, .it-rack::after { content: ""; position: absolute; top: 12px; bottom: 14px; width: 10px; background: radial-gradient(circle, #1A1D21 1.8px, transparent 2.2px) center top / 10px 14px repeat-y, #3A4047; border-radius: 2px; }
.it-rack::before { left: 8px; } .it-rack::after { right: 8px; }
.it-rack-top { display: flex; justify-content: space-between; margin: 0 4px 8px; }
.it-rack-top i { width: 30px; height: 4px; border-radius: 2px; background: #3F454D; }
.it-units { display: grid; gap: 5px; }
.rk-u { position: relative; display: grid; grid-template-columns: 22px minmax(120px, 210px) minmax(0, 1fr) 8px; align-items: center; gap: 14px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #474D55; border-radius: 3px; background: linear-gradient(180deg, #3B4047, #33383E); color: #D3D8DE; font: inherit; text-align: left; transition: border-color .3s, box-shadow .3s; }
button.rk-u { cursor: pointer; }
button.rk-u:hover { border-color: #6A727C; }
.rk-u.u2 { height: 62px; }
.rk-u[aria-selected="true"] { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.it-stage[data-sel="0"] .rk-deco.s-0, .it-stage[data-sel="1"] .rk-deco.s-1, .it-stage[data-sel="2"] .rk-deco.s-2, .it-stage[data-sel="3"] .rk-deco.s-3, .it-stage[data-sel="4"] .rk-deco.s-4, .it-stage[data-sel="5"] .rk-deco.s-5, .it-stage[data-sel="6"] .rk-deco.s-6, .it-stage[data-sel="7"] .rk-deco.s-7, .it-stage[data-sel="8"] .rk-deco.s-8, .it-stage[data-sel="9"] .rk-deco.s-9, .it-stage[data-sel="10"] .rk-deco.s-10, .it-stage[data-sel="11"] .rk-deco.s-11 { border-color: rgb(var(--accent-rgb) / .6); }
.rk-u:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.rk-deco { cursor: default; }
.rk-ico { display: grid; color: #9AA3AD; } .rk-ico svg { width: 18px; height: 18px; }
.rk-u[aria-selected="true"] .rk-ico { color: var(--lime); }
.rk-lbl { min-width: 0; line-height: 1.15; }
.rk-lbl b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: #F1F3F5; }
.rk-lbl b::first-letter { text-transform: uppercase; }
.rk-lbl i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .62rem var(--mono); letter-spacing: .06em; color: #9AA3AD; font-style: normal; text-transform: uppercase; }
.rk-face { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; overflow: hidden; }
.rk-ports { display: grid; grid-auto-flow: column; grid-template-rows: 10px; gap: 4px; }
.rk-ports.r2 { grid-template-rows: 10px 10px; }
.rj { position: relative; display: block; width: 12px; height: 10px; border-radius: 1.5px; background: #1B1E22; box-shadow: inset 0 -3px 0 #3A4047; }
.rj.ks { background: #C9CED4; box-shadow: inset 0 -3px 0 #9AA3AD; }
.rj.up::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 2.5px; height: 2px; border-radius: 1px; background: #5CBF85; opacity: .85; animation: it-led 2.6s steps(2, jump-none) infinite; animation-delay: var(--d, 0s); }
.rk-sfp { display: flex; gap: 4px; }
.sfp { display: block; width: 18px; height: 11px; border-radius: 1.5px; background: #1B1E22; box-shadow: inset 0 0 0 3px #1B1E22, inset 0 0 0 5px #5A8F99; }
.rk-badge { font: 700 .6rem var(--mono); letter-spacing: .1em; color: #9AA3AD; padding: 2px 5px; border: 1px solid #535A63; border-radius: 2px; }
.rk-bays { display: flex; gap: 4px; } .rk-bays i { width: 34px; height: 12px; border-radius: 1.5px; background: #24282D; box-shadow: inset -5px 0 0 #5CBF8555; }
.rk-scr { display: block; width: 110px; height: 28px; border-radius: 2px; background: #1C2731; padding: 2px 3px; }
.rk-scr svg { width: 100%; height: 100%; } .rk-scr polyline { fill: none; stroke: #7FB8C4; stroke-width: 1.4; }
.rk-batt { position: relative; width: 70px; } .rk-batt i { position: absolute; inset: 7px 9px; border-radius: 2px; background: linear-gradient(90deg, #5CBF85 90%, transparent 90%); opacity: .6; }
.rk-led { width: 6px; height: 6px; border-radius: 50%; background: #5CBF85; }
.it-legend { position: absolute; left: 30px; bottom: 12px; display: flex; align-items: center; gap: 8px; font: 600 .6rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.it-legend i { width: 22px; height: 3px; border-radius: 2px; } .it-legend i.cu { background: var(--cu); } .it-legend i.fb { margin-left: 10px; background: var(--fb); }
.it-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.it-mon { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.it-mon-head { display: flex; justify-content: space-between; font: 700 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.it-live { display: inline-flex; align-items: center; gap: 6px; color: #15803D; } .it-live i { width: 6px; height: 6px; border-radius: 50%; background: #5CBF85; animation: it-led 2.6s steps(2, jump-none) infinite; }
.it-chart { display: block; width: 100%; height: 90px; overflow: hidden; }
.it-chart .grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.it-chart .lines { animation: it-scroll 14s linear infinite; }
.it-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .45; transition: opacity .4s; }
.it-chart .l1 { stroke: var(--lime); } .it-chart .l2 { stroke: var(--cu); } .it-chart .l3 { stroke: #5CBF85; }
.it-wan { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.it-wan li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: .78rem; color: var(--fg-2); transition: background .4s; }
.it-wan li i { width: 7px; height: 7px; border-radius: 50%; background: #5CBF85; }
.it-wan li span { font: 500 .7rem var(--mono); color: var(--muted); text-align: right; }
.it[data-fx-sel="sat"] .w-sat, .it[data-fx-sel="sat"] .w-cell, .it[data-fx-sel="cell"] .w-cell, .it[data-fx-sel="fw"] .w-fw, .it[data-fx-sel="wifi"] .w-wifi { background: rgb(var(--accent-rgb) / .08); color: var(--fg); }
.it[data-fx-sel="sat"] .it-chart .l1, .it[data-fx-sel="sat"] .it-chart .l2, .it[data-fx-sel="cell"] .it-chart .l2, .it[data-fx-sel="fw"] .it-chart polyline, .it[data-fx-sel="cloud"] .it-chart polyline, .it[data-fx-sel="switch"] .it-chart polyline { opacity: 1; }
.it-stage:not(.is-live) *, .it-stage:not(.is-live) ~ .it-bottom * { animation-play-state: paused !important; }
@keyframes it-flow { to { stroke-dashoffset: -36; } }
@keyframes it-led { 50% { opacity: .2; } }
@keyframes it-scroll { to { transform: translateX(-400px); } }
@media (max-width: 1180px) { .it-stage { grid-template-columns: 180px minmax(0, 1fr) 190px; gap: 44px; padding: 26px 20px 38px; } .rk-u { grid-template-columns: 20px minmax(100px, 150px) minmax(0, 1fr) 8px; gap: 10px; } }
@media (max-width: 900px) {
  .it-stage { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .it-col { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .it-col-t { grid-column: 1 / -1; }
  .it-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .it-stage { padding: 14px 12px 36px; gap: 34px; }
  .it-col { grid-template-columns: minmax(0, 1fr); }
  .it-rack { padding: 8px 20px 10px; }
  .rk-u { grid-template-columns: 16px minmax(0, 1fr) auto 6px; gap: 8px; height: 44px; padding: 0 8px; }
  .rk-u.u2 { height: 54px; }
  .rk-lbl b { font-size: .8rem; }
  .rj { width: 10px; height: 9px; } .rk-ports { grid-template-rows: 9px; } .rk-ports.r2 { grid-template-rows: 9px 9px; }
  .rk-face .rk-ports.r2 .rj:nth-child(n+9), .rk-face .rk-ports:not(.r2) .rj:nth-child(n+4), .rk-sfp .sfp:nth-child(n+2), .rk-badge, .rk-bays i:nth-child(n+3) { display: none; }
  .it-legend { left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .it * { animation: none !important; } }

/* Automation: a roomier rack and ladder, in line with the other service pages */
.plc-rack { gap: 10px; padding: 34px 26px 38px; }
.plc-cpu, .plc-mod { flex: 1 0 128px; min-height: 300px; gap: 12px; padding: 12px 10px 14px; }
.plc-cpu { flex: 0 0 140px; }
.plc-mod-ico { width: 50px; height: 50px; border-radius: 12px; }
.plc-mod-ico svg { width: 26px; height: 26px; }
.plc-mod-name { font-size: 0.9rem; line-height: 1.3; padding: 0 2px; }
.plc-mod-code { font-size: 0.78rem; padding: 4px 0; }
.plc-leds { grid-template-columns: repeat(2, 8px); gap: 7px 12px; padding: 8px 12px; }
.plc-props-body { padding: 22px 24px; }
.rung { padding: 16px 0; }
.rung-label { font-size: 1.05rem; }
.svc-what-grid { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); }
@media (max-width: 900px) { .is-plc .svc-hero-side, .is-nav .svc-hero-side, .is-av .svc-hero-side, .is-it .svc-hero-side, .is-pcb .svc-hero-side { justify-items: stretch; } .is-plc .svc-hero-side .svc-figure, .svc-facts { max-width: none; } }
@media (max-width: 640px) { .plc-cpu, .plc-mod { flex: 0 0 136px; min-height: 270px; } .plc-cpu { flex-basis: 120px; } .rung { padding: 12px 0; } }

/* Electronics: a real circuit drawn faintly behind the top of the page */
.ckt-bg { position: absolute; top: 12px; bottom: 12px; right: clamp(8px, 2vw, 32px); width: min(62%, 960px); pointer-events: none; z-index: 0; color: var(--fg); opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%); mask-composite: intersect; }
.ckt { display: block; width: 100%; height: 100%; }
.ckt .w path { fill: none; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.ckt .w .cut { stroke: var(--bg); stroke-width: 5; }
.ckt .c * { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ckt .c .acc { stroke: var(--lime); }
.ckt .c .fill { fill: currentColor; }
.ckt .d circle { fill: currentColor; }
.ckt .t text { font: 11px ui-monospace, "SF Mono", Menlo, Consolas, monospace; fill: currentColor; fill-opacity: .75; }
.ckt .t .s { font-size: 9px; }
.ckt .t .n { fill: var(--lime); fill-opacity: 1; font-weight: 700; }
@media (max-width: 900px) { .ckt-bg { width: 100%; opacity: .14; } }

/* Project pages: every card opens its project */
.proj { position: relative; transition: border-color .2s, transform .2s; }
.proj:hover { border-color: rgb(var(--accent-rgb) / 0.6); transform: translateY(-3px); }
.proj-link { color: inherit; text-decoration: none; }
.proj-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.proj-link:focus-visible { outline: none; }
.proj:has(.proj-link:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.proj-body h4 .proj-link:hover { color: var(--accent-ink); }
.proj-all-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--accent-ink); text-decoration: none; }
.proj-all-link:hover { text-decoration: underline; }
.proj-head-side { display: flex; align-items: center; gap: 18px; }
.svc-projects .proj-all-link { margin-top: 22px; }

.prj-page { padding-top: 64px; }
.prj-hero { position: relative; padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); background: radial-gradient(60% 70% at 85% 0%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--bg); }
.prj-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: clamp(20px, 3vw, 34px); }
.prj-crumbs a { color: inherit; text-decoration: none; }
.prj-crumbs a:hover { color: var(--accent-ink); }
.prj-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(24px, 4vw, 64px); align-items: end; }
.prj-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0; max-width: 18em; }
.prj-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--fg-2); max-width: 40em; margin: 18px 0 0; }
.prj-svcs { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prj-svcs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.prj-svcs a:hover { border-color: rgb(var(--accent-rgb) / 0.6); color: var(--accent-ink); }
.prj-svc-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--lime-tint); color: var(--accent-ink); display: grid; place-items: center; }
.prj-svc-ico svg { width: 14px; height: 14px; }
.prj-facts { margin: 0; padding: 6px 22px; display: grid; }
.prj-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.prj-facts div:last-child { border-bottom: 0; }
.prj-facts dt { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prj-facts dd { margin: 0; font-weight: 600; }
.prj-cover { margin: clamp(28px, 4vw, 48px) 0 0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 21 / 9; background: var(--card-2); }
.prj-cover a, .prj-cover img { display: block; width: 100%; height: 100%; }
.prj-cover img { object-fit: cover; transition: transform .6s ease; }
.prj-cover a:hover img { transform: scale(1.015); }
.prj-cover-ph { position: relative; height: 100%; display: grid; place-items: center; color: var(--accent-ink); background: radial-gradient(70% 90% at 80% 10%, rgb(var(--accent-rgb) / 0.2), rgb(var(--accent-rgb) / 0) 60%), linear-gradient(135deg, var(--card-2), var(--bg)); }
.prj-cover-ph svg { width: 64px; height: 64px; opacity: .85; }
.prj-cover-ph .ph { position: absolute; left: 16px; bottom: 14px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.prj-story { border-top: 1px solid var(--line); }
.prj-story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.prj-story-grid.has-side { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; }
.prj-text { font-size: 1.02rem; max-width: 46em; }
.prj-text > *:first-child { margin-top: 0; }
.prj-text p { color: var(--fg-2); }
.prj-text h2, .prj-text h3 { margin-top: 1.6em; }
.prj-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.prj-box { padding: 22px 22px 20px; }
.prj-box .col-title { margin-bottom: 12px; }
.prj-scope { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prj-scope li { display: flex; gap: 10px; line-height: 1.45; }
.prj-kit { margin: 0; }
.prj-side-cta { width: 100%; }
.prj-gallery-sec { border-top: 1px solid var(--line); }
.prj-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 12px; }
.prj-gallery .prj-shot:first-child { grid-column: span 2; grid-row: span 2; }
.prj-gallery.n1 { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 40vw, 560px); }
.prj-gallery.n1 .prj-shot:first-child { grid-column: auto; grid-row: auto; }
.prj-gallery.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 28vw, 420px); }
.prj-gallery.n2 .prj-shot:first-child { grid-column: auto; grid-row: auto; }
.prj-gallery.n3 { grid-template-columns: 2fr 1fr; }
.prj-gallery.n3 .prj-shot:first-child { grid-column: auto; }
.prj-gallery.n4 .prj-shot:nth-child(4) { grid-column: span 2; }
.prj-shot { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--card-2); }
.prj-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prj-shot:hover img { transform: scale(1.04); }
.prj-shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 0.8rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); }
.prj-pager { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prj-pager-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 22px; }
.prj-pager-link { display: grid; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.prj-pager-link.next { text-align: right; }
.prj-pager-dir { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prj-pager-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prj-pager-link:hover .prj-pager-title { color: var(--accent-ink); }
.prj-pager-all { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 0.85rem; font-weight: 600; }
.prj-pager-all:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.prj-archive-hero { padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.prj-list.screen { padding-top: clamp(28px, 4vw, 48px); }
.prj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.prj-all .proj[hidden] { display: none; }

/* Photo viewer: previous / next between the photos of a page */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.lightbox-nav:hover { background: var(--lime); color: var(--on-lime); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-count { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .prj-hero-grid, .prj-story-grid.has-side { grid-template-columns: minmax(0, 1fr); }
  .prj-side { position: static; }
  .prj-cover { aspect-ratio: 16 / 10; }
  .prj-gallery, .prj-gallery.n3 { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(130px, 34vw, 240px); }
  .prj-gallery.n4 .prj-shot:nth-child(4) { grid-column: auto; }
}
@media (max-width: 560px) {
  .prj-cover { border-radius: 12px; aspect-ratio: 4 / 3; }
  .prj-gallery.n2 { grid-template-columns: 1fr; }
  .prj-pager-grid { grid-template-columns: 1fr 1fr; }
  .prj-pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .prj-pager-title { white-space: normal; }
}

/* Contact rows: a value that wraps under its label (e.g. "Technical director" on a phone) stays on the right like the others */
.contact-card .val { margin-left: auto; max-width: 100%; overflow-wrap: anywhere; }

/* Phones: the details of the chosen system stay in view at the bottom of the screen while the
   diagram, rack or bridge is scrolled, and take less room */
@media (max-width: 760px) {
  [data-plc] > .plc-props, .av-panel-main > .plc-props, .it-bottom > .plc-props {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 6;
    border-color: rgb(var(--accent-rgb) / 0.45);
    box-shadow: 0 10px 34px rgba(16, 24, 40, 0.22), 0 0 0 1px rgb(var(--accent-rgb) / 0.12);
  }
  [data-plc] .plc-props-tabs, [data-plc] .plc-props-state { display: none; }
  [data-plc] .plc-props-body { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 12px 14px 13px; max-height: 38vh; overflow-y: auto; }
  [data-plc] .plc-props-ico { width: 38px; height: 38px; border-radius: 10px; }
  [data-plc] .plc-props-ico svg { width: 20px; height: 20px; }
  [data-plc] .sch-props-ico svg { width: 30px; height: 22px; }
  [data-plc] .plc-props dl { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
  [data-plc] .plc-props dl > div:not(.wide) dt, [data-plc] .plc-props dl > .wide dt { display: none; }
  [data-plc] .plc-props dd.mono { font-size: 0.78rem; }
  [data-plc] .plc-props dd.strong { font-size: 0.98rem; line-height: 1.3; }
  [data-plc] .plc-props dd[data-out="desc"] { font-size: 0.86rem; line-height: 1.45; margin-top: 2px; }
  /* IT: the details follow the rack directly, the bandwidth monitor comes after */
  .it-bottom { display: contents; }
  .it > .it-stage { order: 0; }
  .it-bottom > .plc-props { order: 1; }
  .it-bottom > .it-mon { order: 2; }
  /* More compact interactives */
  .it-devs { display: flex; flex-wrap: wrap; gap: 5px; }
  .it-dev { padding: 4px 8px; font-size: .7rem; }
  .it-card { gap: 8px; padding: 10px; }
  .it-col { gap: 10px; }
}
@media (max-width: 520px) {
  .sch-grid { row-gap: 34px; }
  .sch-sym { width: 74px; height: 52px; }
  .sch-sym svg.sym { width: 70px; height: 50px; }
  .sch-name { font-size: 0.8rem; }
}
@media print { [data-plc] > .plc-props, .av-panel-main > .plc-props, .it-bottom > .plc-props { position: static; box-shadow: none; } }

/* Automation: with more than 5 systems the rack gets a second DIN rail, so each module has room to breathe */
@media (min-width: 901px) {
  .plc-rack.two-rails { --rh: 290px; display: grid; grid-template-columns: 150px repeat(var(--per), minmax(0, 220px)); grid-auto-rows: var(--rh); justify-content: center; gap: 34px 16px; padding: 40px 30px; overflow: visible;
    background:
      repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .14) 16px 26px) 0 calc(40px + var(--rh) / 2 - 5px) / 100% 10px no-repeat,
      linear-gradient(#D5D9DE, #AEB4BB 45%, #DCE0E4 55%, #B3B9C0) 0 calc(40px + var(--rh) / 2 - 18px) / 100% 36px no-repeat,
      repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .14) 16px 26px) 0 calc(74px + var(--rh) * 1.5 - 5px) / 100% 10px no-repeat,
      linear-gradient(#D5D9DE, #AEB4BB 45%, #DCE0E4 55%, #B3B9C0) 0 calc(74px + var(--rh) * 1.5 - 18px) / 100% 36px no-repeat,
      radial-gradient(circle, rgba(16, 24, 40, .07) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
      linear-gradient(#ECEEF1, #E2E5E9); }
  .plc-rack.two-rails::before { display: none; }
  .plc-rack.two-rails > .plc-cpu, .plc-rack.two-rails > .plc-mod { min-height: 0; height: var(--rh); }
  .plc-rack.two-rails > .plc-cpu { grid-row: 1 / span 2; align-self: start; }
  .plc-rack.two-rails .plc-mod-name { font-size: 1rem; }
  .plc-rack.two-rails .plc-mod-ico { width: 56px; height: 56px; }
  .plc-rack.two-rails .plc-mod-ico svg { width: 28px; height: 28px; }
  .plc-rack.two-rails .plc-mod-code { font-size: 0.82rem; }
}

/* Homepage service cards: a faint drawing from the service's own page in the lower corner */
.svc.has-motif { position: relative; overflow: hidden; isolation: isolate; }
.svc-motif { position: absolute; z-index: -1; right: -6px; bottom: 58px; width: min(96%, 340px); height: auto; aspect-ratio: 240 / 200; pointer-events: none; color: var(--fg); opacity: .07; transition: opacity .4s, transform .6s cubic-bezier(.2, .75, .2, 1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%); mask-image: linear-gradient(180deg, transparent 0%, #000 50%); }
.svc.has-motif:hover .svc-motif { opacity: .12; transform: translateY(-3px); }
.svc-motif .ln path, .svc-motif .ln circle, .svc-motif .sym * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-motif .sym .fl, .svc-motif .dt circle, .svc-motif .bars rect { fill: currentColor; stroke: none; }
.svc-motif .a { stroke: var(--lime); fill: none; stroke-width: 1.8; }
.svc-motif .af, .svc-motif .sym .af, .svc-motif .dt .af, .svc-motif .bars .af { fill: var(--lime); stroke: none; }
.svc-motif .fb { stroke: var(--lime); }
.svc-motif .sweep { fill: var(--lime); fill-opacity: .18; stroke: none; }
.svc-motif text { font: 9px ui-monospace, "SF Mono", Menlo, Consolas, monospace; fill: currentColor; stroke: none; }
.svc-motif text.a, .svc-motif tspan.a { fill: var(--lime); stroke: none; font-weight: 700; }
.svc-motif .code text { font-size: 10.5px; }
.m-plc { bottom: 60px; }
.svc.has-motif .svc-more { background: var(--card); }
@media (prefers-reduced-motion: reduce) { .svc-motif { transition: none; } }

/* Theme menu: light, dark and seasonal modes */
html[data-theme="dark"] { background: #14161A; color-scheme: dark; }
html[data-theme="light"] { background: #FFFFFF; color-scheme: light; }
.theme-pick[hidden] { display: none !important; }
.theme-pick.in-nav { position: relative; margin-left: 6px; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { color: var(--accent-ink); border-color: rgb(var(--accent-rgb) / .5); }
.ti { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ti .fill { fill: currentColor; stroke: none; }
.theme-toggle .ti { display: none; }
.theme-toggle[data-cur="auto"] .ti-auto, .theme-toggle[data-cur="light"] .ti-light, .theme-toggle[data-cur="dark"] .ti-dark,
.theme-toggle[data-cur="newyear"] .ti-newyear, .theme-toggle[data-cur="summer"] .ti-summer { display: block; }
.theme-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 240px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 24, 40, .18); animation: tm-in .18s ease-out; }
.theme-menu[hidden] { display: none; }
@keyframes tm-in { from { opacity: 0; transform: translateY(-4px); } }
.tm-h { margin: 8px 10px 4px; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.tm-item:hover, .tm-item:focus-visible { background: var(--card-2); outline: none; }
.tm-item[aria-checked="true"] { background: var(--lime-tint); }
.tm-item[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent-ink); font-weight: 700; }
.tm-item .ti { width: 20px; height: 20px; color: var(--fg-2); }
.tm-item[data-mode="newyear"] .ti { color: #D9A22B; }
.tm-item[data-mode="summer"] .ti { color: #0284C7; }
.tm-txt b { display: block; font-weight: 600; line-height: 1.25; }
.tm-txt small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.theme-pick.in-panel { display: none; }
@media (max-width: 520px) {
  .theme-pick.in-nav { display: none; }
  .mobile-panel .theme-pick.in-panel { display: block; margin-top: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .mobile-panel .theme-pick.in-panel .tm-h { margin: 4px 4px 6px; }
  .tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tm-grid .tm-item { gap: 10px; padding: 10px 12px; background: var(--card-2); border: 1px solid transparent; }
  .tm-grid .tm-item[aria-checked="true"] { border-color: rgb(var(--accent-rgb) / .55); background: var(--lime-tint); }
  .tm-grid .tm-item[data-mode="auto"] { grid-column: 1 / -1; }
}
/* A soft cross-fade while switching */
body.theme-switching, body.theme-switching *, body.theme-switching *::before, body.theme-switching *::after { transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease, stroke .3s ease !important; }
@media (prefers-reduced-motion: reduce) { body.theme-switching, body.theme-switching * { transition: none !important; } .theme-menu { animation: none; } }
@media print { .theme-pick, .season-fx { display: none !important; } }

/* Seasonal scene (switched on by the site owner): the site colours stay as they are; one quiet illustration
   sits at the bottom of the closing contact section, and a small mark next to the name in the navbar */
.season-label { display: inline-block; height: 25px; margin-left: 8px; vertical-align: -5px; overflow: visible; animation: sc-pop .5s cubic-bezier(.2, .9, .3, 1.3) both .3s; transform-origin: 50% 100%; }
.season-label.sl-newyear { width: 23px; height: 27px; vertical-align: -6px; }
.season-label.sl-summer { width: 25px; }
@keyframes sc-pop { from { transform: scale(0); } }
.has-scene { position: relative; overflow: hidden; }
.has-scene > .wrap { position: relative; z-index: 2; }
.hero.has-scene, .svc-hero.has-scene, .prj-hero.has-scene, .about-hero.has-scene, .ams-hero.has-scene { padding-bottom: calc(clamp(48px, 7vw, 96px) + 44px); }
section.contact.has-scene { padding-bottom: calc(clamp(64px, 9vw, 112px) + 36px); }
@media (max-width: 700px) { .has-scene { padding-bottom: 130px !important; } }
.season-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.season-scene svg { position: absolute; right: 0; bottom: 0; width: max(100%, 860px); height: auto; max-height: 150px; overflow: visible; }
.season-scene .sc { opacity: .92; }
body.theme-dark .season-scene .sc { opacity: .8; }
body.theme-dark .season-scene .sunglow { display: none; }
@media (prefers-color-scheme: dark) { body.mode-auto .season-scene .sc { opacity: .8; } body.mode-auto .season-scene .sunglow { display: none; } }
.season-scene .bulb, .season-label .bulb { fill: #FFD36B; opacity: .4; animation: sc-twinkle 4.2s ease-in-out infinite; }
.season-scene .boat { animation: sc-sail 16s ease-in-out infinite alternate; }
.season-scene .wave { animation: sc-wave 9s linear infinite; }
.season-scene .wave.w2 { animation-duration: 13s; animation-direction: reverse; }
.season-scene .flake { position: absolute; top: -8px; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); animation: sc-snow 11s linear infinite; }
@keyframes sc-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes sc-sail { from { transform: translate(-30px, 0); } 50% { transform: translate(0, 1.5px); } to { transform: translate(30px, 0); } }
@keyframes sc-wave { from { transform: translateX(0); } to { transform: translateX(50px); } }
@keyframes sc-snow { from { transform: translateY(0); } to { transform: translateY(560px); } }
@media (max-width: 700px) { .season-scene svg { max-height: 120px; } .season-scene .flake:nth-of-type(odd) { display: none; } }
@media (prefers-reduced-motion: reduce) { .season-scene *, .season-scene .flake, .season-label, .season-label * { animation: none !important; } .season-scene .flake { display: none; } }
@media print { .season-scene, .season-label { display: none !important; } }

/* Automation rack in the dark theme */
body.theme-dark .plc-leds, body.theme-dark .plc-mod:not([aria-selected="true"]) .plc-mod-code { background: #121417; box-shadow: inset 0 0 0 1px #3A4048; }
body.theme-dark .plc-rack { background: radial-gradient(circle, rgba(255, 255, 255, .05) 1.2px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(#1E2227, #181B1F); }
body.theme-dark .plc-rack::before { background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 50% / 100% 10px no-repeat, linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53); }
body.theme-dark .plc-mod { background: linear-gradient(180deg, #2B3037, #22262C); border-color: #3A4048; box-shadow: 0 2px 0 #121417, 0 8px 16px rgba(0, 0, 0, .3); color: var(--fg); }
body.theme-dark .plc-mod[aria-selected="true"] { border-color: var(--lime); box-shadow: 0 2px 0 var(--lime), 0 18px 30px rgb(var(--accent-rgb) / .22); }
body.theme-dark .plc-mod-ico { background: rgb(var(--accent-rgb) / .14); }
body.theme-dark .plc-cpu { border-color: #0E1013; }
@media (min-width: 901px) { body.theme-dark .plc-rack.two-rails { background:
  repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 calc(40px + var(--rh) / 2 - 5px) / 100% 10px no-repeat,
  linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53) 0 calc(40px + var(--rh) / 2 - 18px) / 100% 36px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 calc(74px + var(--rh) * 1.5 - 5px) / 100% 10px no-repeat,
  linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53) 0 calc(74px + var(--rh) * 1.5 - 18px) / 100% 36px no-repeat,
  radial-gradient(circle, rgba(255, 255, 255, .05) 1.2px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(#1E2227, #181B1F); } }
@media (prefers-color-scheme: dark) {
body.mode-auto .plc-leds, body.mode-auto .plc-mod:not([aria-selected="true"]) .plc-mod-code { background: #121417; box-shadow: inset 0 0 0 1px #3A4048; }
body.mode-auto .plc-rack { background: radial-gradient(circle, rgba(255, 255, 255, .05) 1.2px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(#1E2227, #181B1F); }
body.mode-auto .plc-rack::before { background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 50% / 100% 10px no-repeat, linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53); }
body.mode-auto .plc-mod { background: linear-gradient(180deg, #2B3037, #22262C); border-color: #3A4048; box-shadow: 0 2px 0 #121417, 0 8px 16px rgba(0, 0, 0, .3); color: var(--fg); }
body.mode-auto .plc-mod[aria-selected="true"] { border-color: var(--lime); box-shadow: 0 2px 0 var(--lime), 0 18px 30px rgb(var(--accent-rgb) / .22); }
body.mode-auto .plc-mod-ico { background: rgb(var(--accent-rgb) / .14); }
body.mode-auto .plc-cpu { border-color: #0E1013; }
@media (min-width: 901px) { body.mode-auto .plc-rack.two-rails { background:
  repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 calc(40px + var(--rh) / 2 - 5px) / 100% 10px no-repeat,
  linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53) 0 calc(40px + var(--rh) / 2 - 18px) / 100% 36px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, .3) 16px 26px) 0 calc(74px + var(--rh) * 1.5 - 5px) / 100% 10px no-repeat,
  linear-gradient(#5A616A, #3E444B 45%, #646B74 55%, #454B53) 0 calc(74px + var(--rh) * 1.5 - 18px) / 100% 36px no-repeat,
  radial-gradient(circle, rgba(255, 255, 255, .05) 1.2px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(#1E2227, #181B1F); } }
}
/* The phone menu scrolls when it is taller than the screen (theme choices at the bottom) */
.mobile-panel:not([hidden]) { max-height: calc(100dvh - 84px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 10px; margin-right: -4px; scrollbar-width: thin; }
.mobile-panel .theme-pick.in-panel { width: 300px; box-sizing: border-box; }

/* AMS page: equipment brands and client reviews */
.ams-brands { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ams-brands li { display: flex; }
.ams-brands a, .ams-brands span { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; box-sizing: border-box; padding: 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ams-brands a::after { content: "\2197"; font-size: 13px; opacity: .45; transition: opacity .2s; }
.ams-brands a:hover, .ams-brands a:focus-visible { border-color: rgb(var(--accent-rgb) / 0.6); box-shadow: var(--shadow); transform: translateY(-2px); }
.ams-brands a:hover::after { opacity: 1; }
.ams-reviews-title { margin: 52px 0 0; text-align: center; font-size: 1.35rem; }
.ams-reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 26px; }
.ams-reviews.n1 { max-width: 720px; margin-inline: auto; }
.ams-review { position: relative; margin: 0; padding: 28px 26px 22px; display: flex; flex-direction: column; }
.ams-review::before { content: "\201C"; position: absolute; top: 10px; left: 20px; font: 700 62px/1 Georgia, "Times New Roman", serif; color: rgb(var(--accent-rgb) / .4); }
.ams-review blockquote { margin: 0; padding-top: 26px; flex: 1; }
.ams-review blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.62; color: var(--fg); }
.ams-review figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.ams-review figcaption b { font-weight: 700; }
.ams-review figcaption span { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .ams-brands a, .ams-brands span { min-height: 44px; padding: 0 16px; font-size: 14px; } }

/* Legal notice and privacy policy */
.legal-page article { max-width: 780px; }
.legal-updated { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.legal-page .entry { line-height: 1.7; }
.legal-page .entry h2 { font-size: 1.3rem; }
.legal-page .entry h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal-page .entry ul { padding-left: 1.2em; }
.legal-page .entry li { margin: .3em 0; }
.legal-optout { margin: 14px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.legal-optout p:last-child { margin-bottom: 0; }

/* Office map: OpenStreetMap (Leaflet), no cookies */
.map-osm { isolation: isolate; }
.map-osm.is-ready { background: var(--card); }
.map-osm .leaflet-container, .map-osm.leaflet-container { font: inherit; background: var(--card); }
.map-osm .leaflet-tile-pane { filter: saturate(.7) contrast(.98); }
body.theme-dark .map-osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); }
@media (prefers-color-scheme: dark) { body.mode-auto .map-osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); } }
.map-osm .leaflet-control-attribution { font-size: 10px; background: rgb(255 255 255 / .8); }
body.theme-dark .map-osm .leaflet-control-attribution { background: rgb(20 22 26 / .8); color: #c9ced4; }
body.theme-dark .map-osm .leaflet-control-attribution a { color: #e8eaed; }
.map-osm .leaflet-bar a { color: #1b1d21; }
.map-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: rgb(var(--accent-rgb)); border: 2px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / .35); }
.map-pin span::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.map-pin b { position: absolute; left: 32px; top: 2px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #fff; color: #1b1d21; font: 600 12px/1.2 Poppins, Arial, sans-serif; box-shadow: 0 3px 10px rgb(0 0 0 / .25); }
body.theme-dark .map-pin b { background: #1d2025; color: #f1f3f5; }
@media (prefers-color-scheme: dark) { body.mode-auto .map-pin b { background: #1d2025; color: #f1f3f5; } }

.form-privacy { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.form-privacy a { color: inherit; text-decoration: underline; }
