/* CSI Namibia concept site. Black, bone and signal red. Big Shoulders Display for display type, Archivo for everything else. */
@font-face { font-family: "Shoulders"; src: url("../fonts/bsd-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("../fonts/bsd-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --black: #000;
  --bone: #EDEAE4;
  --ash: #948F88;
  --red: #FD3132;
  --red-ink: #000;
  --red-deep: #2A0606;
  --line: rgba(237, 234, 228, .16);
  --line-2: rgba(237, 234, 228, .3);
  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --strip: 34px;
  --head: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body { margin: 0; background: var(--black); color: var(--bone); font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; font-variation-settings: "wdth" 100; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 900; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--red); color: #000; padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- display type ---------- */
.display, .h2, .h3 { font-family: "Shoulders", "Archivo", sans-serif; text-transform: none; line-height: .9; letter-spacing: -.005em; }
.display { font-size: clamp(3.3rem, 8.4vw, 8.6rem); font-weight: 900; }
.h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 900; }
.h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; line-height: .95; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--bone); max-width: 36em; }
.muted { color: var(--ash); }
.tag { font-size: .84rem; font-weight: 600; font-variation-settings: "wdth" 116; letter-spacing: .01em; color: var(--ash); }

/* ---------- concept strip ---------- */
.concept { height: var(--strip); display: flex; align-items: center; justify-content: center; gap: .5em; padding: 0 12px; background: var(--red); color: #000; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.concept a { color: #000; font-weight: 800; }
@media (max-width: 560px) { .concept .long { display: none; } }

/* ---------- header ---------- */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head .wrap { height: var(--head); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--red); color: #000; padding: 3px 11px 3px 9px; border-radius: 3px; line-height: 1; }
.logo b { font-family: "Shoulders", sans-serif; font-weight: 900; font-size: 1.85rem; letter-spacing: -.01em; transform: translateY(1px); }
.logo span { font-size: .78rem; font-weight: 700; font-variation-settings: "wdth" 112; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--bone); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a.nav-call { display: none; }
.head .call { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--bone); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 4px; cursor: pointer; }
@media (max-width: 900px) {
  .head { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { display: none; position: fixed; top: var(--menu-top, calc(var(--head) + var(--strip))); left: 0; right: 0; bottom: 0; background: #000; flex-direction: column; gap: 0; padding: 8px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); margin: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav a { font-family: "Shoulders", sans-serif; font-weight: 900; font-size: 2.6rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
  .nav a.nav-call { display: inline-flex; justify-content: center; margin-top: 28px; font-family: "Archivo", sans-serif; font-size: 1.05rem; font-weight: 700; padding: 0 22px; border-bottom: 0; color: #000; }
  html.menu-open { overflow: hidden; }
  .head .call { display: none; }
  .head .wrap { gap: 12px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: 0 22px; border-radius: 4px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1; transition: background-color .2s, color .2s, border-color .2s; }
.btn-red { background: var(--red); color: #000; }
.btn-red:hover { background: #fff; }
.btn-line { border-color: var(--line-2); color: var(--bone); background: transparent; }
.btn-line:hover { border-color: var(--bone); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero: the camera that watches you ---------- */
.hero3d { position: relative; height: clamp(600px, calc(100svh - var(--head) - var(--strip)), 940px); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 72% 42%, rgba(253, 49, 50, .16), rgba(253, 49, 50, 0) 70%), radial-gradient(90% 60% at 50% 120%, rgba(237, 234, 228, .07), rgba(0, 0, 0, 0) 70%), var(--black); }
.hero3d canvas.cam3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero3d .hud { position: absolute; z-index: 2; top: 18px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ash); pointer-events: none; }
.hero3d .hud span { display: inline-flex; align-items: center; gap: 8px; }
.hero3d .hud i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation-name: blink; animation-duration: 1.4s; animation-iteration-count: infinite; animation-timing-function: steps(2, jump-none); }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .15; } }
.hero3d .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(36px, 6vh, 72px); pointer-events: none; }
.hero3d .wrap > * { pointer-events: auto; }
.hero3d h1 { max-width: 8.6em; font-size: clamp(3.2rem, 7.4vw, 8.4rem); margin-bottom: .32em; text-wrap: balance; }
.hero3d h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero3d h1 .ln > span { display: block; }
.hero3d .lede { max-width: 30em; margin-bottom: 1.5em; color: var(--bone); }
.hero3d .hint { margin: 18px 0 0; font-size: .88rem; color: var(--ash); }
.hero3d .hint .touch { display: none; }
@media (hover: none) { .hero3d .hint .mouse { display: none; } .hero3d .hint .touch { display: inline; } }
.reticle { position: absolute; z-index: 3; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; opacity: 0; transition: opacity .25s, width .3s, height .3s, margin .3s; }
.reticle.on { opacity: 1; }
.reticle { background: linear-gradient(var(--red), var(--red)) left top / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) left top / 2px 16px no-repeat, linear-gradient(var(--red), var(--red)) right top / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) right top / 2px 16px no-repeat, linear-gradient(var(--red), var(--red)) left bottom / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) left bottom / 2px 16px no-repeat, linear-gradient(var(--red), var(--red)) right bottom / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) right bottom / 2px 16px no-repeat; }
.reticle b { position: absolute; left: 100%; top: -4px; margin-left: 8px; font-size: .74rem; font-weight: 700; color: #000; background: var(--red); padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.reticle.lock { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.hero3d.no3d .reticle, .hero3d.no3d .hint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero3d h1 .ln > span { animation-name: rise; animation-duration: .9s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both; }
  .js .hero3d h1 .ln:nth-child(2) > span { animation-delay: .08s; }
  .js .hero3d h1 .ln:nth-child(3) > span { animation-delay: .16s; }
  .js .hero3d h1 .ln:nth-child(4) > span { animation-delay: .24s; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@media (max-width: 760px) {
  .hero3d { height: clamp(620px, calc(100svh - var(--head) - var(--strip)), 860px); background: radial-gradient(90% 50% at 50% 28%, rgba(253, 49, 50, .18), rgba(253, 49, 50, 0) 70%), var(--black); }
  .hero3d h1 { font-size: clamp(2.7rem, 12.2vw, 4.4rem); }
  .hero3d .lede { font-size: 1rem; }
  .hero3d .btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- the five layers, on the plan ---------- */
.layers-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.layer-plan canvas { width: 100%; aspect-ratio: 1000 / 760; height: auto; max-width: 100%; }
.layer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.layer-tabs button { font: inherit; font-weight: 700; font-size: .95rem; color: var(--bone); background: transparent; border: 1px solid var(--line-2); border-radius: 4px; min-height: 46px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s, border-color .2s; }
.layer-tabs button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.layer-tabs button:hover { border-color: var(--bone); }
.layer-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #000; }
.layer-tabs button[aria-selected="true"]::before { background: #000; border-color: #000; }
.layer-text .tag { display: block; margin-bottom: 10px; }
.layer-text .h3 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: .3em; }
.layer-text p { color: var(--ash); font-size: 1.08rem; max-width: 30em; }
@media (max-width: 900px) {
  .layers-grid { grid-template-columns: 1fr; }
  .layer-copy { display: contents; }
  .layer-tabs { order: -1; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .layer-tabs::-webkit-scrollbar { display: none; }
  .layer-tabs button { flex: none; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { margin: 0; color: var(--ash); }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* services as a drawing legend */
.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.legend li { display: grid; grid-template-columns: 84px minmax(0, 4fr) minmax(0, 6fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.legend .sym { width: 72px; height: 52px; }
.legend h3 { font-family: "Shoulders", sans-serif; font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; }
.legend p { margin: 0; color: var(--ash); max-width: 42em; }
.legend a.more { font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap; }
.legend li:hover .sym { filter: drop-shadow(0 0 6px rgba(253, 49, 50, .6)); }
@media (max-width: 900px) {
  .legend li { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .legend .sym { width: 56px; height: 42px; grid-row: span 3; }
  .legend a.more { justify-self: start; margin-top: 6px; }
}

/* perimeter check */
.check { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.qs { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qs li:first-child { border-top: 1px solid var(--line-2); }
.qs p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.yn { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.yn button { font: inherit; font-weight: 700; font-size: .9rem; background: none; color: var(--ash); border: 0; padding: 10px 14px; cursor: pointer; min-width: 64px; min-height: 44px; }
.yn button + button { border-left: 1px solid var(--line-2); }
.yn button[aria-pressed="true"].y { background: var(--bone); color: #000; }
.yn button[aria-pressed="true"].n { background: var(--red); color: #000; }
.result { position: sticky; top: calc(var(--head) + 24px); border: 1px solid var(--line-2); border-radius: 6px; padding: 22px; }
.result canvas { width: 100%; aspect-ratio: 1000 / 760; height: auto; margin-bottom: 18px; }
.result .count { font-family: "Shoulders", sans-serif; font-weight: 900; font-size: clamp(3rem, 5vw, 4.4rem); line-height: .9; margin-bottom: 8px; }
.result .count.bad { color: var(--red); }
.result p { color: var(--ash); }
@media (max-width: 900px) { .check { grid-template-columns: 1fr; } .result { position: static; } }

/* monitoring */
.watch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wall { position: relative; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px; background: #000; }
.wall canvas { width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 2px; }
.log { list-style: none; margin: 18px 0 0; padding: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.log li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ash); }
.log li b { color: var(--bone); font-weight: 600; }
.log li.new { animation-name: logIn; animation-duration: .6s; animation-timing-function: ease; animation-fill-mode: both; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.team { border-left: 3px solid var(--red); padding-left: 20px; margin: 28px 0; }
.team p { margin: 0; font-size: 1.15rem; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } }

/* repairs */
.fix-title { font-family: "Shoulders", sans-serif; font-weight: 900; font-size: clamp(3.4rem, 11vw, 10rem); line-height: .86; margin-bottom: clamp(28px, 4vw, 48px); }
.fix-title span { display: block; }
.fix-title span:nth-child(2) { color: var(--ash); }
.fix { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; border: 0; }
.chips legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .15s, color .15s, border-color .15s; }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #000; }
.chip input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; color: var(--bone); background: #000; border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bone); outline: none; }
.msg { border: 1px dashed var(--line-2); border-radius: 6px; padding: 20px; background: #000; }
.msg pre { white-space: pre-wrap; font: inherit; margin: 0 0 18px; color: var(--bone); min-height: 6em; }
.msg .tag { display: block; margin-bottom: 10px; }
@media (max-width: 900px) { .fix { grid-template-columns: 1fr; } }

/* contact band */
.callband { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); text-align: left; }
.bignum { display: block; font-family: "Shoulders", sans-serif; font-weight: 900; font-size: clamp(3.6rem, 13vw, 12.5rem); line-height: .85; text-decoration: none; letter-spacing: -.01em; margin: 10px 0 28px; font-variant-numeric: tabular-nums; }
.bignum:hover { color: var(--red); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--ash); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot a { color: var(--bone); }

/* inner pages */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-hero .display { margin-bottom: .3em; }
.svc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.svc .sym { width: 180px; height: 130px; }
.svc .h2 { margin-bottom: .32em; }
.svc ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc li { padding-left: 22px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc .sym { width: 120px; height: 86px; } }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.steps3 li { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.steps3 li + li { padding-left: 24px; }
.steps3 li:last-child { border-right: 0; }
.steps3 b { display: block; font-family: "Shoulders", sans-serif; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--red); margin-bottom: 10px; }
.steps3 h3 { font-size: 1.15rem; font-weight: 700; font-family: "Archivo", sans-serif; margin-bottom: 6px; }
.steps3 p { color: var(--ash); margin: 0; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } .steps3 li, .steps3 li + li { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); } }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.ways a { display: block; padding: 28px 24px 28px 0; text-decoration: none; border-right: 1px solid var(--line); }
.ways a + a { padding-left: 24px; }
.ways a:last-child { border-right: 0; }
.ways .h3 { margin: 6px 0 8px; }
.ways a:hover .h3 { color: var(--red); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } .ways a, .ways a + a { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
