:root{
  --ink:#0A2F6B;
  --panel:#0F3A80;
  --panel-2:#134794;
  --cyan:#00A392;
  --cyan-dim:#00806F;
  --amber:#F2A93B;
  --paper:#F4F6F8;
  --grid-line:rgba(10,47,107,0.06);
  --slate:#4B5C6B;
  --slate-dim:#7E8C99;
  --line:rgba(10,47,107,0.14);
  --line-dark:rgba(244,246,248,0.14);
  --off-white:#F4F6F8;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}
body{
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0/40px 40px,
    var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Archivo', sans-serif; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}

/* ---------------- header ---------------- */
header{
  position:sticky; top:0; z-index:100;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1280px; margin:0 auto;
  padding:14px 32px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
}
.brand{display:flex; align-items:center; gap:10px; font-family:'Archivo', sans-serif; font-weight:700; font-size:19px; color:var(--ink);}
.brand img{height:34px; width:auto;}
.brand .full{display:flex; flex-direction:column; line-height:1.15;}
.brand .full small{font-family:'IBM Plex Mono', monospace; font-size:9.5px; font-weight:400; letter-spacing:0.05em; color:var(--cyan-dim); text-transform:uppercase;}

nav.primary{display:flex; gap:0; align-items:center; flex-wrap:wrap;}
nav.primary a{
  position:relative;
  font-size:12.5px; font-weight:500; color:var(--ink); opacity:0.62;
  padding:9px 12px; white-space:nowrap;
  transition:opacity 0.15s ease;
}
nav.primary a:hover, nav.primary a:focus-visible{opacity:1; outline:none;}
nav.primary a.active{opacity:1;}
nav.primary a.active::after{
  content:''; position:absolute; left:12px; right:12px; bottom:1px; height:2px; background:var(--amber);
}
.header-cta{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; font-weight:500;
  background:var(--ink); color:var(--off-white);
  padding:9px 15px; letter-spacing:0.02em; white-space:nowrap;
  transition:background 0.15s ease;
}
.header-cta:hover, .header-cta:focus-visible{background:var(--cyan-dim); outline:none;}
@media (max-width:1100px){ nav.primary{display:none;} }

/* ---------------- drawing-style markers ---------------- */
.dwg{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--cyan-dim); display:flex; align-items:center; gap:10px; margin-bottom:18px;
}
.dwg::before{content:''; width:22px; height:2px; background:var(--amber);}
.dwg .no{color:var(--amber);}

/* ---------------- hero ---------------- */
.hero{max-width:1280px; margin:0 auto; padding:80px 32px 44px;}
.hero h1{font-weight:700; font-size:clamp(32px,4.6vw,54px); line-height:1.08; max-width:920px;}
.hero h1 .accent{color:var(--cyan-dim);}
.hero-sub{max-width:600px; margin-top:22px; font-size:16px; color:var(--slate);}
.hero-actions{display:flex; gap:14px; margin-top:32px; flex-wrap:wrap;}
.btn{
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; font-weight:500; letter-spacing:0.02em;
  padding:13px 22px; display:inline-block; transition:all 0.15s ease;
}
.btn-solid{background:var(--ink); color:var(--off-white); border:1px solid var(--ink);}
.btn-solid:hover, .btn-solid:focus-visible{background:transparent; color:var(--ink); outline:none;}
.btn-line{border:1px solid var(--line); color:var(--ink);}
.btn-line:hover, .btn-line:focus-visible{border-color:var(--ink); outline:none;}
.btn-on-dark.btn-line{border-color:var(--line-dark); color:var(--off-white);}
.btn-on-dark.btn-line:hover{border-color:var(--off-white);}
.btn-on-dark.btn-solid{background:var(--amber); color:var(--ink); border-color:var(--amber);}
.btn-on-dark.btn-solid:hover{background:transparent; color:var(--amber);}

/* highlight strip */
.highlights{display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); max-width:1280px; margin:0 auto;}
.highlight{
  flex:1 1 160px; padding:20px 24px; border-right:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--slate); display:flex; align-items:center; gap:10px;
}
.highlight::before{content:'—'; color:var(--amber);}
.highlight:last-child{border-right:none;}

/* schematic (signature hero graphic) */
.schematic-wrap{max-width:1280px; margin:0 auto; padding:0 32px 0;}
.schematic{width:100%; border:1px solid var(--line); background:var(--ink); overflow:hidden;}

/* page hero */
.page-hero{max-width:1280px; margin:0 auto; padding:60px 32px 8px;}
.page-hero h1{font-weight:700; font-size:clamp(28px,3.8vw,44px); max-width:820px;}
.page-hero .lede{max-width:620px; margin-top:16px; font-size:15.5px; color:var(--slate);}

/* ---------------- generic section ---------------- */
section{max-width:1280px; margin:0 auto; padding:76px 32px;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:44px; flex-wrap:wrap;}
.section-head h2{font-weight:700; font-size:clamp(24px,2.8vw,34px);}
.section-head .cap{font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--slate-dim); max-width:340px; text-align:right;}

.dark{background:var(--ink); color:var(--off-white);}
.dark .section-head h2{color:var(--off-white);}
.dark .section-head .cap{color:rgba(244,246,248,0.55);}
.dark .dwg{color:var(--cyan);}

/* ---------------- cards / grids ---------------- */
.grid{display:grid; gap:1px; background:var(--line);}
.grid.cols-2{grid-template-columns:repeat(2,1fr);}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.grid.cols-4{grid-template-columns:repeat(4,1fr);}
.dark .grid{background:var(--line-dark);}
.card{background:var(--paper); padding:28px; display:flex; flex-direction:column; gap:10px;}
.dark .card{background:var(--ink);}
.card h3{font-size:17px; font-weight:700;}
.card p{font-size:13.5px; color:var(--slate); max-width:340px;}
.dark .card p{color:rgba(244,246,248,0.62);}
.card .node-idx{font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--amber);}

@media (max-width:980px){
  .grid.cols-4{grid-template-columns:repeat(2,1fr);}
  .grid.cols-3{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
  .grid.cols-4, .grid.cols-3, .grid.cols-2{grid-template-columns:1fr;}
  section{padding:52px 24px;}
  .hero, .page-hero{padding-left:24px; padding-right:24px;}
  .about-grid{grid-template-columns:1fr !important;}
}

/* ---------------- service rows ---------------- */
.rows{border-top:1px solid var(--line);}
.row{
  display:grid; grid-template-columns:80px 1fr 1fr; gap:26px;
  padding:30px 0; border-bottom:1px solid var(--line);
}
.row .idx{font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--amber); padding-top:4px;}
.row h3{font-size:19px; font-weight:700; margin-bottom:8px;}
.row p{font-size:13.5px; color:var(--slate); max-width:420px;}
.row .tags{display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start; justify-content:flex-end;}
.row .tag{font-family:'IBM Plex Mono', monospace; font-size:10.5px; border:1px solid var(--line); padding:6px 10px; color:var(--slate); white-space:nowrap; height:fit-content;}
@media (max-width:800px){
  .row{grid-template-columns:1fr; gap:10px;}
  .row .tags{justify-content:flex-start;}
}

/* ---------------- about ---------------- */
.about-grid{display:grid; grid-template-columns:1.15fr 1fr; gap:60px; align-items:start;}
.about-copy p{font-size:15px; color:var(--slate); max-width:480px; margin-bottom:16px;}
.value-list{border-top:1px solid var(--line);}
.value-item{padding:16px 0; border-bottom:1px solid var(--line);}
.value-item .v-label{font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--amber); text-transform:uppercase; letter-spacing:0.04em;}
.value-item .v-desc{font-size:13.5px; color:var(--slate); margin-top:4px;}

/* about sub-sections */
.subsections{border-top:1px solid var(--line);}
.subsection{padding:34px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:220px 1fr; gap:28px;}
.subsection h3{font-size:18px; font-weight:700;}
.subsection p{font-size:14px; color:var(--slate); max-width:560px;}
@media (max-width:760px){.subsection{grid-template-columns:1fr; gap:8px;}}

/* ---------------- stats ---------------- */
.stats{display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.stat{padding:26px 20px; border-right:1px solid var(--line);}
.stat:last-child{border-right:none;}
.stat .v{font-family:'IBM Plex Mono', monospace; font-size:26px; font-weight:500; color:var(--cyan-dim);}
.stat .l{font-size:12px; color:var(--slate); margin-top:6px;}
.dark .stat{border-color:var(--line-dark);}
.dark .stat .v{color:var(--amber);}
.dark .stat .l{color:rgba(244,246,248,0.6);}
@media (max-width:760px){.stats{grid-template-columns:repeat(2,1fr);}}

/* ---------------- projects ---------------- */
.project-card{background:var(--paper); border:1px solid var(--line); padding:26px; display:flex; flex-direction:column; gap:10px;}
.project-card .sector{font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.05em; text-transform:uppercase; color:var(--cyan-dim);}
.project-card h3{font-size:16.5px; font-weight:700;}
.project-card .meta{font-size:12.5px; color:var(--slate-dim); font-style:italic;}
.project-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line);}
@media (max-width:900px){.project-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.project-grid{grid-template-columns:1fr;}}
.data-note{
  margin-top:32px; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--slate-dim);
  border-left:2px solid var(--amber); padding-left:16px;
}

/* ---------------- knowledge center ---------------- */
.kc-card{background:var(--paper); padding:26px; border:1px solid var(--line); display:flex; flex-direction:column; gap:12px; height:100%;}
.kc-card .tag{font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:0.04em; text-transform:uppercase; color:var(--cyan-dim);}
.kc-card h3{font-size:16px; font-weight:700;}
.kc-card .read{font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink); border-top:1px solid var(--line); padding-top:12px; margin-top:auto;}
.kc-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line);}
@media (max-width:900px){.kc-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.kc-grid{grid-template-columns:1fr;}}

/* ---------------- careers ---------------- */
.career-row{display:flex; justify-content:space-between; align-items:center; padding:20px 0; border-bottom:1px solid var(--line);}
.career-row .c-title{font-weight:600; font-size:15px;}
.career-row .c-meta{font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--slate-dim);}

/* ---------------- contact ---------------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px;}
.contact-channels{display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line);}
.channel{display:flex; justify-content:space-between; align-items:center; padding:18px 0; border-bottom:1px solid var(--line);}
.channel .c-label{font-size:12.5px; color:var(--slate);}
.channel .c-val{font-family:'IBM Plex Mono', monospace; font-size:13.5px;}
.channel .c-val.placeholder{color:var(--slate-dim); font-style:italic;}
.map-box{margin-top:28px; border:1px solid var(--line); aspect-ratio:16/9; overflow:hidden;}
.map-box iframe{width:100%; height:100%; border:0; filter:grayscale(0.15);}

form.consult{display:flex; flex-direction:column; gap:16px;}
.f-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.f-group{display:flex; flex-direction:column; gap:7px;}
.f-group label{font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.03em; text-transform:uppercase; color:var(--slate);}
.f-group input, .f-group select, .f-group textarea{
  border:1px solid var(--line); background:transparent; padding:11px 13px; font-family:'Inter', sans-serif; font-size:13.5px; color:var(--ink);
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus{outline:2px solid var(--cyan); outline-offset:1px; border-color:var(--cyan);}
.f-group textarea{resize:vertical; min-height:90px;}
.form-note{font-size:12px; color:var(--slate-dim); margin-top:2px;}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;} .f-row{grid-template-columns:1fr;}}

/* ---------------- closing cta ---------------- */
.closing{
  border:1px solid var(--line); padding:52px 44px;
  display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:26px;
}
.closing h2{font-weight:700; font-size:clamp(22px,3vw,32px); max-width:520px;}
.closing-actions{display:flex; gap:14px; flex-wrap:wrap;}

/* ---------------- footer ---------------- */
footer{background:var(--ink); color:rgba(244,246,248,0.7);}
.footer-inner{max-width:1280px; margin:0 auto; padding:52px 32px 26px;}
.footer-top{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:30px; padding-bottom:36px; border-bottom:1px solid var(--line-dark);}
.footer-brand .brand{color:var(--off-white); margin-bottom:12px;}
.footer-brand p{font-size:12.5px; max-width:250px; color:rgba(244,246,248,0.55);}
.footer-col h4{font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.05em; text-transform:uppercase; color:rgba(244,246,248,0.45); margin-bottom:12px;}
.footer-col a{display:block; font-size:13px; padding:5px 0; color:rgba(244,246,248,0.75); transition:color .15s ease;}
.footer-col a:hover, .footer-col a:focus-visible{color:var(--cyan); outline:none;}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:22px; flex-wrap:wrap; gap:12px; font-family:'IBM Plex Mono', monospace; font-size:11px; color:rgba(244,246,248,0.45);}
@media (max-width:900px){.footer-top{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.footer-top{grid-template-columns:1fr;}}
