/* BSS Management, v3 "Field notes"
   Light paper, black ink, one green taken from the logo arrow.
   Flat surfaces, hairline rules, rectangular controls. Dark panels only where a diagram lives. */

@font-face { font-family: "Michroma"; src: url("../fonts/michroma.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F4F3EF;
  --bg-2: #ECEAE4;
  --panel: #FFFFFF;
  --panel-2: #FFFFFF;
  --text: #121418;
  --text-2: #41464E;
  --muted: #62666E;
  --line: #DAD8D1;
  --line-2: #C9C6BD;
  --line-3: #A9A69C;
  --accent: #0B6B47;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(11, 107, 71, 0.08);
  --amber: #9A6A12;

  --f-display: "Michroma", "Eurostile", ui-sans-serif, sans-serif;
  --f-label: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 4px;
  --z-nav: 20; --z-menu: 30; --z-skip: 50;
}

/* Dark "screen" context for diagrams and illustrations */
.screen, .console .core, .flow-canvas .core, .rack-card .core, .plan-card .core {
  --panel: #14171C; --panel-2: #181C22;
  --text: #ECEEF1; --text-2: #A9B0BA; --muted: #838B98;
  --line: rgba(236, 238, 241, 0.09); --line-2: rgba(236, 238, 241, 0.14); --line-3: rgba(236, 238, 241, 0.24);
  --accent: #5FE0A0; --accent-ink: #062014; --accent-soft: rgba(95, 224, 160, 0.1); --amber: #E9B65A;
  background: #14171C; color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: var(--z-skip); background: var(--text); color: var(--bg); padding: .5rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.hl { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.175rem); line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em; color: var(--muted); text-transform: none; }
.dim { color: var(--muted); }

/* Section label: plain text, no pill */
.eyebrow { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.eyebrow .dot { display: none; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-nav); background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: auto; color: var(--text); }
.brand-mark .arw { color: var(--accent); }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type b { font-family: var(--f-display); font-weight: 400; font-size: 1rem; letter-spacing: .05em; }
.brand-type small { font-family: var(--f-label); font-weight: 500; font-size: .5rem; letter-spacing: .5em; margin-top: .25rem; color: var(--text-2); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; color: var(--text-2); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 calc(100% - .5rem); background-repeat: no-repeat; transition: background-size .3s var(--ease), color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); background-size: 100% 1px; }
.topbar .btn { padding: .5rem 1rem; }
.topbar-tel { font-family: var(--f-mono); font-size: .85rem; color: var(--text-2); text-decoration: none; }

/* ---------- Buttons: rectangles ---------- */
.btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .75rem 1.25rem; border-radius: var(--r); border: 1px solid var(--text); background: var(--text); color: var(--bg); font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn .ic { display: inline-grid; place-items: center; transition: transform .3s var(--ease); }
.btn .ic svg { width: 14px; height: 14px; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn--ghost:hover { background: transparent; color: var(--text); border-color: var(--text); }
.btn--light { background: #fff; color: #121418; border-color: #fff; }
.btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.screen .btn, .console .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.link-arrow { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Menu (mobile) ---------- */
.burger { display: none; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-3); border-radius: var(--r); background: transparent; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; }
.burger span { display: none; }
.burger::after { content: "Menu"; }
.menu-open .burger::after { content: "Close"; }
.menu { position: fixed; inset: 4.5rem 0 0 0; z-index: var(--z-menu); background: var(--bg); border-top: 1px solid var(--line); padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; overflow-y: auto; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.menu li a small { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--muted); }
.menu-foot { margin-top: 2rem; display: grid; gap: .5rem; color: var(--text-2); }

/* ---------- Surfaces ---------- */
.shell { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.core { height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.panel-head > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lights { display: none; }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .75rem; color: var(--accent); background: none; padding: 0; white-space: nowrap; }
.gridbg { display: none; }
.tag { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.canvas-cap { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-2); line-height: 1.5; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; } .sec-head > :first-child { grid-column: 1 / 8; } .sec-head > .lede { grid-column: 8 / 13; padding-top: 2.5rem; } }
.sec-head h2 { margin-top: .75rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; } .hero-grid > :first-child { grid-column: 1 / 8; } .hero-grid > :last-child { grid-column: 9 / 13; } }
.hero h1 { margin: 1.5rem 0; max-width: 16ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 14px; height: 14px; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r); filter: grayscale(.2); background: var(--bg-2); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; font-size: .85rem; color: var(--text-2); border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.portrait figcaption b { color: var(--text); font-weight: 600; }

.facts-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--text); }
@media (min-width: 760px) { .facts-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts-strip div { padding: 1rem 1rem 0 0; }
.facts-strip dt { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.facts-strip dd { margin: .25rem 0 0; font-size: .9rem; color: var(--text-2); }

/* ---------- Services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--text); }
@media (min-width: 900px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.svc-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .25rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.svc-list .n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: .25rem; grid-row: span 3; }
.svc-list p { color: var(--text-2); max-width: 60ch; }
.svc-list .tags { margin-top: .5rem; }

/* generic tile (used on security page) */
.svc .core { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.svc-ic { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--accent); }
.svc-ic svg { width: 20px; height: 20px; }
.svc p { color: var(--text-2); font-size: .97rem; max-width: 60ch; }

/* ---------- Automation ---------- */
.auto-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .auto-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.auto-grid > * { min-width: 0; }
.canvas { padding: 1rem; overflow-x: auto; }
.flow { width: 100%; min-width: 520px; height: auto; }
.flow .fnode rect:first-child { fill: #1C2128; stroke: rgba(236,238,241,.16); }
.flow .hubn rect:first-child { fill: #15261E; stroke: rgba(95,224,160,.55); }
.flow .fl { font-family: var(--f-label); font-weight: 600; font-size: 9px; letter-spacing: .22em; fill: #838B98; }
.flow .hubn .fl { fill: #5FE0A0; }
.flow .ft { font-family: var(--f-body); font-size: 13px; fill: #ECEEF1; }
.flow .chipr { fill: rgba(95,224,160,.1); stroke: rgba(95,224,160,.3); }
.flow .ct { font-family: var(--f-mono); font-size: 10px; fill: #5FE0A0; }
.flow .port { fill: #14171C; stroke: #5FE0A0; stroke-width: 1.5; }
.flow .wire { stroke: rgba(236,238,241,.22); stroke-width: 1.5; fill: none; }
.flow .pulse { stroke: #5FE0A0; stroke-width: 2; stroke-dasharray: 10 120; fill: none; animation: flow2 2.8s linear infinite; }
@keyframes flow2 { to { stroke-dashoffset: -130; } }
.flow-list { display: none; }
.tools { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tools caption { text-align: left; padding: 0 0 .75rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.tools th, .tools td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tools th { font-weight: 500; font-size: .75rem; color: var(--muted); font-family: var(--f-mono); border-bottom-color: var(--text); }
.tools td:first-child { font-family: var(--f-mono); font-size: .85rem; }
.tools .w { color: var(--amber); }
.tools-note { margin-top: 1rem; font-size: .85rem; color: var(--text-2); }
.caps { display: grid; gap: 0 2rem; margin-top: 3rem; border-top: 1px solid var(--text); }
@media (min-width: 640px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.caps > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.caps h3 { margin-bottom: .5rem; }
.caps p { color: var(--text-2); font-size: .95rem; }

/* ---------- Work rows ---------- */
.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.work li a { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s var(--ease); }
@media (min-width: 900px) { .work li a { grid-template-columns: 8rem minmax(0, 1.3fr) minmax(0, 1fr) 2rem; gap: 2rem; align-items: baseline; padding: 2rem 0; } }
.work li a:hover { background: var(--bg-2); }
.work li a:hover h3 { color: var(--accent); }
.work .when { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.work h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); transition: color .2s; }
.work .who { display: block; font-size: .9rem; font-weight: 400; color: var(--text-2); margin-top: .25rem; letter-spacing: 0; }
.work .out { color: var(--text-2); font-size: .95rem; }
.work .arr { font-size: 1.25rem; color: var(--muted); justify-self: end; transition: transform .3s var(--ease), color .2s; }
.work li a:hover .arr { transform: translateX(4px); color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
@media (min-width: 960px) { .about { grid-template-columns: repeat(12, minmax(0, 1fr)); } .about > :first-child { grid-column: 1 / 8; } .about > :last-child { grid-column: 9 / 13; } }
.about p + p { margin-top: 1rem; }
.facts-inline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--text); }
.facts-inline li { display: grid; gap: .25rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts-inline .label { font-size: .75rem; }

/* ---------- Media ---------- */
.media-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.media-grid > * { min-width: 0; }
.vid .core { border: 0; background: none; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: #14171C; overflow: hidden; border-radius: var(--r); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-poster { position: absolute; inset: 0; }
.vid-poster.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vid-poster.has-img::after { content: none; }
.vid:hover .vid-poster.has-img img { transform: scale(1.02); }
.vid-kind { position: absolute; left: .75rem; top: .75rem; z-index: 1; font-size: .7rem; color: #fff; background: rgba(0,0,0,.55); padding: .25rem .5rem; border-radius: 2px; }
.vid-grid { display: none; }
.vid-play { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; gap: .75rem; padding: 1rem; background: none; border: 0; color: #fff; text-decoration: none; cursor: pointer; font: inherit; }
.vid-btn { width: 3rem; height: 3rem; display: grid; place-items: center; background: #fff; color: #121418; border-radius: 50%; transition: transform .3s var(--ease); }
.vid-btn svg { width: 18px; margin-left: 2px; }
.vid-play:hover .vid-btn { transform: scale(1.06); }
.vid-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vid-btn { position: relative; z-index: 1; }
.vid-body { padding: 1rem 0 0; display: grid; gap: .5rem; }
.vid-body p { color: var(--text-2); font-size: .95rem; max-width: 60ch; }

/* ---------- Method ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; border-top: 1px solid var(--text); }
@media (min-width: 760px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phase .core { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.phase-top { display: flex; justify-content: space-between; }
.phase-n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.phase p { color: var(--text-2); font-size: .95rem; }
.phase ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .25rem; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.svc-id { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }

/* ---------- Quote ---------- */
.pull { margin: 0; max-width: 56rem; }
.pull blockquote { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; }
.pull figcaption { margin-top: 1.5rem; font-size: .95rem; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; } .contact-grid > :first-child { grid-column: 1 / 6; } .contact-grid > :last-child { grid-column: 7 / 13; } }
.offices { margin-top: 2rem; border-top: 1px solid var(--text); }
.office { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.office b { font-weight: 500; }
.office span { color: var(--text-2); text-align: right; }
.signoff { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.signoff p span { display: block; color: var(--muted); font-size: .9rem; }
.avatar { width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; position: relative; flex: none; background: var(--bg-2); display: grid; place-items: center; }
.avatar svg { width: 70%; color: var(--text); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket .core { background: none; border: 0; }
.ticket .panel-head { display: none; }
.ticket form { display: grid; gap: 1.25rem; }
.row2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--text); padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: .75rem 1rem; transition: border-color .2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: #8A8E95; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.field.invalid input, .field.invalid textarea { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.err { font-size: .85rem; color: #B3261E; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .9rem; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { margin-top: .25rem; accent-color: var(--text); width: 1rem; height: 1rem; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-status { font-size: .95rem; }
.form-status.ok { color: var(--accent); }
.form-status.bad { color: #B3261E; }

/* ---------- Footer ---------- */
.foot { background: #121418; color: #ECEEF1; padding-block: 4rem 2rem; --text: #ECEEF1; --text-2: #A9B0BA; --muted: #8E95A0; --line: rgba(236,238,241,.12); --accent: #5FE0A0; }
.foot-top { display: grid; gap: 2rem; align-items: end; margin-bottom: 3rem; }
@media (min-width: 900px) { .foot-top { grid-template-columns: auto 1fr; gap: 4rem; } }
.foot-logo { width: min(240px, 60vw); height: auto; }
.foot-tag { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; justify-self: end; text-align: right; max-width: 26ch; }
@media (max-width: 899px) { .foot-tag { justify-self: start; text-align: left; } }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .85rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-row a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.foot-row a:hover { color: #fff; }
.foot-row > span { padding-block: .75rem; }
.tm { font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 75ch; }

/* ---------- Case pages ---------- */
.case-hero { padding-block: clamp(3rem, 6vw, 5rem) 3rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-size: .9rem; color: var(--text-2); text-decoration: none; margin-bottom: 1.5rem; }
.back:hover { color: var(--text); }
.case-hero h1 { font-family: var(--f-body); font-weight: 600; text-transform: none; letter-spacing: -0.03em; font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 22ch; margin: 1rem 0 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 3rem 0 0; border-top: 1px solid var(--text); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.fact dd { margin: 0; font-size: .95rem; }
.kpis { display: grid; gap: 0 2rem; border-top: 1px solid var(--text); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi .core { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0; display: grid; gap: .5rem; }
.kpi .core::before { display: none; }
.kpi b { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.kpi span { color: var(--text-2); font-size: .95rem; }
.prose-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) { .prose-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; } .prose-label { grid-column: 1 / 4; } .prose { grid-column: 4 / 11; } }
.prose-grid + .prose-grid { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.prose p { color: var(--text-2); max-width: 65ch; margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.ticks li strong { color: var(--text); font-weight: 600; }
.clients3 { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 960px) { .clients3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.client .core { padding: 1.5rem; display: grid; gap: .75rem; align-content: start; }
.client dl { margin: 0; display: grid; gap: .75rem; }
.client dt { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.client dd { margin: .25rem 0 0; font-size: .95rem; color: var(--text-2); }
.next-case a { display: grid; gap: .5rem; padding-block: 3rem; border-top: 1px solid var(--line); text-decoration: none; }
.next-case h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.next-case a:hover h2 { color: var(--accent); }
.cta-band .core { padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; justify-items: start; background: #121418; color: #ECEEF1; border: 0; --text: #ECEEF1; --text-2: #A9B0BA; --muted: #8E95A0; --accent: #5FE0A0; }
.cta-band .btn { background: #fff; color: #121418; border-color: #fff; }
.cta-band .btn:hover { background: #5FE0A0; border-color: #5FE0A0; color: #062014; }
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal .prose { max-width: 46rem; }
.legal h1 { font-family: var(--f-body); font-weight: 600; text-transform: none; font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 2rem; }
.legal h2 { font-size: 1.15rem; margin: 2.5rem 0 .75rem; }
.note { padding: 1rem; border-left: 3px solid var(--amber); background: var(--bg-2); color: var(--text); font-size: .9rem; }

/* ---------- Reveal: quiet fade, no blur ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .topbar .btn, .topbar-tel { display: none; }
  .burger { display: inline-flex; align-items: center; }
}
@media (max-width: 700px) {
  .flow { display: none; }
  .flow-list { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
  .flow-list li { display: grid; gap: .25rem; padding: .75rem 1rem; border-radius: var(--r); background: #1C2128; border: 1px solid rgba(236,238,241,.16); font-size: .9rem; }
  .flow-list .hubl { background: #15261E; border-color: rgba(95,224,160,.55); }
  .flow-list .fl { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
  .office { flex-direction: column; gap: .25rem; } .office span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .topbar, .menu { display: none; } }

.vid-body h3 a { text-decoration: none; }
.sec[style*="padding-top:0"] { padding-top: clamp(4rem, 9vw, 7rem) !important; }
@media (max-width: 959px) { .portrait { max-width: 320px; } }
.brand, .link-arrow { min-height: 2.75rem; display: inline-flex; align-items: center; }
.menu-foot a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* Official BSS Management logo (traced, one colour) */
.brand-logo { display: block; height: 2.75rem; width: auto; color: var(--text); }
.foot-logo { display: block; width: min(320px, 70vw); height: auto; color: currentColor; }
@media (max-width: 640px) { .brand-logo { height: 2.3rem; } }
