/* ChonkTac: ponderosa pine, granite and Black Hills gold */
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
:root {
  --pine: #11281f; --pine-2: #17332a; --pine-3: #224338;
  --granite: #e4e1da; --granite-2: #d5d1c7; --stone: #b9b4a8;
  --ink: #16201b; --ink-2: #4b5650;
  --on-pine: #e9e6df; --on-pine-2: #a9b9af;
  --gold: #e2ab3f; --gold-2: #f0c46a; --rose: #dc96a0; --leaf: #9fca8c; --red: #e46a5e;
  --disp: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--granite); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: 96px 0; }
.pine { background: var(--pine); color: var(--on-pine); }
.granite { background: var(--granite); color: var(--ink); }
.granite + .granite { padding-top: 0; }

/* type */
h1, h2, h3, .brand span { font-family: var(--disp); }
h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: .96; font-weight: 780; font-stretch: 88%; letter-spacing: -.02em; font-variation-settings: 'opsz' 96; }
.page-head h1 { font-size: clamp(42px, 5.4vw, 76px); }
.sec-title { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.02; font-weight: 740; font-stretch: 88%; letter-spacing: -.015em; margin-bottom: 20px; max-width: 18ch; }
.sec-title-sm { font-size: 26px; line-height: 1.15; font-weight: 700; font-stretch: 88%; margin-bottom: 14px; }
.lede { font-size: 19.5px; line-height: 1.55; color: var(--on-pine-2); max-width: 56ch; margin-bottom: 26px; }
.lede a { color: var(--gold-2); }
.lede-dark { font-size: 19px; color: var(--ink-2); max-width: 52ch; margin-bottom: 26px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 6px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { background: transparent; border-color: rgba(233,230,223,.35); color: var(--on-pine); }
.btn-line:hover { border-color: var(--on-pine); }
.btn-pine { background: var(--pine); color: var(--on-pine); }
.btn-pine:hover { background: var(--pine-3); }
.btn-ghost-dark { background: transparent; border-color: rgba(22,32,27,.3); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(17,40,31,.94); backdrop-filter: blur(10px); color: var(--on-pine); border-bottom: 1px solid rgba(233,230,223,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-weight: 800; font-size: 24px; font-stretch: 85%; letter-spacing: -.01em; }
.mark { width: 30px; height: 30px; color: var(--on-pine); }
#nav { display: flex; align-items: center; gap: 28px; }
#nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--on-pine-2); }
#nav a:not(.btn):hover, #nav a[aria-current] { color: var(--on-pine); }
#nav .btn { padding: 11px 16px; font-size: 15px; }
.menu { display: none; background: none; border: 1px solid rgba(233,230,223,.3); color: var(--on-pine); font: 600 15px var(--body); padding: 8px 14px; border-radius: 6px; }

/* hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.vob { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--gold-2); margin-bottom: 22px; }
.star { width: 18px; height: 18px; fill: var(--gold); }

/* map */
.hillsmap { position: relative; }
.map-stage { position: relative; aspect-ratio: 500 / 600; max-height: 680px; margin-left: auto; }
.map-topo, .map-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-topo { -webkit-mask-image: radial-gradient(circle at 44% 62%, #000 var(--r), transparent calc(var(--r) + 14%)); mask-image: radial-gradient(circle at 44% 62%, #000 var(--r), transparent calc(var(--r) + 14%)); --r: 120%; }
.js .map-topo { animation: survey 2.4s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes survey { from { --r: 0%; } to { --r: 120%; } }
.i90 { fill: none; stroke: var(--rose); stroke-width: 2; stroke-dasharray: 7 6; opacity: .75; }
.i90-label { fill: var(--rose); font: 700 12px var(--body); }
.peak path { fill: none; stroke: var(--on-pine-2); stroke-width: 1.4; }
.peak text { fill: var(--on-pine-2); font: 600 11px var(--body); }
.peak .ft { font-weight: 400; font-size: 10px; opacity: .8; }
.town { cursor: pointer; outline: none; }
.town text { fill: var(--on-pine); font: 600 13px var(--body); paint-order: stroke; stroke: var(--pine); stroke-width: 4px; transition: fill .15s; }
.town .dot { fill: var(--gold-2); }
.town .ring { fill: var(--pine); stroke: var(--gold); stroke-width: 1.6; transition: r .2s, stroke-width .2s; }
.town .pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; }
.town:hover .ring, .town:focus-visible .ring, .town.on .ring { r: 11; stroke-width: 2.4; }
.town:hover text, .town:focus-visible text, .town.on text { fill: var(--gold-2); }
.js .town .pulse { animation: ping 3.2s ease-out infinite; animation-delay: calc(var(--i, 0) * .29s + 2.2s); }
@keyframes ping { 0% { r: 6; opacity: .7; } 60%, 100% { r: 22; opacity: 0; } }
.xh { stroke: rgba(233,230,223,.22); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; transition: opacity .2s; }
.hillsmap:hover .xh { opacity: 1; }
.coords { position: absolute; top: 6px; right: 0; display: flex; flex-direction: column; align-items: flex-end; font: 600 13px var(--body); font-variant-numeric: tabular-nums; color: var(--on-pine-2); }
.map-card { position: absolute; left: 0; bottom: 34px; max-width: 250px; background: rgba(23,51,42,.92); border: 1px solid rgba(226,171,63,.35); border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(6px); }
.map-card strong { display: block; font: 700 20px/1.15 var(--disp); font-stretch: 85%; color: var(--on-pine); }
.map-card span { display: block; font-size: 13.5px; color: var(--gold-2); margin: 2px 0 6px; }
.map-card p { font-size: 14.5px; line-height: 1.45; color: var(--on-pine-2); }
.hillsmap.large .map-stage { max-height: 760px; }
.map-src { font-size: 12.5px; color: var(--on-pine-2); opacity: .75; margin-top: 8px; text-align: right; }
.map-card em { display: block; font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-pine-2); margin-top: 6px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.pillar { padding: 26px 22px 8px 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--granite-2); }
.pillar h3 { margin-bottom: 18px; }
.pillar-name { display: block; font-size: 56px; line-height: .9; font-weight: 780; font-stretch: 86%; letter-spacing: -.02em; }
.pillar-ai .pillar-name { color: #8a5a00; }
.pillar-blurb { display: block; font: 500 15px/1.4 var(--body); color: var(--ink-2); margin-top: 8px; }
.pillar ul, .rel { list-style: none; }
.pillar li a, .rel li a { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; text-decoration: none; border-top: 1px solid var(--granite-2); }
.pillar li a:hover b, .rel li a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pillar b, .rel b { display: block; font-weight: 650; font-size: 16.5px; line-height: 1.3; }
.pillar small, .rel small { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.pillar-ai .ico { stroke: #8a5a00; }

/* split layouts */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.ticks, .checks { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.ticks li, .checks li { position: relative; padding-left: 30px; }
.ticks li { color: var(--on-pine); }
.ticks li::before, .checks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' stroke='%2316201b' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* inbox demo */
.inbox { background: var(--pine-2); border: 1px solid rgba(233,230,223,.12); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.inbox-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14px; color: var(--on-pine-2); border-bottom: 1px solid rgba(233,230,223,.1); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(159,202,140,.18); flex: none; }
.inbox-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 360px; }
.inbox-list { list-style: none; border-right: 1px solid rgba(233,230,223,.1); }
.mail { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(233,230,223,.08); color: var(--on-pine); padding: 16px 18px; cursor: pointer; font: inherit; transition: background .15s; }
.mail:hover { background: rgba(233,230,223,.04); }
.mail[aria-pressed="true"] { background: var(--pine-3); box-shadow: inset 3px 0 0 var(--gold); }
.mail .from { display: block; font-weight: 650; font-size: 15px; }
.mail .subj { display: block; font-size: 14px; color: var(--on-pine-2); margin-top: 2px; }
.inbox-out { padding: 20px 22px; }
.out-empty { color: var(--on-pine-2); font-size: 15px; height: 100%; display: grid; place-items: center; text-align: center; }
.step { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; margin-bottom: 16px; }
.step.in { opacity: 1; transform: none; }
.step-label { font-size: 13px; color: var(--on-pine-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.step-label i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-pine-2); display: inline-block; }
.step.in.done .step-label i { border-color: var(--leaf); background: var(--leaf); }
.quote { font-size: 14.5px; color: var(--on-pine); background: rgba(0,0,0,.18); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.tag { display: inline-block; font-weight: 700; font-size: 14px; padding: 5px 11px; border-radius: 999px; color: var(--ink); }
.tag.gold { background: var(--gold); } .tag.leaf { background: var(--leaf); } .tag.rose { background: var(--rose); } .tag.red { background: var(--red); }
.fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14.5px; }
.fields dt { color: var(--on-pine-2); } .fields dd { color: var(--on-pine); font-weight: 600; font-variant-numeric: tabular-nums; }
.action { font-size: 15px; color: var(--on-pine); margin-bottom: 12px; }
.approve { padding: 11px 16px; font-size: 15px; }
.done-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--leaf); font-size: 15px; }

/* network demo */
.net { background: #f1efea; border: 1px solid var(--granite-2); border-radius: 16px; padding: 18px; }
.net-controls { margin-bottom: 4px; }
.seg { display: inline-flex; background: var(--granite); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; font: 600 14px var(--body); color: var(--ink-2); padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--pine); color: var(--on-pine); }
.net-svg { width: 100%; height: auto; }
.net-svg text { font: 600 13px var(--body); fill: var(--ink); text-anchor: middle; }
.wire { fill: none; stroke: var(--stone); stroke-width: 2.5; }
.inet path { fill: #fff; stroke: var(--ink-2); stroke-width: 1.6; }
.inet text { font-size: 12px; }
.fwbox rect { fill: var(--pine); }
.fwbox text { fill: var(--on-pine); font-size: 15px; font-weight: 700; }
.fwbox .sub { font-size: 11.5px; font-weight: 500; fill: var(--on-pine-2); }
.swbox rect { fill: #fff; stroke: var(--ink-2); stroke-width: 1.5; }
.swbox .port { fill: var(--ink-2); stroke: none; }
.zone rect { stroke-width: 2; transition: fill .25s, stroke .25s; }
.zone .glyph { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zone .vlan { font-size: 11.5px; font-weight: 700; fill: var(--ink-2); }
.zone-office rect { fill: #e3ecf6; stroke: #7d9cc0; }
.zone-pos rect { fill: #f6ead4; stroke: #c9a25a; }
.zone-cams rect { fill: #e6efe1; stroke: #86a878; }
.zone-guest rect { fill: #f3e4e7; stroke: #c48c97; }
.flat-box { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 5; opacity: 0; transition: opacity .25s; }
.flat-label { fill: var(--red) !important; font-size: 12.5px !important; opacity: 0; transition: opacity .25s; }
.net.flat .flat-box, .net.flat .flat-label { opacity: 1; }
.net.flat .zone rect { fill: #f7f6f3; stroke: var(--stone); }
.net.flat .vlan { opacity: 0; }
.trail { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.trail.ok { stroke: #2f7d3b; } .trail.no { stroke: var(--red); } .trail.risk { stroke: #d9822b; }
.packet { r: 6; stroke: #fff; stroke-width: 2; }
.packet.ok { fill: #2f7d3b; } .packet.no { fill: var(--red); } .packet.risk { fill: #d9822b; }
.verdict circle { stroke: #fff; stroke-width: 2; }
.verdict path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.net-panel { display: grid; gap: 14px; margin-top: 6px; }
.net-explain { font-size: 15.5px; color: var(--ink); min-height: 3.2em; }
.net-explain b { font-weight: 700; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix caption { text-align: left; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.matrix th { font-weight: 650; text-align: center; padding: 6px 4px; color: var(--ink-2); }
.matrix th[scope="row"] { text-align: left; color: var(--ink); white-space: nowrap; }
.matrix thead th:first-child { text-align: left; font-weight: 500; }
.matrix td { text-align: center; padding: 3px; }
.matrix td.self { color: var(--stone); }
.matrix button { width: 100%; min-width: 38px; height: 34px; border-radius: 6px; border: 1.5px solid transparent; font: 700 16px var(--body); cursor: pointer; }
.matrix button.ok { background: #dcebd8; color: #2f7d3b; }
.matrix button.no { background: #f6dcd8; color: #b8473c; }
.matrix button.risk { background: #f7e3cc; color: #a85d14; }
.matrix button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
/* veteran */
.vet { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.star-big { width: 200px; height: 200px; fill: none; stroke: var(--gold); stroke-width: .7; }
.mission { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: m; margin-top: 10px; }
.mission li { counter-increment: m; padding: 18px 18px 0 0; border-top: 2px solid var(--gold); }
.mission li + li { padding-left: 18px; }
.mission b { display: block; font: 750 26px var(--disp); font-stretch: 82%; color: var(--on-pine); }
.mission b::before { content: counter(m) '. '; color: var(--gold); }
.mission span { display: block; font-size: 15.5px; color: var(--on-pine-2); margin-top: 6px; }

/* two ways */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way { padding: 30px; border: 1px solid var(--stone); border-radius: 14px; }
.way-feat { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.way h3 { font-size: 28px; font-stretch: 85%; margin-bottom: 8px; }
.way p { color: var(--ink-2); }
.way-feat p { color: var(--on-pine-2); }

/* faq */
.faq details { border-top: 1px solid var(--stone); }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* cta band */
.cta-band { background: var(--gold); color: var(--ink); padding: 72px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1; font-weight: 800; font-stretch: 80%; max-width: 16ch; }
.cta-inner p { margin-top: 10px; font-size: 18px; }

/* page head + service pages */
.page-head { padding: 72px 0 80px; position: relative; overflow: hidden; }
.page-head h1 { margin-bottom: 22px; max-width: 16ch; }
.crumbs { font-size: 14.5px; color: var(--on-pine-2); margin-bottom: 18px; }
.crumbs a { color: var(--on-pine-2); }
.topo-bg::before { content: ''; position: absolute; right: -80px; top: -60px; width: 540px; height: 648px; background: url('/assets/topo.svg') center/contain no-repeat; opacity: .5; pointer-events: none; }
.topo-bg .wrap { position: relative; }
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.svc-grid p { color: var(--ink-2); margin-bottom: 28px; }
.related .rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.town-row { padding: 16px 0; border-top: 1px solid var(--stone); scroll-margin-top: 90px; }
.town-row:target { background: linear-gradient(90deg, rgba(226,171,63,.25), transparent); }
.town-row h3 { font-size: 22px; font-stretch: 88%; }
.town-row p { color: var(--ink-2); font-size: 15.5px; }

/* form */
.form { display: grid; gap: 16px; background: var(--pine-2); border: 1px solid rgba(233,230,223,.12); padding: 28px; border-radius: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--on-pine); }
.form input, .form select, .form textarea { font: 16px var(--body); padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(233,230,223,.22); background: var(--pine); color: var(--on-pine); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-note { font-size: 14px; color: var(--on-pine-2); }
.form-note.err { color: #ffb3aa; }

/* footer */
.foot { background: #0c1e17; color: var(--on-pine-2); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.foot .brand { color: var(--on-pine); margin-bottom: 14px; }
.foot p { margin-bottom: 8px; max-width: 30ch; }
.foot h2 { font: 700 16px var(--body); color: var(--on-pine); margin-bottom: 10px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--on-pine); text-decoration: underline; }
.fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(233,230,223,.1); font-size: 13.5px; }

/* responsive */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 2px solid var(--ink); margin-top: 24px; }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero-grid, .split, .split.rev, .svc-grid, .vet, .ways { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 2; }
  .map-stage { max-width: 520px; margin: 0 auto; }
  .vet { gap: 12px; } .star-big { width: 88px; height: 88px; }
  .mission { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .mission li:nth-child(3) { padding-left: 0; }
  .areas { grid-template-columns: 1fr; gap: 24px; }
  .menu { display: block; }
  #nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--pine); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid rgba(233,230,223,.1); }
  #nav.open { display: flex; }
  #nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(233,230,223,.08); font-size: 17px; }
  #nav .btn { margin-top: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 2px solid var(--ink); margin-top: 24px; }
  .inbox-body { grid-template-columns: 1fr; }
  .inbox-list { border-right: 0; border-bottom: 1px solid rgba(233,230,223,.1); }
  .mail { padding: 12px 16px; }
  .map-card { position: static; max-width: none; margin-top: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .topo-bg::before { opacity: .25; }
  .net { padding: 12px; }
  .matrix { font-size: 12px; } .matrix th[scope="row"] { white-space: normal; } .matrix button { min-width: 0; height: 30px; font-size: 14px; }
  .mission { grid-template-columns: 1fr; }
  .mission li, .mission li + li { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* chat assistant */
.cb { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--body); }
.cb svg { width: 22px; height: 22px; flex: none; }
.cb-launch { display: inline-flex; align-items: center; gap: 10px; background: var(--pine); color: var(--on-pine); border: 2px solid var(--gold); border-radius: 999px; padding: 12px 18px 12px 14px; font: 600 15.5px var(--body); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transition: transform .15s, background .15s; }
.cb-launch:hover { background: var(--pine-3); transform: translateY(-1px); }
.cb.is-open .cb-launch { display: none; }
.cb-panel { padding: 0; width: 380px; height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #f4f2ed; border: 1px solid var(--granite-2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); }
.cb-panel[hidden] { display: none; }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--pine); color: var(--on-pine); padding: 14px 14px 14px 16px; }
.cb-title { display: flex; align-items: center; gap: 10px; }
.cb-title strong { display: block; font: 700 17px var(--disp); font-stretch: 88%; }
.cb-title span { display: block; font-size: 12.5px; color: var(--on-pine-2); line-height: 1.3; }
.cb-actions { display: flex; align-items: center; gap: 4px; }
.cb-new { white-space: nowrap; background: none; border: 1px solid rgba(233,230,223,.25); color: var(--on-pine-2); font: 600 12.5px var(--body); padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.cb-new:hover { color: var(--on-pine); border-color: var(--on-pine-2); }
.cb-close { background: none; border: 0; color: var(--on-pine); font-size: 26px; line-height: 1; width: 34px; height: 34px; border-radius: 6px; cursor: pointer; }
.cb-close:hover { background: rgba(233,230,223,.1); }
.cb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cb-msg { max-width: 86%; font-size: 15px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; }
.cb-msg p + p, .cb-msg p + ul, .cb-msg ul + p { margin-top: 6px; }
.cb-msg ul { padding-left: 18px; }
.cb-msg a { color: inherit; font-weight: 600; }
.cb-assistant { background: #fff; color: var(--ink); border: 1px solid var(--granite-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.cb-user { background: var(--pine); color: var(--on-pine); border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.cb-system { background: #fbf1df; border-color: #ecd3a3; }
.cb-done { background: #e3f0de; border-color: #b9d6ae; color: #24562d; font-weight: 600; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chips button { background: #fff; border: 1px solid var(--stone); color: var(--ink); font: 500 13.5px var(--body); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.cb-chips button:hover { border-color: var(--pine); background: #eef3ef; }
.cb-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.cb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: cbdot 1s infinite ease-in-out; }
.cb-dots i:nth-child(2) { animation-delay: .15s; } .cb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cbdot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.cb-ts:empty { display: none; }
.cb-ts { padding: 0 16px; }
.cb-ts > * { margin-bottom: 8px; }
.cb-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--granite-2); background: #fff; }
.cb-form[hidden] { display: none; }
.cb-form textarea { flex: 1; resize: none; font: 15px/1.4 var(--body); color: var(--ink); border: 1px solid var(--stone); border-radius: 10px; padding: 10px 12px; max-height: 120px; }
.cb-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.cb-send { background: var(--gold); color: var(--ink); border: 0; font: 700 14.5px var(--body); padding: 11px 14px; border-radius: 10px; cursor: pointer; }
.cb-send:hover { background: var(--gold-2); }
.cb-note { font-size: 11.5px; color: var(--ink-2); background: #fff; padding: 0 14px 10px; }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .cb { right: 12px; bottom: 12px; }
  .cb.is-open { inset: 0; }
  .cb.is-open .cb-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .cb-launch span { display: none; }
  .cb-launch { padding: 12px; }
}

/* work */
.work-sec .lede-dark { margin-bottom: 32px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-bottom: 32px; }
.work-card { display: block; text-decoration: none; background: #f4f2ed; border: 1px solid var(--granite-2); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.work-card:hover { border-color: var(--ink); }
.work-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.work-thumb { aspect-ratio: 10 / 7; background: var(--pine-3); overflow: hidden; }
.work-thumb img, .work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb-ph { width: 100%; height: 100%; }
.work-meta { padding: 18px 20px 22px; }
.work-meta span { font-size: 13.5px; font-weight: 600; color: #8a5a00; }
.work-meta h3 { font-size: 24px; font-stretch: 88%; margin: 4px 0 6px; }
.work-meta p { font-size: 15px; color: var(--ink-2); }
.work-shot { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 10 / 7; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border: 1px solid rgba(233,230,223,.15); }
.concept-flag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--gold-2); border: 1px solid rgba(226,171,63,.5); border-radius: 999px; padding: 5px 12px; margin-bottom: 22px; }
.work-note { font-size: 14px; color: var(--ink-2); margin-top: 28px; }
.body-lg { font-size: 18.5px; color: var(--ink-2); max-width: 62ch; }
.plan { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.plan-row { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--stone); }
.plan-row h3 { font-size: 26px; font-stretch: 85%; }
.plan-row .checks { margin: 0; }
.changes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.changes li { background: var(--pine); color: var(--on-pine); border-radius: 10px; padding: 16px 18px; font-weight: 500; }
@media (max-width: 640px) { .plan-row { grid-template-columns: 1fr; gap: 6px; } .changes { grid-template-columns: 1fr; } }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 13.5px; color: var(--on-pine-2); margin-top: -8px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ts { display: contents; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form.sent .form-note { color: var(--leaf); font-weight: 600; }
@media (max-width: 520px) { .form-pair { grid-template-columns: 1fr; } }
.field-err { display: block; min-height: 0; font-size: 13px; font-weight: 500; color: #ffb3aa; }
.field-err:empty { display: none; }
.form input[aria-invalid="true"] { border-color: #e46a5e; box-shadow: 0 0 0 1px #e46a5e; }
/* contact form success */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }
.form-done { display: none; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 12px 28px; outline: none; animation: doneIn .45s cubic-bezier(.2,.8,.2,1) both; }
.form-done h2 { font: 800 clamp(30px, 3.6vw, 42px)/1.05 var(--disp); font-stretch: 85%; color: var(--on-pine); }
.form-done p { font-size: 18px; color: var(--on-pine-2); max-width: 34ch; }
.form-done strong { color: var(--gold-2); font-weight: 650; word-break: break-all; }
.form-done .done-small { font-size: 15px; }
.form-done .done-small a { color: var(--gold-2); }
.form-done .btn { margin-top: 10px; }
.done-check { width: 84px; height: 84px; }
.done-check circle { fill: var(--leaf); }
.done-check path { fill: none; stroke: var(--pine); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .5s .25s ease-out forwards; }
@keyframes doneIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .done-check path { stroke-dashoffset: 0; } }
.test-panel { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 120px); background: rgba(17,40,31,.95); border: 1px dashed var(--gold); border-radius: 12px; padding: 8px 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.test-panel span { font: 600 12.5px var(--body); color: var(--on-pine-2); margin-right: 4px; }
.test-panel button { background: transparent; border: 1px solid rgba(226,171,63,.5); color: var(--gold-2); font: 600 13px var(--body); padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.test-panel button:hover { background: rgba(226,171,63,.15); }
