/* Zapim Firewall site. Same world as the console: cool paper canvas, pine-green accent, Overpass. */
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/overpass-latin.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/overpass-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/overpass-mono-latin.woff2") format("woff2"); }

:root {
  --canvas: #f4f5f7; --plate: #ffffff; --quiet: #eaedf0; --hair: #e1e4e8; --rule: #c9ced4;
  --ink: #15181c; --ink-2: #4f565e; --ink-3: #7b838c;
  --accent: #1e6b4a; --accent-deep: #175539; --accent-tint: #e3f0e8; --accent-light: #4fb083;
  --good: #1e6b4a; --bad: #b3392f; --attn: #8a6d00;
  --sans: "Overpass", "Segoe UI", system-ui, sans-serif; --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1); --r: 6px; --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-tint); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 54px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 20px; color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
section { padding: 104px 0; }
section + section { border-top: 1px solid var(--hair); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 99; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 245, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; white-space: nowrap; }
.mark:hover { text-decoration: none; }
.mark svg { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 22px; flex: 1; font-size: 15px; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 4px; border: 1px solid var(--rule); background: var(--plate); color: var(--ink); font: 500 16px var(--sans); cursor: pointer; white-space: nowrap; transition: transform .12s var(--ease), background .16s var(--ease), border-color .16s var(--ease); }
.btn:hover { text-decoration: none; border-color: var(--ink-3); background: var(--quiet); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav nav { display: none; } }
@media (max-width: 560px) { .nav .wrap > .btn { display: none; } }

/* hero: the cable bundle is the canvas; the copy sits on the empty steel */
.hero { position: relative; min-height: 560px; padding: 96px 0 120px; background: #e6e9ed url("assets/img/hero.jpg") center right / cover no-repeat; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240, 242, 245, .92) 0%, rgba(240, 242, 245, .78) 38%, rgba(240, 242, 245, 0) 62%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .copy { max-width: 560px; }
.hero p.lead { margin: 22px 0 30px; color: #3a4047; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.firstlook { padding: 0 0 96px; margin-top: -72px; position: relative; z-index: 2; border-top: 0 !important; }
.shot { background: var(--plate); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(21, 24, 28, .35); }
.shot img { display: block; width: 100%; height: auto; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split.intro { align-items: center; margin-bottom: 8px; }
.split.intro .photo { aspect-ratio: 3 / 2; }
@media (max-width: 960px) { .hero { min-height: 0; padding: 72px 0 110px; background-position: 80% center; } .hero::after { background: linear-gradient(180deg, rgba(240,242,245,.94), rgba(240,242,245,.8)); } .firstlook { margin-top: -56px; } }

/* threats */
.threats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: var(--r); background: var(--plate); overflow: hidden; margin-top: 44px; }
.threat { padding: 32px 32px 28px; border-bottom: 1px solid var(--hair); }
.threat:nth-child(odd) { border-right: 1px solid var(--hair); }
.threat:nth-last-child(-n+2) { border-bottom: 0; }
.threat h3 { margin-bottom: 10px; }
.threat p { font-size: 16px; color: var(--ink-2); margin: 0; }
.threat .who { display: block; font: 500 13px var(--mono); color: var(--accent); margin-top: 14px; }
@media (max-width: 760px) { .threats { grid-template-columns: 1fr; } .threat:nth-child(odd) { border-right: 0; } .threat:nth-last-child(2) { border-bottom: 1px solid var(--hair); } }

/* flow diagram */
.flow { margin-top: 44px; background: var(--plate); border: 1px solid var(--hair); border-radius: var(--r); padding: 28px; }
.flow svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.flow .box { fill: var(--plate); stroke: var(--rule); stroke-width: 1.2; }
.flow .rackbox { fill: var(--canvas); stroke: var(--rule); stroke-width: 1.2; }
.flow .unit { fill: var(--plate); stroke: var(--hair); }
.flow .label { fill: var(--ink); font-size: 14px; font-weight: 600; }
.flow .sub { fill: var(--ink-2); font-size: 12px; }
.flow .wire { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.flow .wire.back { stroke-dasharray: 4 4; }
.flow .lamp { fill: var(--hair); transition: fill .3s var(--ease); }
.flow .lamp.on { fill: var(--good); }
.flow .lamp.hit { fill: var(--bad); }
.flow .token { fill: var(--accent); stroke: #fff; stroke-width: 2; opacity: 0; }
.flow .verdict { font-size: 15px; font-weight: 600; fill: var(--ink-3); transition: fill .3s; }
.flow .verdict.good { fill: var(--good); } .flow .verdict.bad { fill: var(--bad); }
.flow-legend { display: flex; gap: 8px 28px; flex-wrap: wrap; margin: 18px 4px 0; font-size: 15px; color: var(--ink-2); }
.flow-legend b { color: var(--ink); font-weight: 600; }
.flow-controls { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.flow-controls .btn { min-height: 38px; padding: 0 14px; font-size: 15px; }
.flow-controls .now { font: 500 14px var(--mono); color: var(--ink-2); }

/* decision table */
.table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; background: var(--plate); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.table th, .table td { padding: 14px 18px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.table th { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--quiet); }
.table tr:last-child td { border-bottom: 0; }
.table .k { font-family: var(--mono); font-size: 14px; }
.table .good { color: var(--good); font-weight: 600; } .table .bad { color: var(--bad); font-weight: 600; }

/* modules */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 960px) { .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } }
.modlist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.modlist li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.modlist li b { font-weight: 600; }
.modlist li span { color: var(--ink-2); }
.modgroup { font: 500 13px var(--mono); color: var(--accent); padding: 22px 0 8px; }
@media (max-width: 560px) { .modlist li { grid-template-columns: 1fr; gap: 2px; } }

/* AI */
.ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.ai article { background: var(--plate); border: 1px solid var(--hair); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.ai article:first-child { grid-column: span 2; background: var(--ink); color: #eef0f3; border-color: var(--ink); }
.ai article.lead-card { background-size: cover; background-position: right center; position: relative; overflow: hidden; }
.ai article.lead-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 27, 31, .96) 0%, rgba(24, 27, 31, .88) 46%, rgba(24, 27, 31, .25) 72%, rgba(24, 27, 31, 0) 100%); }
.ai article.lead-card > * { position: relative; max-width: 62%; }
.ai article:first-child .muted { color: #b9bfc6; }
.ai article:first-child .term { color: var(--accent-light); }
@media (max-width: 900px) { .ai article.lead-card > * { max-width: none; } .ai article.lead-card::before { background: rgba(24, 27, 31, .92); } }
.ai h3 { margin-bottom: 10px; }
.ai p { font-size: 16px; margin-bottom: .6em; }
.ai .term { font: 500 13px var(--mono); color: var(--accent); margin-bottom: 14px; }
.ai .promise { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(128,128,128,.25); font-size: 15px; }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; } .ai article:first-child { grid-column: auto; } }
.honest { margin-top: 28px; padding: 22px 26px; background: var(--accent-tint); border-radius: var(--r); font-size: 16px; }
.honest p { margin: 0; max-width: none; }

/* gallery */
.gallery { margin-top: 40px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery .tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.gallery .tabs button { text-align: left; padding: 12px 14px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 500 16px var(--sans); cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.gallery .tabs button:hover { background: var(--plate); color: var(--ink); }
.gallery .tabs button.on { background: var(--plate); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.gallery .tabs button small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.gallery .stage .shot { transition: opacity .25s var(--ease); }
.gallery .stage figcaption { margin-top: 14px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .gallery .tabs { position: static; flex-direction: row; overflow-x: auto; } .gallery .tabs button small { display: none; } }

/* records */
.records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; margin-top: 40px; }
.records div { background: var(--plate); padding: 26px 24px; }
.records h3 { font-size: 17px; margin-bottom: 8px; }
.records p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .records { grid-template-columns: 1fr; } }

/* fit */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 40px; }
.fit h3 { margin-bottom: 8px; }
.fit p { font-size: 16px; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* trust: full-bleed switching room behind the heading */
.band { position: relative; padding-top: 0; }
.band .band-img { height: 440px; overflow: hidden; margin-bottom: 64px; }
.band .band-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.band .band-img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 440px; background: linear-gradient(180deg, rgba(242,241,237,0) 55%, rgba(242,241,237,1) 100%); }
@media (max-width: 760px) { .band .band-img { height: 260px; } .band .band-img::after { height: 260px; } }
/* trust */
.trust { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--hair); }
.trust div { padding: 22px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.trust b { display: block; margin-bottom: 4px; }
.trust span { color: var(--ink-2); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* deploy */
.deploy { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
pre.code { margin: 0; background: var(--ink); color: #e4e7eb; border-radius: var(--r); padding: 22px 24px; font: 14px/1.7 var(--mono); overflow-x: auto; }
pre.code .c { color: #8b9199; } pre.code .k { color: var(--accent-light); }
.deploy ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--ink-2); }
.deploy li { margin-bottom: 8px; }
@media (max-width: 860px) { .deploy { grid-template-columns: 1fr; } }

/* closing: the switch on the steel desk; copy on the empty side */
.closing { position: relative; min-height: 520px; display: flex; align-items: center; background: #d4d8dd url("assets/img/closing.jpg") center / cover no-repeat; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238, 240, 243, .9) 0%, rgba(238, 240, 243, .7) 45%, rgba(238, 240, 243, 0) 70%); pointer-events: none; }
.closing .wrap { position: relative; z-index: 1; width: 100%; }
.closing .copy { max-width: 560px; }
.closing p { color: #3a4047; }
@media (max-width: 760px) { .closing { min-height: 0; background-position: 70% center; } .closing::after { background: rgba(238, 240, 243, .86); } }
footer { padding: 28px 0 40px; background: var(--ink); color: #8b9199; font-size: 14px; border-top: 1px solid #2a2f36; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: #b9bfc6; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .hero .shot { transform: none; } }
